Page 1 of 1

CMSMS 1.11.4 getting error on User::SetInitialValues()

Posted: Sat Mar 16, 2013 9:54 am
by msc1
Hi,

We are a cpanel hosting company and yesterday our client asked for changing ownership of domain (moved from a reseller account to root account). After the change operation site's admin panel started to give following error (copy/pasted from error log)

PHP Fatal error: Call to undefined method User::SetInitialValues() in /home/xxxx/public_html/lib/classes/class.user.inc.php on line 82

There were previous errors on the error log (pasted below) but it doesn't give the error anymore;

PHP Fatal error: Call to undefined method pear_ADOConnection::IsConnected() in /home/xxxx/public_html/lib/classes/class.CmsApp.php on line 432

PHP Fatal error: Class 'Smarty_Internal_Template' not found in /home/xxxx/public_html/lib/smarty/Smarty.class.php on line 1235

I checked mysql connectivity and everything seems fine, the site's every function works as it should but I can't login to xxxx.com/admin/login.php

Any help would be appreciated, thanks.

Re: CMSMS 1.11.4 getting error on User::SetInitialValues()

Posted: Sat Mar 16, 2013 2:12 pm
by calguy1000
When changing the working directory of a CMSMS install, whether you just renamed the directory or physically moved the files to another host you need to:

a: Check the config.php to change any paths that may be in there.
(later versions of CMSMS automatically calculate most of the paths, but they can still be overridden in the config.php)

b: Clear the CMSMS cache.
if you cannot login to the admin to do this via the standard mechanism, you can delete all files from the tmp/cache and tmp/templates_c directories.

Re: CMSMS 1.11.4 getting error on User::SetInitialValues()

Posted: Sat Mar 16, 2013 2:37 pm
by msc1
Thank you very much for your reply.

I've cleared the /tmp/cache and /tmp/templates_c folders and tried to login but no luck.

I've also checked the ../config.php where the DB credentials are stored and they are working fine and there's no sql connectivity issue. Is there any other configurations that I should also check?

I'd like to add that we only changed the ownership of the domain. I believe this only affects cPanel's database and there shouldn't be any folder change. Every file ownership and folder permissions are untouched and exactly the same as before.

Thanks again for your reply.

Re: CMSMS 1.11.4 getting error on User::SetInitialValues()

Posted: Sat Mar 16, 2013 3:09 pm
by calguy1000
The function SetInitialValues() is in the same file (lib/classes/class.user.inc.php) can't see a reason why it would fail... other than the normal ones.

If you have not moved the site, just some internal database work in cpanel, then I don't think this should have broken CMSMS. You're probably looking for a corrupt file some place. I would start by looking at that file (lib/classes/class.user.inc.php).

Re: CMSMS 1.11.4 getting error on User::SetInitialValues()

Posted: Sun Mar 17, 2013 8:28 am
by msc1
I resolved the issue by reinstalling and overwriting files. Admin panel is reachable now.