Let's just start here. I'm dumb and I decided that after not touching my drupal site for almost 2 years, I decided to go ahead and run an update on my live site without first having a backup. And now I feel completely lost.
On my update.php page I have the following errors:
Unresolved dependency entity (Missing)
Entity tokens requires this module.
Unresolved dependency entityreference (Missing)
Entity Reference Behavior Example requires this module.
Unresolved dependency entity (Missing)
Rules requires this module.
Unresolved dependency entity (Missing)
Rules UI requires this module.
Unresolved dependency entity (Missing)
Rules Scheduler requires this module.
Unresolved dependency entity (Missing)
Views Bulk Operations requires this module.
And when I go to any other page, I have an error:
Fatal error: require_once(): Failed opening required '/home4/blsites/public_html/sites/all/modules/entity/includes/entity.controller.inc' (include_path='.:/opt/php54/lib/php') in /home4/blsites/public_html/includes/bootstrap.inc on line 3066
The errors on the update.php page make me think I need to install entity and entityreference, however they are both already installed in sites/all/modules.
I do not know where to go from here. I don't use drush, and while I use git now at work, I didn't back when I was administering this site.
Please help. Thank you. :/
Comments
This is a bit of a guess...
This is a bit of a guess...
If you're updating modules on a fairly out-of-date site, some of the new versions may now depend on other modules, whereas they didn't when you originally installed them. Either that, or the files have just become missing somehow.
Firstly, i would update the core. Then download the newer module versions it is complaining about and update it.
-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien
I used FTP to download the
I used FTP to download the old module, and then upload the newest version of the module, then ran update.php.
In all I needed to update Date, Entity API, Entity Reference, and Views modules.
Just to add a little to that
Just to add a little to that answer, some files may indeed be missing, so it is worth checking that there is an uncorrupted copy of the specific file in question present on the server /home4/blsites/public_html/sites/all/modules/entity/includes/entity.controller.inc.
Another reason modules may appear to be missing when they are present is that they are not readable. Generally if you log in as root, as some of us do who were improperly trained (!), files you copy will be owned by root. On its own this does not normally break a site because a typical server is set (using umask) to leave the root-owned files still readable. If the files are present not readable, they would appear to be missing. However, the file path with /home4 suggests you are on shared hosting so this scenario seems extremely unlikely.
If you have a backup, you could always restore and start over. You do not mention the update method.
Drush
Generally updating with drush is highly recommended. It avoids a lot of problems introduced by human error, as well as giving command line tools for getting out of trouble quickly when things do go wrong, which gives a lot of confidence if you are going to take the risk of updating a live site. If you do not have drush on the server, you should try to get it or move to a server where you can have it.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
Yes, for each of the above
Yes, for each of the above modules, I saw that a certain file within that module was not being found. That was the key to realizing which modules I needed to update. Then ran update.php and we were golden. Well... mostly. ;)