Hướng dẫn khắc phục lỗi không tương thích của joomla 1.0.x trên php 5.3.x Print

  • 28

Hiện tại phiên bản php 5.2.17 đã end of life, toàn bộ server share hosting của VietHosting đã nâng cấp lên phiên bản php 5.3.13, một số khách hàng sử dụng phiên bản joomla 1.0.x sẽ gặp phải lỗi như sau:

“Warning: Parameter 2 to frontpage() expected to be a reference, value given in /your-root-installation/includes/Cache/Lite/Function.php on line 100″ .

hoặc:

“Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in /your-root-installation/libraries/joomla/cache/handler/callback.php on line 99″

hoặc:

“Warning: Parameter 1 to HTML_content::show() expected to be a reference, value given in/your-root-installation/includes/Cache/Lite/Function.php on line 92″

Cách khắc phục như sau:

Mở file sau:

/includes/Cache/Lite/Function.php

tìm đến dòng 74:

$arguments = func_get_args();

và thay bằng:

$arguments = func_get_args();
$numargs = func_num_args();
for($i=1; $i < $numargs; $i++){
$arguments[$i] = &$arguments[$i];
}

Sẽ khắc phục được lỗi trên, hi vọng bài viết có ích cho các bạn !


Was this answer helpful?

« Back