Jomfish & JCacheStorageJFDB.php
I had to install the JomFish 2.0.3 Stable on one of my Joomla 1.5.14 website today and i got an error:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home//public_html/joomla/administrator/components/com_joomfish/classes/JCacheStorageJFDB.php on line 52
I had to do a research to find a solution to fix this error. The joomla and jomfish installation was clean so there was no dependecy error. I checked out the JomFish website and i read that all 2.0 and newer version of JomFish work only on Php 5.0 or newer. So I had to check the Php version under my host. And i saw that it was set to systems, default, which was probably php 4. I changed it to Php 5 and the jomfish started to work. If you face the same error here is how you can fix it:
1. Open your hosting’s cpanel
2. Go to Advanced tap, and click oh Php Configuration.
3. On the top of the page you can choose the Php version
4. Choose the Php 5 as version and click on the UPDATE button.
5. Thats all check out the JomFish now it will work.
Related posts: