This is the bug tracking and feature request tracking system for the Mambo open source CMS project. To add a new task, or comment or vote on an existing task, please register, preferably by using the same username that you use on the forums.
Please do not open tasks for bugs in versions earlier than Mambo 4.6.5.
FS#470 - PHP5.3 errors with PEAR cache_lite
Opened by Lynne Pope (Elpie) - Tuesday, 03 November 2009, 19:32 GMT-4
|
DetailsReported by mfrye here:http://forum.mambo-foundation.org/showthread.php?t=17533 i am using mambo vs 4.6.0 and our host server updated to php vs 5.3 as of today without letting me know and i am getting various warnings allover our site. Warning: Parameter 3 to showSection() expected to be a reference, value given in ........./www/includes/Cache/Lite/Function.php on line 100
code is: |
See also: http://mambo-developer.org/tracker/index.php?do=details&task_id=461
Reference: Server Configuration Apache Version :2.2.11 PHP Version :5.3.0 and MySQL Version :5.1.36 I have installed mambo withoth problems, but when I try to view the mambo site that I have created, i saw a lot of this messages like the messages that you will see below. The question is, what I have to review, due to the mambo installation doesn't show any error.
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\index.php on line 176
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\index.php on line 289
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\index.php on line 346
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\index.php on line 351
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 406
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 417
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 532
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 1150
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 1733
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 2745
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 2751
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 2757
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 2763
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 2769
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 2826
Deprecated: Function ereg_replace() is deprecated in C:\wamp\www\mambo\includes\core.classes.php on line 3136
Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\mambo\index.php:176) in C:\wamp\www\mambo\includes\core.classes.php on line 424
Fatal error: Call to undefined method mosMenu::mosDBTable() in C:\wamp\www\mambo\includes\core.classes.php on line 899
A fix is available for testing here: http://mambo-developer.org/tracker/index.php?do=details&task_id=461
Full details in this forum post here: http://forum.mambo-foundation.org/showthread.php?p=81756
Please read the forum post and apply the code changes to your files. Then please post a reply to that forum thread to let the team know if this fix works for you, or if you encounter any issues with it. Thanks.
Thank you so much Lynne for your helps and comments.
About the recommendations that I saw on the links that are listed before, I have made this changes:
add into php.ini in line 515 this two sentences:
error_reporting = E_STRICT
error_reporting = E_DEPRECATED
also about the other changes on file includes/database.php and file includes/Cache/Lite/Function.php
but for me this line is not so clear
Adding in php.ini:
•zend.ze1_compatibility_mode true
what does it means? in which line I should add it?
So making this changes, the errors that I still have are listed below:
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\index.php on line 176
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\index.php on line 289
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\index.php on line 346
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\mambo\index.php on line 351
I don't know what can i do. Please tell me if there is a solution for that.
Thank you!
check out this:
function mosDBTable ($table=
, $keyname='id', $db=) {if ($table) $this->_tbl = $table; else $this->_tbl = $this->tableName (); $this->_tbl_key = $keyname; if (is_object($db)) $this->_db = $db;What say? 040-444
Fantastic post as well as smashing contents.I want to show you some realities of life. As In the staggering economy to attain a good job is an up hill task. That’s why you have to add the Microsoft certification such as 000-904 to your profile. On the other hand the availability of the Microsoft 000-907 , has become the exams preparation easy for all. You could also attain the online available 000-924 exam prep, which would be helpful to accomplish your goal.