Home › Forums › Basel support forum › Upgrading to PHP 7.1
Upgrading to PHP 7.1
- This topic has 12 replies, 2 voices, and was last updated 7 years, 3 months ago by Artem Temos.
-
AuthorPosts
-
October 14, 2017 at 12:34 am #21591
nordlifeelinaParticipantHi,
My host tried to upgrade the site to PHP 7.1 and came bac kto me with this:
I checked out the server logs and it looks like there is a PHP fatal error on the site regarding the theme. Here is the error we see:
PHP Fatal error: Call to undefined function get_header() in /www/wp-content/themes/basel/index.php on line 6
2) WP also gives me the following warning:
Your theme (Basel Child) contains outdated copies of some WooCommerce template files. These files may need updating to ensure they are compatible with the current version of WooCommerce. You can see which files are affected from the system status page. If in doubt, check with the author of the theme.
Is this something that you can help with too?
Cheers
Elina
October 14, 2017 at 7:39 am #21618
Artem TemosKeymasterHello,
1.
get_header
is a default WordPress function and it is absolutely compatible with PHP 7.1. It means that the problem is caused by some other part of the website and not by our theme. Could you please provide us your FTP access and ask your hosting providers to enable error reporting so we can check what this issue is caused by? Also, you need to disable all additional plugins except those that required for our theme.2. You need to update the theme to the latest version. To update the theme you need download the latest version on ThemeForest -> Downloads. Then just reupload new theme via Appearance -> Themes but install this plugin firstly https://wordpress.org/plugins/easy-theme-and-plugin-upgrades/
Also, we suggest you make a backup of all your files before any update.Regards
October 16, 2017 at 5:57 am #21745
nordlifeelinaParticipantHi,
see below
October 16, 2017 at 6:12 am #21749
Artem TemosKeymasterWhere we can see the error now?
October 16, 2017 at 7:25 am #21763
nordlifeelinaParticipantHere’s what my host said (see private)
October 16, 2017 at 7:29 am #21764
nordlifeelinaParticipantI can’t attach my error logs here – do you have an email I could send them too?
Thanks
October 16, 2017 at 8:58 am #21772
Artem TemosKeymasterWe don’t need error logs, we should see them live on your website to be able to fix them. Contact your hosting providers if you can’t enable this function.
October 17, 2017 at 8:11 am #21886
nordlifeelinaParticipantI did say it in the previous comment, in the private section.
Just letting you know that I have gone ahead and enabled WP_DEBUG, but to only report errors into the default log file location of /wp-content/debug.log. WP_DEBUG will not display errors on screen.
That’s all I can give you.
October 17, 2017 at 11:23 am #21893
Artem TemosKeymasterOK, could you please check the FTP access? We can’t connect to the server now.
October 18, 2017 at 2:59 am #21937
nordlifeelinaParticipanthi
October 18, 2017 at 6:09 am #21943
Artem TemosKeymasterInitially, you wrote about this error
PHP Fatal error: Call to undefined function get_header() in /www/wp-content/themes/basel/index.php on line 6
, right?But currently, we don’t see this error and any other errors that may be caused by PHP 7.1. There are only some PHP notices but they are thrown by the code in the child theme that was not there initially. You need to fix your custom code or remove it at all to hide these notices.
October 18, 2017 at 9:53 pm #22038
nordlifeelinaParticipantok thanks.
October 19, 2017 at 5:57 am #22047
Artem TemosKeymasterYou are welcome, contact us if you will have any additional questions or concerns.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register