WordPress.org

Ready to get started?Download WordPress

Forums

Error in wpincludes classes.php (11 posts)

  1. moazam
    Member
    Posted 6 years ago #

    Hi,
    After upgrading WP to 2.3.1 i am getting this strange error.

    [29-Nov-2007 22:44:32] PHP Warning: preg_match() [function.preg-match]: Unknown modifier '.' in /home/site/public_html/wp-includes/classes.php on line 99

    [29-Nov-2007 22:44:32] PHP Warning: preg_match() [function.preg-match]: Unknown modifier '.' in /home/site/public_html/wp-includes/classes.php on line 100

    I have disabled all plugins but still getting this error in error_log file

    This error generates when some one view post file.. I have restored theme to original but nothing happened :(

    Please help!
    Moazam

  2. Kafkaesqui

    Posted 6 years ago #

    "After upgrading WP to 2.3.1 i am getting this strange error."

    Have you tried removing wp-includes/classes.php and re-uploading the copy from the installation files? Often an error generated by one of the core files after an upgrade means the file did not get updated properly.

  3. moazam
    Member
    Posted 6 years ago #

    Yes I did, that too..

  4. moazam
    Member
    Posted 6 years ago #

    reinstalled wp, disabled plugins, restored to original theme but still getting same problem

  5. Kafkaesqui

    Posted 6 years ago #

    Then a look at the underlying code here may help. At those lines in classes.php preg_match() is part of the internal rewrites for permalinks. I'm not all that adept at working with WordPress' rewriting scheme, but:

    What is the permalink structure you are using on the blog? If you reset the structure to default (temporarily), does the error remain?

  6. moazam
    Member
    Posted 6 years ago #

    I am using custom option and here is it..
    /%category%/%post_id%/%postname%.html

    everything was working smooth.. before update..

  7. moazam
    Member
    Posted 6 years ago #

    I deleted permalinks and changed to default it works.. so it means i can not use the custom permalinks? Please notice this bug

  8. moshu
    Member
    Posted 6 years ago #

    This is NOT a bug. I applied exactly the same permalink structure as you posted above - and it works. It must be your server or something else interfering with it.

  9. moazam
    Member
    Posted 6 years ago #

    moshu.. how is it possible all default are working fine but not the custom one?

  10. moshu
    Member
    Posted 6 years ago #

    I don't know. On some servers including the %category% just doesn't work...
    Using_Permalinks

  11. Kafkaesqui

    Posted 6 years ago #

    If it *was* working but after your update to 2.3.1 it no longer is, you can certainly file a bug report to notify the developers:

    http://trac.wordpress.org/

    Be as detailed as possible in reporting it. You might also reference this thread.

Topic Closed

This topic has been closed to new replies.

About this Topic