Hi,
a have not been to my website for a month (everything was ok back then). When I went to mywebsite/manager/ I just found this error message:
Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'header.tpl'' in /home/.sites/148/site635/web/core/model/smarty/sysplugins/smarty_internal_template.php:162 Stack trace: #0 /home/.sites/148/site635/web/core/model/smarty/sysplugins/smarty_internal_template.php(537): Smarty_Internal_Template->isExisting(true) #1 /home/.sites/148/site635/web/core/model/smarty/Smarty.class.php(335): Smarty_Internal_Template->getRenderedTemplate() #2 /home/.sites/148/site635/web/core/model/modx/modmanagercontroller.class.php(257): Smarty->fetch('header.tpl') #3 /home/.sites/148/site635/web/core/model/modx/modmanagercontroller.class.php(448): modManagerController->fetchTemplate('header.tpl') #4 /home/.sites/148/site635/web/core/model/modx/modmanagercontroller.class.php(166): modManagerController->getHeader() #5 /home/.sites/148/site635/web/core/model/modx/modmanagerresponse.class.php(121): modManagerController->render() #6 /home/.sites/148/site635/web/core/model/modx/modmanagerrequest.class.php(178): in /home/.sites/148/site635/web/core/model/smarty/sysplugins/smarty_internal_template.php on line 162
I am using
MODX Version: Revolution 2.2.13
PHP Version:5.2
Datenbank (MySQL, SQL Server, etc) Version:MySQL 5.1
can anybody tell me what to do?
thank you for your help
-
☆ A M B ☆
- 2,213 Posts
You should really update your PHP version, as PHP 5.2 hasn't been supported for several years (see:
http://php.net/eol.php).
That being said the next step would be checking your config paths in the core, connector, manager and webroot.
Thank you for your answer.
I use PHP 5.5 now. I checked the config paths. They are okay. I disabled the plugin (in the database), found a wrong path in the modx_workspaces, corrected it, ran the setup for 2.2.13.
I still get the same error message instead of the manager log in panel. The Website looks ok all the time it just doesn't show some of the pictures.
Do you have an idea what I could do?
-
☆ A M B ☆
- 2,213 Posts
It's possible your manager is corrupt, can you try upgrading to 2.2.16? Also can you tell us more about your hosting environment for example phpinfo output?
The first thing to try is deleting all files in the core/cache directory and clearing your browser cache and cookies.
Next, I would try disabling all plugins in the DB and double-checking the paths and URLs in the core/config/config.inc.php file.
Something else to try -- Set these System Settings in the DB to 0: compress_js, compress_css, friendly_urls. Then rename the .htaccess file and delete all files in the core/cache directory again.
Thank you BobRay!!!
the file core/config/config.inc.php had wrong 4 wrong paths in it. How can that happen? After correcting that I am able to log in again!
There is still a problem with gallery but thats a very small problem compared to the solved one.
I guess I should update to 2.3.3 now. something I should consider doing that?
Did you leave the setup directory there earlier? Someone else may have run Setup while trying to hack the site. That could mess up the paths. Another possibility is that you updated the site from a local install or another server and accidentally copied the config file.
Yes, the upgrade is definitely a good idea. 2.3.3 is more secure. If you don't have too many plugins, I'd recommend disabling them (right-click on them in the tree) before the update. Be sure to back up the full site, log off, and delete all files in the core/cache directory before performing the upgrade.
After the update, clear your browser cache and any cookies for the site before trying to log in. After logging in and making sure you can edit and save various objects, enable the plugins one by one to make sure they all work with 2.3.3.
[update] I should have asked if the incorrect paths/urls in config.inc.php were to someone else's site. That would indicate that your site has been hacked.
-
☆ A M B ☆
- 24,524 Posts
It is very simple to upgrade using the install.php script from
https://github.com/sottwell/installer
I don't know how that could have happened. MODX never alters the config files except during setup.