Fix lỗi dispatcher.php và event.php trên PHP 5.3 and higher

0

There are a few plugins that are not compatible with PHP 5.3+ and Joomla 1.5x, and they may show up like the error messages below:
Warning: Parameter 1 to plgContentJA_tabs:nPrepareContent() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/event.php on line 67
Warning: Parameter 1 to plgContentPlg_JAThumbnail:nPrepareContent() expected to be a reference, value given in home/bienthuy/public_html/libraries/joomla/event/event.php on line 67
Warning: Parameter 1 to plgContentEmailCloak() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/dispatcher.php on line 136
Warning: Parameter 1 to plgContentLoadModule() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/dispatcher.php on line 136
Warning: Parameter 1 to plgContentPagebreak() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/dispatcher.php on line 136
Warning: Parameter 1 to plgContentJA_tabs:nPrepareContent() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/event.php on line 67
Warning: Parameter 1 to plgContentPlg_JAThumbnail:nPrepareContent() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/event.php on line 67
Warning: Parameter 1 to plgContentEmailCloak() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/dispatcher.php on line 136
Warning: Parameter 1 to plgContentLoadModule() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/dispatcher.php on line 136
Warning: Parameter 1 to plgContentPagebreak() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/dispatcher.php on line 136
Warning: Parameter 1 to plgContentJA_tabs:nPrepareContent() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/event.php on line 67
Warning: Parameter 1 to plgContentPlg_JAThumbnail:nPrepareContent() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/event.php on line 67
Warning: Parameter 1 to plgContentEmailCloak() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/dispatcher.php on line 136
Warning: Parameter 1 to plgContentLoadModule() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/dispatcher.php on line 136
Warning: Parameter 1 to plgContentPagebreak() expected to be a reference, value given in /home/bienthuy/public_html/libraries/joomla/event/dispatcher.php on line 136

It’s just a warning, so you can easy disable it by login to administrator, then go to configuration, click Server tab, and look at Error Reporting, choose None on the dropdown list. (As in below picture)

Go to configuration, click Server tab, and look at Error Reporting, choose None on the dropdown list

Go to configuration, click Server tab, and look at Error Reporting, choose None on the dropdown list

Or, if you dont want to do that, you can complete change some code to fix it work on PHP 5.3 or higher. Fortunately, this is a pretty simple thing to fix;

Step 1: Open dispatcher.php and find:

Replace by:

Step 2: Open event.php and find:

Replace by:

Alternatively, you can download these fixed files Joomla dispatcher.php and event.php. Hope this helps!

Fix lỗi dispatcher.php và event.php trên PHP 5.3 and higher
5 - 1190 votes

Same tags:

  1. Joomla Fix Out of sort memory, consider increasing sort buffer size
  2. Fixed: Google sitemap error “Invalid tag value. This XML tag has an invalid value”
  3. Joomla 2.5: Fix lỗi Refresh Manifest Cache failed: Extension is not currently installed

Other Posts you may be interested in:

  1. Coupon free 10$ VPS Digital Ocean tháng 12 năm 2014
  2. Tăng tốc máy tính với CCleaner và vài thủ thuật nhỏ
  3. NameCheap Coupon .Net only $3.88
  4. Đoán giới tinh thai nhi qua tuổi mẹ và tháng thụ thai
  5. Hướng dẫn cài đặt Font chữ (ABC, VNI, thư pháp …) cho Windows
  6. Kinh dịch chữa bệnh – niệm số chữa bệnh
  7. Hostgator Blackfriday and Cyber Monday 2014 coupon
Cập nhật lúc: 05:40:44 AM, 24th March 2018

Comments

Leave A Reply