Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1240902

    Hi, when updating the PHP version from 7.0 tot 7.3. the following error appears:

    #1240971

    Hey 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,
    Nikko

    #1241406

    ok, 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?

    #1241417

    Hi 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,
    Nikko

    #1244309

    I 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?

    #1244325

    Hi 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,
    Nikko

    #1244689

    well… 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?

    #1244742

    Hi 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,
    Nikko

    #1244810

    admin details in pm area. Tnx for the work in advance

    #1244865

    Hi 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,
    Nikko

    #1244909

    Nikko,

    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,
    J

    #1244962

    Hi 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,
    Nikko

    #1245018

    Wow Nikko! Thanks a lot for trouble and fixing! Really, really happy! You’ve made my day!

    #1245048

    Hi Jooster,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Error with updating PHP from 7.0 tot 7.3.’ is closed to new replies.