Recently I updated one of my CMSMadeSimple websites. After the CMS system was updated I run into the following problem:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/www/ivan/site/lib/smarty/Smarty_Compiler.class.php(270) : regexp code on line 5
Fatal error: preg_replace() [function.preg-replace]: Failed evaluating code: ‘{php’ . str_repeat(" ", substr_count(‘{* You can also instantiate custom behaviour on a module by module basis by looking at the $entry->module and $entry->modulerecord fields in $entry ie: {if $entry->module == ”News”}{News action=”detail” article_id=$entry->modulerecord detailpage=”News”} *}’, " ")) .’}’ in /home/www/ivan/site/lib/smarty/Smarty_Compiler.class.php on line 270
The search function didn’t work and system stopped with the error above. I reinstalled complete new version of CMSMadeSimple and ended with more errors. All related with comments in the template or in the search "Result Template" areas.
To fix the search function follow my instruction below:
- Login on the CMSMadeSimple Admin page
- Go to Extensions / Search and click "Result Template"
- Remove the comment starting with {* to *} and submit
- Try the search your website again.
- Wow it solved my problem
The issue has to do with single quotes in combination with the mysql and Apache version. Hopefully some of you can add some comments for additional information.
Leave a comment