How to fix most common issues
From TomatoCMS Documentation
While use TomatoCMS, users often meet some most common problems as:
Login: Access denied, contact with Administrator
It’s maybe occurred cause core_resource table has not any record, so just import your data or import sample data of us at tomato_folder/ install/ tomatocms_sample_db_mysql.sql
Install with WAMP server: 500 Internal Server Error
To solve this problem, please make sure the mod_rewrite module is already enabled on Apache server.
It is easy to enable this module.
Open your Apache configuration file (httpd.conf) and remove the # character at the beginning of the following line:
LoadModule rewrite_module modules/mod_rewrite.so
Then restart Apache.
If mod_rewrite is enabled but you still see this error, please leave your Apache log on this thread.
Problem with ".../Zend/Http/Client/Adapter/Socket.php"
It occurs cause has some trouble when connecting to external website as Twitter, RSS entries, Flickr, Youtube (in frontend) and our TomatoCMS (in backend - that informs the newer version if there is), then you have to delete those widgets.
- Go to the Layout Editor in backend (http://yourDomain/admin/core/page/layout/default/home/), delete the widgets that connect to the internet (for example: Youtube Clip, Updates from Twitter and RSS entries), then click "Save" button.
- To remove informs the newer version if there is, please open the application/modules/core/controllers/IndexController.php and comments all lines as follow:
/** * Get the latest version info * Inform if there is newer version * @since 2.0.1 */ $hasNewerVersion = false; $latestVersion = null; // try { // $latestVersion = Tomato_Core_Utility_HttpRequest::getResponse(self::CHECK_VERSION_API); // if (version_compare(Tomato_Core_Version::getVersion(), $latestVersion, '<')) { // $hasNewerVersion = true; // } // } catch (Exception $ex) { // } $databaseVersion = Tomato_Core_Db_ConnectionFactory::factory()->getVersion();
The homepage is slow
The problem might be caused by Twitter widget, therefore you can try to solve this by removing the Twitter widget on homepage - Open /application/templates/default/layouts/home.xml - Remove Twitter widget by deleting the following section from this file:
<widget name="twitter" module="utility" load="php"> <title><![CDATA[Twitter updates]]></title> <resources></resources> <params> <param name="account"><value><![CDATA[tomatocms]]></value></param> <param name="limit"><value><![CDATA[10]]></value></param> </params> <cache lifetime="3600" /> </widget>
Upload module
When upload new module, widget, plugin, hook … maybe you meet inform: TomatoCMS use php_zip extend to unzip upload files. Your server has not installed this extend, so you can not upload new module. Contact your hosting provider to support.
Let’s contact with your hosting provider to request php_zip extend. If can not, you can direct upload via FTP:
- Plugin: upload into /application/plugins folder
- Hook: upload into /application/hooks folder
- Module: upload into /application/modules folder
- Widget: each widget belong to each module, and you can upload into /application/modules/Module_name/widgets
Fatal error: Cannot redeclare class Zend_Exception in ...
Fatal error: Cannot redeclare class Zend_Exception in /home/pitrexde/domains/pitrexdemo.com/public_html/libraries/Zend/Exception.php on line 28
Some people asked us about this error.
Maybe it is caused by XCache - the extension of PHP, you can solve this issue by two ways.
1. Disable XCache extension in your php.ini file
2. Insert following code in top of your site which meet this problem
ini_set('xcache.cacher', '0');
Parse error: syntax error, unexpected T_OBJECT_OPERATOR
If you get that error when try to install TomatoCMS, please check your PHP version (see the top of your PHP info page).
If your server hasn't PHP 5.2 or later, please upgrade PHP to latest 5.x.x branch.
