Page 1 of 1

Old website has started showing deprecated errors

Posted: Thu Jan 26, 2012 7:25 pm
by ukmgranger
Hi all,

I have a site that I created a couple of years ago ( http://www.groovy-entertainment.co.uk ).

My client has called me to inform me that there are errors on the site.

Can anyone shed some light on how I can correct this?

I tried updating to the latest version, but that made things worse, so I went back to a backup.

The errors are:

Code: Select all

Deprecated: Assigning the return value of new by reference is deprecated in /home/wwwgroo/public_html/lib/classes/class.contentoperations.inc.php on line 61

Deprecated: Assigning the return value of new by reference is deprecated in /home/wwwgroo/public_html/lib/classes/class.contentoperations.inc.php on line 540

Deprecated: Function split() is deprecated in /home/wwwgroo/public_html/lib/classes/class.contentoperations.inc.php on line 850

Deprecated: Assigning the return value of new by reference is deprecated in /home/wwwgroo/public_html/lib/classes/class.templateoperations.inc.php on line 80

Deprecated: Function ereg_replace() is deprecated in /home/wwwgroo/public_html/plugins/function.stylesheet.php on line 57
cmsms version 1.3
PHP 5.3.9
MySQL client version: 5.0.92
Running on a Linux system

Installed modules:
Album
CMSMailer
FileManager
MenuManager
ModuleManager
News
nuSOAP
Printing
Search
ThemeManager
TinyMCE
TruetypeText

Re: Old website has started showing deprecated errors

Posted: Thu Jan 26, 2012 7:28 pm
by calguy1000
Please follow forum rules and post sufficient information for us to be able to help.

Re: Old website has started showing deprecated errors

Posted: Thu Jan 26, 2012 7:41 pm
by ukmgranger
Sorry about that. totally in a rush! - more detail:
cmsms version 1.3
PHP 5.3.9
MySQL client version: 5.0.92
Running on a Linux system

Installed modules:
Album
CMSMailer
FileManager
MenuManager
ModuleManager
News
nuSOAP
Printing
Search
ThemeManager
TinyMCE
TruetypeText

Re: Old website has started showing deprecated errors

Posted: Thu Jan 26, 2012 7:47 pm
by Dr.CSS
1.3 and the server has been updated to the latest PHP, have you thought about maybe upgrading the CMSMS also?...

Re: Old website has started showing deprecated errors

Posted: Thu Jan 26, 2012 8:00 pm
by ukmgranger
Dr.CSS wrote:1.3 and the server has been updated to the latest PHP, have you thought about maybe upgrading the CMSMS also?...
As I mentioned in the first post, I upgraded the cms to v1.10 ish. This seemed to destroy all styling on the site and still had multiple errors.

Do you think I would be better off upgrading the cms to the latest again, then go from there?

Also - should I just upgrade from 1.3 to 1.10 or should I use another version as a stepping stone?

Re: Old website has started showing deprecated errors

Posted: Thu Jan 26, 2012 9:39 pm
by ukmgranger
So I have now updated the site to version 1.10.3.

The only error that I am now getting is:

Code: Select all

Deprecated: Function ereg_replace() is deprecated in /home/wwwgroo/public_html/plugins/function.stylesheet.php on line 104
The front end however looks as though it has no styling what so ever.

HEEEeeeeelp :D

Re: Old website has started showing deprecated errors

Posted: Thu Jan 26, 2012 10:55 pm
by Dr.CSS
Some how you broke the old {stylesheet} function, easiest way to fix is to use {cms_stylesheet} tag and in all image calls use url([[root_url]]/

Re: Old website has started showing deprecated errors

Posted: Fri Jan 27, 2012 9:53 am
by ukmgranger
Thanks for that DrCSS.

I still have some problems though!

I have managed to get the site looking vaguely like normal by saving the CSS files as individual files on the server and just linking to them.

I am getting all sorts of errors in the back end though!

First things first.
The gallery doesn't seem to be working, so I thought I'd uninstall and re-install that module - no go!

When I try to uninstall, I get this message:

Code: Select all

Notice: Indirect modification of overloaded property CmsObject::$db has no effect in /home/wwwgroo/public_html/modules/Album/method.uninstall.php on line 22

Notice: Trying to get property of non-object in /home/wwwgroo/public_html/lib/adodb_lite/adodb.inc.php on line 156

Warning: include_once(/home/wwwgroo/public_html/lib/adodb_lite/adodbSQL_drivers//_datadict.inc) [function.include-once]: failed to open stream: No such file or directory in /home/wwwgroo/public_html/lib/adodb_lite/adodb.inc.php on line 158

Warning: include_once() [function.include]: Failed opening '/home/wwwgroo/public_html/lib/adodb_lite/adodbSQL_drivers//_datadict.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wwwgroo/public_html/lib/adodb_lite/adodb.inc.php on line 158

Fatal error: Class 'ADODB2_' not found in /home/wwwgroo/public_html/lib/adodb_lite/adodb.inc.php on line 161
The system is clearly having major problems! Any more ideas??

Re: Old website has started showing deprecated errors

Posted: Fri Jan 27, 2012 11:17 am
by mcDavid
Did you follow the update procedure to 1.10 at all?

http://forum.cmsmadesimple.org/viewtopi ... =1&t=57370
Users wishing to upgrade to CMSMS 1.10 should follow two similar, but different paths depending upon their sites current version of CMSMS.

It is always important to have a backup of your site, including the database and all relative files before proceeding with an upgrade.
If the version of CMSMS is less than 1.9.3:
a) Perform an upgrade to CMSMS 1.9.4.3 and verify that everything is working fine.
b) Backup your site again. It is always important to have a known-good-backup.

For all users upgrading to CMSMS 1.10:
c: Upgrade all modules to the latest available version.
d: Look at all of the third party plugins you have installed into your sites plugins directory and ensure that they should be compatible with CMSMS 1.10 (you may need to refer to the information below or to the forum for this).
e: Look at all of your User Defined Tags (UDT’s) to insure that they should be compatible with CMSMS 1.10. See the technical information below to see what has changed.
e: Ensure that each module that your site requires is compatible with CMSMS 1.10. As some modules have needed revisions to be compatible. If your site is using some older or less used modules, you may have to contact the modules author or enquire in the CMSMS forum to see if the module is compatible.