Hi there,
Just migrated a site to a new server and having problems.
Uploaded the db and all files, set permissions etc and was just getting blank white screen with no output. (done this before on other server setups with no problem!)
Can't run a clean isntall either.
Put site into devmode and get following error:
[Warning] Wrong parameter count for substr_count()
GET /admin
Line 304 in /home/brandc/public_html/test/sapphire/core/control/HTTPRequest.php
Source
295
296 // Special case for the root URL controller
297 if(!$pattern) {
298 return ($this->dirParts == array()) ? array('Matched' => true) : false;
299 }
300
301 // Check for the '//' marker that represents the "shifting point"
302 $doubleSlashPoint = strpos($pattern, '//');
303 if($doubleSlashPoint !== false) {
304 $shiftCount = substr_count($pattern, '/', 0, $doubleSlashPoint) + 1;
305 $pattern = str_replace('//', '/', $pattern);
306 $patternParts = explode('/', $pattern);
307
308
309 } else {
310 $patternParts = explode('/', $pattern);
Trace
* substr_count(admin/security//$Action/$ID/$OtherID,/,0,14)
Line 304 of HTTPRequest.php
* HTTPRequest->match(admin/security//$Action/$ID/$OtherID,1)
Line 244 of Director.php
* Director::handleRequest(Object id #8,Session)
Line 121 of Director.php
* Director::direct(/admin)
Line 118 of main.php
Any suggestions? I can see from the php.ini that the PHP version is 5.0.4 - is this really likely to be what is causing the error? Cannot rebuild database, so unsure what to do.
When I uploaded the origianl .htaccess and _config.php and tried to do a clean install in a blank db it tried to install but just sat at install.php and couldn't get passed it.