I had a Drupal installation at www.example.com/test
. Now, it's ready to go live, and I am trying to move it to www.example.com
. I changed the line in sites/default/settings.php
to:
$base_url = 'http://www.example.com/'; // NO trailing slash!
When I navigate to my index.php, I get all sorts of parse errors, like this:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
in /home/example/public_html/sites/all/modules/typogrify/typogrify.class.php
on line 18
The problem is this:
public static function amp($text) {
$amp_finder = "/(\s| )(&|&|&\#38;|&)(\s| )/";
return preg_replace($amp_finder, '\\1<span class="amp">&</span>\\3', $text);
}
Every function like this is causing errors. then does PHP no longer understand this syntax that worked perfectly fine before in a subdirectory?