Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By chrisck on
I have the following fatal error when upgrading from 7.37 to 7.38.
Fatal error: require_once(): Failed opening required '/public_html/includes/theme.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in common.inc on line 5195.
Here are my upgrade steps:
- Place site into maintenance mode.
- Copy changes made to .htaccess file.
- Delete all files and folders from the drupal root except for the sites folder
- Uploaded new 7.38 drupal files.
- Pasted the changes to new .htaccess file.
- Already logged in as admin, navigate to mydomain.com/update.php
Can anyone shed some light on this issue? This is the first time I've had this problem after doing many many updates with Drupal core.
I've now downgraded back to Drupal 7.37 and the site is working again.
Comments
=-=
perhaps a corrupted theme.inc file when it was extracted or when it was uploaded.
7.38 not working
Hi chrisck,
I did not have same issue but upgrading from 7.36 to 7.38 caused issued with some of my custom pages. I went through git commits and did the diff on 7.36 and 7.38 files. I found that there are couple files which got changed in 7.38 but not listed on git commits so copied those files over to 7.38 includes/ folder and that worked for me.
specifically includes/entity.inc file did the trick.
HTH
~
Same error
Hi galacto,
I had the same issue. Replacing the7.38 entity file with the 7.36 did the trick.
I am just worried that this is not a very clean solution isn't it.
Thanks
fatal error on cart page
Hello,
Cart is not working for anonymous user after upgrade 7.36 to 7.38.
I have following fatal error on cart page for anonymous user.
EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 736 of /var/www/strandofsilk/profiles/commerce_kickstart/modules/contrib/entity/includes/entity.wrapper.inc).
5. Pasted the changes to new
5. Pasted the changes to new .htaccess file.
Revert back the changes which you done for the .htaccess file test it once.