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

themes - Warning: Use of undefined constant HTTP_USER_AGENT - assumed 'HTTP_USER_AGENT' (this will throw an Erro

programmeradmin0浏览0评论

I am new to this and I need help in figuring out how to fix this error:

Warning: Use of undefined constant HTTP_USER_AGENT - assumed 'HTTP_USER_AGENT' (this will throw an Error in a future version of PHP) in /home/trewonco/public_html/zwp-t0bsb on line 1

This seemed to occur after I had pushed changes from our staging site to our live site, does anyone have an idea why this happened and how to fix it? Thank you very much for the help.

I am new to this and I need help in figuring out how to fix this error:

Warning: Use of undefined constant HTTP_USER_AGENT - assumed 'HTTP_USER_AGENT' (this will throw an Error in a future version of PHP) in /home/trewonco/public_html/zwp-t0bsb on line 1

This seemed to occur after I had pushed changes from our staging site to our live site, does anyone have an idea why this happened and how to fix it? Thank you very much for the help.

Share Improve this question asked Jan 5, 2021 at 15:52 Chris oChris o 112 bronze badges 1
  • /home/trewonco/public_html/zwp-t0bsb on line 1 - this is not a file reference, what is the full error log ? – Q Studio Commented Jan 5, 2021 at 16:39
Add a comment  | 

1 Answer 1

Reset to default 2

Somewhere in your code you've written $_SERVER[HTTP_USER_AGENT].

It needs to be $_SERVER['HTTP_USER_AGENT'] with quotes around 'HTTP_USER_AGENT'. PHP is telling you it's guessed that's what you meant.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论