4571 Posts in 1384 Topics by 1376 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 903 Views |
-
Strange error in SSView.php

3 January 2009 at 1:35am Last edited: 3 January 2009 1:35am
Hi,
I have installed SS a lot of times and it has always worked without problems. But last week I tried to install SS 2.2.3 (fresh download from this site) on a new host (PHP Version 5.1.6) I got blank pages after I had passed the Install steps.
Tried flushing and everything I could think of
Then I went into dev mode and saw the error. It complied about a missing parenthesis in SSView.php on line 305 (I think it was).
Orginal file:$content = ereg_replace('<' . '% +sprintf\(_t\((\'([^\']*)\'|"([^"]*)")(([^)]|\)[^ ]|\) +[^% ])*)\),\<\?= +([^\?]*) +\?\>) +%' . '>', '<?= sprintf(_t(\''. $path[1] . '.\\2\\3\'\\4),\\6) ?>', $content);
I replaced it with:
$content = ereg_replace('<' . '% +sprintf\(_t\((\'([^\']*)\'|"([^"]*)")(([^)]|\)[^ ]|\) +[^% ])*)\),\<\?= +([^\?]*) +\?\>\) +%' . '>', '<?= sprintf(_t(\''. $path[1] . '.\\2\\3\'\\4),\\6) ?>', $content);
All I did was changing a ')' to '\)' and it worked.
Is this correct from the beginning or is it my version of PHP that has some bug in the ereg functions?
| 903 Views | ||
|
Page:
1
|
Go to Top |
