PHP 7.2 - Warning: Use of undefined constant „betheme_child_styles“

edited April 2019 in Theme support






p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Arial}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 16.0px Arial; min-height: 18.0px}

Hi,


We have created a BeTheme child on one of our customer websites

If we want to update the php version, we get this error message.


Warning: Use of undefined constant „wp_enqueque_scripts“ ….

Warning: Use of undefined constant „betheme_child_styles“ …

Warning: Cannot modify header information …


Does that mean that we did not properly create the child? 

Or that we need an update / new purchase of the theme?


Thanks for your reply!


All the best



p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 16.0px Arial; color: #212121; -webkit-text-stroke: #212121; background-color: #ffffff}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 18.0px; font: 16.0px Arial; color: #212121; -webkit-text-stroke: #212121; background-color: #ffffff; min-height: 18.0px}
span.s1 {font-kerning: none}

Comments

  • Hi,
    It could be related to not correct created child theme - but let's do it step by step.
    1) Please switch to the parent theme and try to update the php version then - you won't lose any of your settings, so do not be worry about it.

    2) When did you create the Child Theme?
    Three or more weeks ago, we released the update to a child theme, and if you did it earlier or in a similar time, you would have to make some changes in the code of Child theme.

    3) Of course, you don't have to buy a new theme.
    You can reinstall your theme too, but all of your settings will not be lost because all of them are stored in the database.

    Thanks
  • Thank you for your answers and sorry for the late response. My questions:

    1) You mean to active the betheme in Designs and afterwards change the php version again?

    2) We did create the Child Theme definitely earlier. Which changes in the code of Child Theme we have to make?


    Thanks a lot!




  • 1) Yes, after changing the PHP Version, try to switch to Child Theme.
    If some of your pages will be blank, please turn on the "WP_Debug" mode and send us screenshots of these error messages.
    We'll tell you what to do then.

    How to turn on the debug mode of WP?

    Thanks
  • Ok, I switched to the parent Betheme and afterwards changed the PHP version to 7.2.
    It worked! BUT, switching to Child-Theme wasn't successful.

    I get this Errror:

    use of undefined constant "wp-enqueue scripts" (this will throw an error in a future version php)
    use of undefined constant "betheme child styles" (this will throw an error in a future version php)

    So at the moment the page is running with the parent betheme, version: 17.8.4


    Thanks for your help!!


  • The issue is most likely caused by your theme version being so old.
    I just replied you in this topic:

    Please update the theme following the instructions posted there.
Sign In or Register to comment.