• Hi

    I have just updated my site with a new version of PHP 7.4 and now have the following message on my web site. This is across the whole of my web site. Any clues on how I can get rid of this please. Thanks

    Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /homepages/32/d154723045/htdocs/skimarket/wp-content/themes/oxygen_child/fragments/woo-before.php on line 6

    • This topic was modified 4 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • You should have the DEBUG information turned off for a production site. https://www.ads-software.com/support/article/editing-wp-config-php/#wp_debug

    But, now that you know there is a problem, you should fix your child theme on the line indicated. PHP constants are defined using quotation marks. Using a bare word will be an error later. But since it is the word php, it is likely that you got the opening tag incorrect somehow. It should look like <?php, and yet if it doesn’t, you wouldn’t be in PHP and getting an error.

    • This reply was modified 4 years, 8 months ago by Joy.
Viewing 1 replies (of 1 total)
  • The topic ‘Use of undefinded constant php message’ is closed to new replies.