woff 發表於 2023-5-10 18:34:35

PHP 7 pageft函數重複宣告問題? Cannot redeclare function previously de...



在使用pageft分頁時發現無法正常秀出PHP5正常 到PHP7就出錯
查了LOG檔後
vi /var/log/php-fpm/www-error.log
發現重復宣告了兩次
抓掉引入的另一次就可以了
Cannot redeclare pageft() (previously declared in /home/www/web/includes/page.class.php:15) in /home/www/web/modules/shopcart/admin/class_object.php on line 233
PHP Notice:session_start(): A session had already been started - ignoring in /home/www/web/modules/shopcart/admin/admin_global.php on line 2
PHP Warning:Use of undefined constant page - assumed 'page' (this will throw an Error in a future version of PHP) in /home/www/web/includes/page.class.php on line 8



頁: [1]
查看完整版本: PHP 7 pageft函數重複宣告問題? Cannot redeclare function previously de...