PDA

View Full Version : Getting error in template while posting. Please help


harpreetxi
06-09-2014, 10:27 AM
Warning: preg_match() [function.preg-match]: Unknown modifier '/' in [path]/global.php(37) : eval()'d code on line 13

It shows this error many times when anyone try to post thread , reply or comment.

How do i fix it ?

Dave
06-09-2014, 02:22 PM
Did you install a plugin lately? Might want to disable your latest installed plugins one by one until you figured out which plugin causes it.

CAG CheechDogg
06-09-2014, 03:21 PM
This is a php upgrade error ..you will need to make your php version what it used to be in your cPanel so you don't continue to have that error.... many people's websites are getting errors like this because of the recent upgrade to php 5.4 and 5.5 ....

In you cPanel you can set you default php version to use for your site ..

Lynne
06-09-2014, 04:04 PM
If you are going to run PHP5.4 on the server, you must be running 4.2.2 AND add the following line to your config.php file under the <?php line:


define('SKIP_ALL_ERRORS', true);