CMS Made Simple Forums
https://forum.cmsmadesimple.org/

Ошибка eval()'d
https://forum.cmsmadesimple.org/viewtopic.php?f=27&t=78950
Page 1 of 1

Author:  nikey13 [ Thu Aug 23, 2018 6:46 am ]
Post subject:  Ошибка eval()'d

После переноса сайта на другой хостинг выходит ошибка eval()'d

\$1:
Notice: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' in /var/www/www-root/data/www/site.ru/lib/classes/class.usertagoperations.inc.php(266) : eval()'d code on line 58

Notice: Undefined offset: 2 in /var/www/www-root/data/www/site.ru/lib/classes/class.usertagoperations.inc.php(266) : eval()'d code on line 60

Notice: Undefined offset: 2 in /var/www/www-root/data/www/site.ru/lib/classes/class.usertagoperations.inc.php(266) : eval()'d code on line 60

Notice: Undefined variable: hLine in /var/www/www-root/data/www/site.ru/lib/classes/class.usertagoperations.inc.php(266) : eval()'d code on line 67

Notice: Undefined index: img in /var/www/www-root/data/www/site.ru/tmp/templates_c/^56bd0fc3007f545b09db6112b9c863c06be343a6.module_db_tpl.Products;summary_Sample.php on line 83

Notice: Trying to get property of non-object in /var/www/www-root/data/www/site.ru/tmp/templates_c/^56bd0fc3007f545b09db6112b9c863c06be343a6.module_db_tpl.Products;summary_Sample.php on line 83


как это исправить?

Author:  Jo Morg [ Thu Aug 23, 2018 12:46 pm ]
Post subject:  Re: Ошибка eval()'d

Sorry for replying in English, but hope this helps:
The error comes from a UDT which probably has
\$1:
$_SERVER[REQUEST_URI]
instead of
\$1:
$_SERVER['REQUEST_URI']
note the quotes...
The notice appears because they are set to display on the new server but it must have been there all along , just hidden.

Author:  Rolf [ Fri Aug 24, 2018 6:18 am ]
Post subject:  Re: Ошибка eval()'d

Please post your UDT code.

Author:  skyme [ Mon Oct 01, 2018 7:22 am ]
Post subject:  Re: Ошибка eval()'d

попробуйте решить проблему с помощью условия "if(isset())"

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/