• dfrantzen

    (@dfrantzen)


    Hi. I’m migrating a site from my dev to the final home, and I get the following errors at the top of the page, which prevent me from accessing child pages or the dash:

    Warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 1 in /usr/local/4admin/apache/vhosts/touchstone.org/httpdocs/wp-includes/class-wp.php on line 164
    
    Warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 1 in /usr/local/4admin/apache/vhosts/touchstone.org/httpdocs/wp-includes/class-wp.php on line 167
    
    Warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 1 in /usr/local/4admin/apache/vhosts/touchstone.org/httpdocs/wp-includes/class-wp.php on line 170

    When I go to the class-wp.php, those lines refer to the preg_replace lines, specifically dealing with the home_path:

    $req_uri = str_replace($pathinfo, '', $req_uri);
    $req_uri = trim($req_uri, '/');
    $req_uri = preg_replace("|^$home_path|", '', $req_uri);
    $req_uri = trim($req_uri, '/');
    $pathinfo = trim($pathinfo, '/');
    $pathinfo = preg_replace("|^$home_path|", '', $pathinfo);
    $pathinfo = trim($pathinfo, '/');
    $self = trim($self, '/');
    $self = preg_replace("|^$home_path|", '', $self);
    $self = trim($self, '/');

    I just want to get this working to show the client, as we just had to move to this new host, who has been zero help. I migrated the files to the root directory, and have the DB playing nice with it, as far as I know. This is the first time I’ve ever seen this.

    My site is here right now: https://66.230.196.19/*touchstone.org/httpdocs/

    Any help would be amazing. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    (@esmi)

    Try:
    – switching to the Twenty Eleven theme by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    resetting the plugins folder by FTP or phpMyAdmin.

    – re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    Thread Starter dfrantzen

    (@dfrantzen)

    No dice on any of that. For some reason, renaming my theme didn’t automatically revert to twenty-eleven– it just displayed a white screen with the same errors at the top that I’ve been seeing.

    Getting a wee bit desperate here. I’ve done probably 30 WP sites, and I have literally never seen this before.

    esmi

    (@esmi)

    Did you re-upload the core WP files as suggested above?

    Thread Starter dfrantzen

    (@dfrantzen)

    I did, yes. All except the wp-content folder. I was also able to revert it to the twenty-eleven theme, and I am now able to access the Dashboard, if that helps. Same damn errors still at the top though, and all of the child pages revert back to the homepage.

    Thread Starter dfrantzen

    (@dfrantzen)

    I also contacted the host because PHP Safemode is turned on on their end. BTW– I already tried deleting all plugins, and attempting emptying the functions. Same stinkin errors.

    esmi

    (@esmi)

    You could ask your hosts about the warnings at the top of your site. For example, what version of PHP are they running? Is this a Windows or Linux server? Why aren’t warnings and notices being suppressed (most host do this to obvious security reasons).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘ERROR: Compilation failed: nothing to repeat at offset 1’ is closed to new replies.