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.
CMSMS 1.11.4 getting error on User::SetInitialValues()
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: CMSMS 1.11.4 getting error on User::SetInitialValues()
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.
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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: CMSMS 1.11.4 getting error on User::SetInitialValues()
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.
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: CMSMS 1.11.4 getting error on User::SetInitialValues()
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).
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).
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: CMSMS 1.11.4 getting error on User::SetInitialValues()
I resolved the issue by reinstalling and overwriting files. Admin panel is reachable now.