CMS Made Simple 1.4 : Parse error: parse error, unexpected
Posted: Fri Aug 15, 2008 11:14 am
Hi,
Recently I upgraded CMSMadeSimple from version 1.04 to 1.4. The website was running on a Ubuntu JeOS 7.04 machine and moved the website content and the database back to the hosting provider.
Everything is working fine except for the Search function and couple minutes ago I also got a error message when trying to get the server info report in text.
Error message1:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/www/hubo-roneijgelsheim/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/hubo-roneijgelsheim/site/lib/smarty/Smarty_Compiler.class.php on line 270
http://www.hubo-roneijgelsheim.nl/site/index.php?mact=Search%2Ccntnt01%2Cdosearch%2C0&cntnt01returnid=15&cntnt01searchinput=deuren&submit=Versturen
Error message2:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/www/hubo-roneijgelsheim/site/lib/smarty/Smarty_Compiler.class.php(270) : regexp code on line 23
Fatal error: preg_replace() [function.preg-replace]: Failed evaluating code: '{php' . str_repeat(" ", substr_count('{literal} function fnSelect(objId) { fnDeSelect(); if (document.selection) { var range = document.body.createTextRange(); range.moveToElementText(document.getElementById(objId)); range.select(); } else if (window.getSelection) { var range = document.createRange(); range.selectNode(document.getElementById(objId)); window.getSelection().addRange(range); } } function fnDeSelect() { if (document.selection) document.selection.empty(); else if (window.getSelection) window.getSelection().removeAllRanges(); } fnSelect(''copy_paste_in_forum''); {/literal}', " ")) .'}' in /home/www/hubo-roneijgelsheim/site/lib/smarty/Smarty_Compiler.class.php on line 270
I am not sure if this has something to do with my hosting provider settings or my config.php file. I had some issue when dumping my sql export file back to the hosting mysql server and removed coupe of settings like collation.
See attached text file for server report.
Any suggestion is welcome.
Thank you.
Ivan Versluis
www.networknet.nl
Recently I upgraded CMSMadeSimple from version 1.04 to 1.4. The website was running on a Ubuntu JeOS 7.04 machine and moved the website content and the database back to the hosting provider.
Everything is working fine except for the Search function and couple minutes ago I also got a error message when trying to get the server info report in text.
Error message1:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/www/hubo-roneijgelsheim/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/hubo-roneijgelsheim/site/lib/smarty/Smarty_Compiler.class.php on line 270
http://www.hubo-roneijgelsheim.nl/site/index.php?mact=Search%2Ccntnt01%2Cdosearch%2C0&cntnt01returnid=15&cntnt01searchinput=deuren&submit=Versturen
Error message2:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/www/hubo-roneijgelsheim/site/lib/smarty/Smarty_Compiler.class.php(270) : regexp code on line 23
Fatal error: preg_replace() [function.preg-replace]: Failed evaluating code: '{php' . str_repeat(" ", substr_count('{literal} function fnSelect(objId) { fnDeSelect(); if (document.selection) { var range = document.body.createTextRange(); range.moveToElementText(document.getElementById(objId)); range.select(); } else if (window.getSelection) { var range = document.createRange(); range.selectNode(document.getElementById(objId)); window.getSelection().addRange(range); } } function fnDeSelect() { if (document.selection) document.selection.empty(); else if (window.getSelection) window.getSelection().removeAllRanges(); } fnSelect(''copy_paste_in_forum''); {/literal}', " ")) .'}' in /home/www/hubo-roneijgelsheim/site/lib/smarty/Smarty_Compiler.class.php on line 270
I am not sure if this has something to do with my hosting provider settings or my config.php file. I had some issue when dumping my sql export file back to the hosting mysql server and removed coupe of settings like collation.
See attached text file for server report.
Any suggestion is welcome.
Thank you.
Ivan Versluis
www.networknet.nl