Xuất hiện những cảnh báo sau đây:
Warning [2] Trying to access array offset on value of type null - Line: 59 - File: inc/class_session.php PHP 8.1.33 (Linux)
File Line Function
/inc/class_session.php 59 errorHandler->error
/global.php 54 session->init
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key 2 - Line: 89 - File: inc/plugins/phptpl.php PHP 8.1.33 (Linux)
File Line Function
/inc/plugins/phptpl.php 89 errorHandler->error
[PHP]   {closure}
/inc/plugins/phptpl.php 109 preg_replace_callback_array
/inc/plugins/phptpl.php(70) : eval()'d code 19 phptpl_parsetpl
/global.php 844 phptpl_templates->get
/printthread.php 16 require_once
Warning [2] Undefined array key 2 - Line: 89 - File: inc/plugins/phptpl.php PHP 8.1.33 (Linux)
File Line Function
/inc/plugins/phptpl.php 89 errorHandler->error
[PHP]   {closure}
/inc/plugins/phptpl.php 109 preg_replace_callback_array
/inc/plugins/phptpl.php(70) : eval()'d code 19 phptpl_parsetpl
/global.php 844 phptpl_templates->get
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 102 - File: global.php(844) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(844) : eval()'d code 102 errorHandler->error
/global.php 844 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "avatar" - Line: 80 - File: global.php(938) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(938) : eval()'d code 80 errorHandler->error
/global.php 938 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "pms_unread" - Line: 99 - File: global.php(938) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(938) : eval()'d code 99 errorHandler->error
/global.php 938 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "logoutkey" - Line: 101 - File: global.php(938) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(938) : eval()'d code 101 errorHandler->error
/global.php 938 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.33 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.33 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



F@rum_Haiquan.info (*_*)
Fix lỗi "Assigning the return value of new by reference is deprecated" tại PHP 5.3 - Bản rút gọn

+- F@rum_Haiquan.info (*_*) (http://haiquan.info/F@rum)
+-- Diễn đàn: TIN HỌC- CÔNG NGHỆ (http://haiquan.info/F@rum/forumdisplay.php?fid=101)
+--- Diễn đàn: THIẾT KẾ WEB-LẬP TRÌNH (http://haiquan.info/F@rum/forumdisplay.php?fid=108)
+--- Chủ đề: Fix lỗi "Assigning the return value of new by reference is deprecated" tại PHP 5.3 (/showthread.php?tid=1422)



Fix lỗi "Assigning the return value of new by reference is deprecated" tại PHP 5.3 - ngocvu1403 - 10-07-2013

Bạn gặp những lỗi như thế này:
Deprecated: Assigning the return value of new by reference is deprecated in /home/powernet.vn/public_html/index.php on line 8
Deprecated: Assigning the return value of new by reference is deprecated in /home/powernet.vn/public_html/includes/dbconnect.php on line 4

Cách xử lý như sau, bạn hãy mở file lỗi ra, tìm đến dòng nó báo warning, ở đây là:

Trích dẫn:- index.php on line 8
- dbconnect.php on line 4

tìm dòng có cấu trúc như (thủ thuật: hãy tìm những dòng có ký tự "&"):
Code:

Trích dẫn:$tên_biến = & new abc;


Bạn bỏ kí tự "&" đi là hết lỗi thôi.
Chúc bạn thành công