• Resolved petesatrain

    (@petesatrain)


    Hello All,

    I apologize if this issue is addressed elsewhere, but I searched the forums and trac.www.remarpro.com and was not able to find the answer. I’ve recently assisted a friend in moving her WordPress installation to a new host. Whenever the home page is loaded, we receive this error:

    Warning: preg_match(): Compilation failed: range out of order in character class at offset 60 in /home/domain_name/public_html/wp-includes/classes.php on line 1542

    Warning: preg_match(): Compilation failed: range out of order in character class at offset 60 in /home/domain_name/public_html/wp-includes/classes.php on line 1543

    I have examined these lines in the code, but my knowledge of php is not sufficient to be able to debug these. I see that it has something to do with regular expressions and matching the permalinks. If I knew in what order the functions were called, perhaps that might help?

    Thanks so much for any assistance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Just the general troubleshooting ,but were there any plugins enabled? Where you upgrading versions when moving? IF not, which version?

    Cypher

    (@cypher)

    The following site will explain the syntax:
    https://us3.php.net/preg_match

    It looks like that portion of classes.php is dealing with rewrite rules. So you have Permalinks enabled? Can you make a copy of .htaccess, delete it, and have WP re-generate the file and see if things get any better.

    Regards

    Thread Starter petesatrain

    (@petesatrain)

    My apologies for not including this initially. There were no plugins enabled. I was not upgrading versions, simply moving version 2[1].0.2 to another server (I’m not sure of the host’s name). I examined the database and all seems to be fine. Here is the link for the site if you would like to take a look at it.

    https://www.inter-netties.com/

    I receive this error in IE 6.0 and Firefox 1.5.0.1

    Thank you so much for your assistance. Please let me know if you need further clarification.

    Cypher

    (@cypher)

    OK..try this..upload the file classes.php from the original WP archive in ASCII mode to the new host and see if you still get the error.

    Regards

    Thread Starter petesatrain

    (@petesatrain)

    Cypher,

    Thanks so much for your help. I did as you suggested and still receive the errors. However, I uncovered some plugins that she had failed to de-activate before she backed up the site. I will need to troubleshoot this before I can better pin down the cause of the error.

    May I please still leave this unresolved while I do this?

    Thank you,
    Andrea

    Cypher

    (@cypher)

    Hmm, I was googling around for that particular error message and some people seem to indicate that they had that occur when they transfered files in BINARY mode or they did “dos2unix” on files that inserted characters that were invalid.

    Absoulutely, leave the message unresolved until we find a solution for you.

    I will search further.

    Regards

    Thread Starter petesatrain

    (@petesatrain)

    Thanks so much for your help on this, Cypher. It turns out my friend had some unusual permalink structure set up that was messing up the php functions. Sometimes it’s awfully difficult to come behind somebody and try to figure out what it is they’ve done, especially if their code isn’t commented that well (at all).

    Once I was able to log in to her admin panel to change the permalink structure and deactivate the plugins, everything seemed fine.

    Thanks again,
    Andrea

    Cypher

    (@cypher)

    Glad to heard you fixed the problem Andrea.

    Good luck.

    Regards

    Thread Starter petesatrain

    (@petesatrain)

    Woohoo!! Thanks so much… to Cypher and everyone who helped me resolve this issue. I don’t know that much about WP yet, but I will definitely, definitely contribute what little knowledge I have here because I can see it really matters. To me, this is what Open Source is all about. Sure, some may take advantage of it. But, that’s their bad karma. There are many who, like me, live by the credo, “you get what you give”. Thank you, thank you, thank you to those folks!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Warning: preg_match(): Compilation failed: range out of order in character class’ is closed to new replies.