0

I've got a message below (the part "xyz/blog-name.com" was changed). That error message is not because of a Plug-in, as the message doesn't disappear even I stop all Plug-ins.

"Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /home/xyz/blog-name.com/public_html/wp-content/themes/stingerplus-child/st-footer-content.php on line 20"

The line 20 in my wp currently reads as fallows;

<a href="<?php//echo esc_url( home_url( '/' ) ); ?>"><?php// bloginfo( 'description' ); ?></a>

Can anyone please advise me what is wrong here...? Thanks

1 Answer 1

2
<a href="<?php//echo esc_url( home_url( '/' ) ); ?>"><?php// bloginfo( 'description' ); ?></a>

The <?php// is the problem. PHP blocks are started with <?php but the code uses <?php//. Instead, change it to <?php //, or better yet, since // is meant to comment an entire line out, use /* */ style commenting instead

2
  • fixed! Thanks so so much!
    – Keren
    Commented Apr 19, 2020 at 16:56
  • Awesome, if my answer answered your question could you mark it as the correct answer? It's the big tick under the voting arrows
    – Tom J Nowell
    Commented Apr 19, 2020 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.