最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Warning message (re. php) on the blog page

programmeradmin3浏览0评论

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 1
Add a comment  | 

1 Answer 1

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

发布评论

评论列表(0)

  1. 暂无评论