Tagged: copyright
-
AuthorPosts
-
September 25, 2018 at 2:04 pm #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?
ThanksSeptember 25, 2018 at 2:16 pm #1014183Hey 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,
PeterSeptember 25, 2018 at 2:38 pm #1014197Hi 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
September 25, 2018 at 3:07 pm #1014213Hey!
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,
PeterSeptember 25, 2018 at 3:47 pm #1014243Aaah…! Long time ago & this could be. The child-theme footer.php.
Paste the code there.
September 25, 2018 at 5:20 pm #1014305Hi,
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,
PeterSeptember 26, 2018 at 8:54 am #1014582Hi 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
September 26, 2018 at 9:11 am #1014594Hi,
This line in your code:
<span class='copyright'><?php echo "©". " " . 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,
PeterSeptember 26, 2018 at 11:01 am #1014657Hi,
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
September 26, 2018 at 11:13 am #1014664Hey!
I could not find any errors or unnecessary code :)
Regards,
PeterSeptember 26, 2018 at 11:32 am #1014672Cool! SOLVED
September 26, 2018 at 1:55 pm #1014728 -
AuthorPosts
- The topic ‘Footer issue | Copyright’ is closed to new replies.