我将 opencart 移动到另一个域,错误 ini_set() 被禁用

i moved opencart on another domain and error ini_set() is disable

我将 opencart 网站移到了另一台服务器上,但我收到以下错误。

Warning: ini_set() has been disabled for security reasons in /home/shoppin6/public_html/system/library/session.php on line 7Warning: ini_set() has been disabled for security reasons in /home/shoppin6/public_html/system/library/session.php on line 8Warning: ini_set() has been disabled for security reasons in /home/shoppin6/public_html/system/library/session.php on line 9Warning: ini_set() has been disabled for security reasons in /home/shoppin6/public_html/system/library/session.php on line 10Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/shoppin6/public_html/index.php:102) in /home/shoppin6/public_html/system/library/session.php on line 21

我用这个

编辑了php.ini文件
disable_functions = allow_url_fopen, escapeshellarg, escapeshellcmd, ini_alter, passthru, parse_ini_file, popen, proc_open, proc_close, proc_terminate, proc_get_status, proc_nice, readfile, show_source, system

我还设置了 ini_set = on; php.ini 文件,但错误相同,错误没有变化,这里是网站 link,shoppingdice.com

请尽快给我解决方案

通常您需要重新启动网络服务器服务才能使 php.ini 中的更改生效。但是,如果您无法控制自己的 Web 服务器进程,则这可能不适用于共享主机。如果您可以重新启动服务(并且在更改 php.ini 后还没有这样做)那么我建议您这样做。

如果仍有问题,您可能需要查看以下输出(您可以将其放入 test.php 之类的页面),然后在浏览器中调用该页面:

<?php
phpinfo();

它应该显示 "Loaded Configuration File" 下 php 配置的位置,希望这就是您更改的位置。在 "Core" 部分下,您应该能够看到 "disable_functions" 的值。如果它不是您设置的值,那么您的更改无效。出于安全原因,请在完成问题调试后删除文件 test.php。