Problem with Drupal7 update.php : modulo media

Hello
I have a new client who has a Drupal 7 site.
The site must be updated.

Unfortunately I can not rebuild what it was.

What appears in / admin / reports / status is

Database updates Not updated
There are updates available for some modules related to the database schema. You should run the database update script immediately.

I tried to run /update.php but I have a series of errors

33 pending updates

media module
7200 - Replace 'view media' perm from all users having the role with 'view file'.
7201 - Handle existing media fields. Enable the new Media Field module if this site uses "media" fields. File fields are now preferred for storing media.
7202 - Enable the Views module if it is not already enabled.
7203 - Empty update function to trigger cache clear.
7204 - Update old Media view modes to the new File Entity ones.
This update will been skipped due to the following missing dependencies: file_entity_update_7201
7205 - Drop the unused {media_list_type} table.
This update will been skipped due to the following missing dependencies: file_entity_update_7201
7206 - Move default file display configurations to the database.
This update will been skipped due to the following missing dependencies: file_entity_update_7201
7207 - Trigger cache clear. Empty update function to trigger cache clear after changing access callbacks to file_entity_access.
This update will been skipped due to the following missing dependencies: file_entity_update_7201
7208 - Drop the media_types table and migrate files to file_entity types.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7209 - Enable the hidden media_migrate_file_types module to provide a UI to update {file_managed}.type with the new file types provided by file_entity.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7210 - Delete deceprated media__type_icon_directory variable.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7211 - Save a square_thumbnail image style in the database for legacy support if one does not already exist.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7212 - Re-create application file type for legacy reasons.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7213 - Remove the obsolete file_extensions variable.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7214 - Drop the legacy {media_filter_usage} table.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7216 - Skipped to run media_update_7217().
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7217 - Copy file type icons to public files directory.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7218 - Drop the legacy {cache_media_xml} table.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7219 - Enable the Media WYSIWYG submodule.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7220 - Delete the deprecated media__file_list_size variable.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7221 - Enable the Media Bulk Upload submodule.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7222 - Delete the deprecated media__display_types_migration_mess variable.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7223 - Delete legacy variables.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7224 - Rename variables, removing variable namespace.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7225 - Migrate variables to appropriate submodules.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
7226 - Grant existing user access to new media browser permission.
This update will been skipped due to the following missing dependencies: file_entity_update_7210, file_entity_update_7201
captcha module
7001 - Increase the Session Id field size.
eu_cookie_compliance module
7000 - Change the popup delay from seconds to milliseconds.
7001 - Migrate translation handling to Variable API. NOTE: Make sure the variable_realm and i18n_variable modules are either enabled or in the filesystem if you are using multiple languages.
7002 - Delete the menu item that was added due to a missing menu item type in 1.15.
i18n_string module
7003 - Change objectindex from int to bigint.
oauth_common module
7101 - Add callback_url field to {oauth_common_token} table.
rules module
7215 - Add an index for retrieving active config of a certain plugin. 

If I apply the updates, the error appears

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'reikiit_porto.file_metadata' doesn't exist: SELECT * FROM {file_metadata} WHERE fid IN (:fids_0); Array ( [:fids_0] => 765 ) in file_entity_file_load() (linea 183 di /home2/reikiit/public_html/sites/all/modules/file_entity/file_entity.file.inc).

After appears

 An unexpected error occurred. Try again later, thank you. 

and the site is no longer visible 🙂

Active module status -> recommended version

MD Slider	7.x-2.11 --> 7.x-2.2
Media	        7.x-2.1 --> 7.x-2.15
File Entity   7.x-2.15 
Field          7x-7.56 

I duplicated the site on a test site and from MySQL I gave the commands

UPDATE `system` SET `status` = '0' WHERE `system`.`filename` = 'sites/all/modules/md_slider/md_slider.module'; 
UPDATE `system` SET `status` = '0' WHERE `system`.`filename` = 'sites/all/modules/nivo_slider/nivo_slider.module';
UPDATE `system` SET `status` = '0' WHERE `system`.`filename` = 'sites/all/modules/media/media.module'; 
UPDATE `system` SET `status` = '0' WHERE `system`.`filename` = 'sites/all/modules/file_entity/file_entity.module';

in order to disable the modules

  • md_slider.module
  • nivo_slider.module
  • media.module
  • file_entity.module

Also here if I try the updates via /update.php I have error

The site remains under maintenance and then appears

An unexpected error occurred. Try again later, thank you.

I also read

but I did not find useful information 🙁

Any suggestions ?
Thank you

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/22/feed