I've got a message below (the part "xyz/blog-name" 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/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
I've got a message below (the part "xyz/blog-name" 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/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
Share Improve this question edited Apr 20, 2020 at 5:12 Chetan Vaghela 2,4084 gold badges10 silver badges16 bronze badges asked Apr 19, 2020 at 16:38 KerenKeren 11 Answer
Reset to default 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