-
AuthorPosts
-
August 26, 2020 at 12:44 pm #1240902
Hi, when updating the PHP version from 7.0 tot 7.3. the following error appears:
August 26, 2020 at 5:06 pm #1240971Hey Jooster,
Can you try to switch to the parent theme (Enfold)? and check if the issue still persists?
The current error seems to be pointing only to the child theme.Best regards,
NikkoAugust 28, 2020 at 6:18 am #1241406ok, i havto to go on holliday (sorry, really). I will check if I am back in 10 days.. i saw i then also need to reconfigure something … important question… functions.php… does is stay effective with the main theme or?
August 28, 2020 at 6:58 am #1241417Hi Jooster,
I understand. As for your question, if the child theme is activated, both functions.php of the child and parent theme will work. But if only the parent theme is activated, only functions.php of the parent theme is in effect. I hope it answers your question :)
Best regards,
NikkoSeptember 8, 2020 at 2:41 pm #1244309I am back from holliday,
Just checking: when I switch to Parent… all my settings in the child are gone (in the parent, not in the child), right? So i have to manually copy all the settings from Child to Parent, right?
September 8, 2020 at 4:08 pm #1244325Hi Jooster,
You don’t need to manually copy, first use your child theme, go to Enfold Child > Import/Export > click Export Theme Settings File button.
Switch to the parent theme, go to Enfold > Import/Export > click Upload Theme Settings File button and import the exported file.
Hope this helps :)Best regards,
NikkoSeptember 9, 2020 at 9:27 pm #1244689well… great news… i have switced to PHP 7.2. and it all works… BUT
in my functions,php file (original from the Child) there is some code that doesnt work in the Parent… I want to keep the changes that are in the Child… can see the issues that causes the error?
September 10, 2020 at 5:52 am #1244742Hi Jooster,
That function is in the parent theme and don’t need to be re-added to your child theme.
Can you give us the login link to your site? so we can try to inspect further.Best regards,
NikkoSeptember 10, 2020 at 9:51 am #1244810admin details in pm area. Tnx for the work in advance
September 10, 2020 at 11:29 am #1244865Hi Jooster,
Thanks for giving us admin access.
The problem you’re having is from your child theme’s helper-main-menu.php file which is modified.
There’s this code in line 83 which causes the issue:echo add_loginout_link();
However the function is declared like this:
function add_loginout_link( $items, $args ) {
which expects two arguments, To fix this, please replace:
function add_loginout_link( $items, $args ) {
to:
function add_loginout_link() {
then switch back to your child theme.
Let us know how it goes.Best regards,
NikkoSeptember 10, 2020 at 1:28 pm #1244909Nikko,
First thank you for your help and second, apologies for my WordPress literacy – I am not a coder. So…
I have found the file “Helper-main-menu.php” and the item your mentioned: “echo add_loginout_link();”
But the other items I could not find in the functions.php of the Parent nor that of the Child.
What am i not seeing that is so obvious :-)?
Regards,
JSeptember 10, 2020 at 4:33 pm #1244962Hi J,
I have fixed it according to what I mentioned above.
Please try to switch to your child theme, then try to upgrade your PHP version and see if the issue still persists.Best regards,
NikkoSeptember 10, 2020 at 9:41 pm #1245018Wow Nikko! Thanks a lot for trouble and fixing! Really, really happy! You’ve made my day!
September 11, 2020 at 4:57 am #1245048Hi Jooster,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Error with updating PHP from 7.0 tot 7.3.’ is closed to new replies.