Page 1 of 1

Ошибка eval()'d

Posted: Thu Aug 23, 2018 6:46 am
by nikey13
После переноса сайта на другой хостинг выходит ошибка eval()'d

Code: Select all

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
как это исправить?

Re: Ошибка eval()'d

Posted: Thu Aug 23, 2018 12:46 pm
by Jo Morg
Sorry for replying in English, but hope this helps:
The error comes from a UDT which probably has

Code: Select all

$_SERVER[REQUEST_URI]
instead of

Code: Select all

$_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.

Re: Ошибка eval()'d

Posted: Fri Aug 24, 2018 6:18 am
by Rolf
Please post your UDT code.

Re: Ошибка eval()'d

Posted: Mon Oct 01, 2018 7:22 am
by skyme
попробуйте решить проблему с помощью условия "if(isset())"