Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1014179

    Warning: Use of undefined constant Copyright – assumed ‘Copyright’ (this will throw an Error in a future version of PHP) in /…/wp-content/themes/enfold-child/footer.php on line 103

    This is at the place of the copyright placeholder. What is the solution?
    Thanks

    #1014183

    Hey AWZ,

    Which version of Enfold are you using? Please check if the latest version 4.4.1 is installed. I couldn’t view your website because it’s password protected.

    Best regards,
    Peter

    #1014197

    Hi Peter,

    4.4 because of https://kriesi.at/support/topic/4-4-a-to-new-4-4-1/
    I´m waiting for the next update.

    Look at the pass. Thx

    #1014213

    Hey!
    I think the footer.php template is outdated because the parent theme template does not set any constants in the footer.php template. Personally I’d recommend to update your child theme template with the code of the parent theme template. If that’s not an option please use a service like pastebin https://pastebin.com/ to post the code of your child theme footer.php and I’ll review it.

    Best regards,
    Peter

    #1014243

    Aaah…! Long time ago & this could be. The child-theme footer.php.

    Paste the code there.

    #1014305

    Hi,

    I corrected the code – please open up your child theme footer.php, delete the entire code and copy/paste the code from here: https://pastebin.com/raw/9fXBTLUy into the file.

    Best regards,
    Peter

    #1014582

    Hi Peter,

    cool. COuld you tell me, what was wrong with that? I think, I inserted a code from an earlier support post.
    Conclusion for me. From time to time refresh your php in the child theme.

    Thanks and SOLVED

    #1014594

    Hi,

    This line in your code:

    
    <span class='copyright'><?php echo "&copy;". " " . Copyright . " " . date ('Y') . " " . $copyright; ?></span>
    

    was not valid because “Copyright” (without the quotes) was no variable, no constant, etc. but plain text. I moved it inside the “©” text string and this fixed the error.

    Best regards,
    Peter

    #1014657

    Hi,

    I understand it and wonder, how it works the last years…

    Could you please check one thing. The functions.php is coordinated with the enfold support too. Is this up to date or some coding not needed anymore? Thank you very much.

    Best regards Sven

    #1014664

    Hey!

    I could not find any errors or unnecessary code :)

    Regards,
    Peter

    #1014672

    Cool! SOLVED

    #1014728

    Hi,

    Great, I’ll go ahead and close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Footer issue | Copyright’ is closed to new replies.