I just made a small update to a .php file that broke the whole site. I got this error message.
Parse error: syntax error, unexpected ‘:’ in /home/avchirop/public_html/wp-content/themes/wp_medi5-v1.0/panel/generic.php on line 478
This is the code on that line of the file:
$text = preg_replace(‘/:year:/’, date(‘Y’), $text);
Odd thing is I didn’t even change anything on that line.
Also odd, I installed a backup of the file and that still didn’t fix the problem.
Can anyone tell me what’s going on here?
- The topic ‘Parse error: syntax error’ is closed to new replies.