• Need help with header error:
    Warning: preg_match() [function.preg-match]: Unknown modifier ‘F’ in /hermes/web04/b2163/blu.krhalmekangas/rareiron.com-redirect/wp-includes/classes.php on line 210

    Originally entire site was down and ONLY this error line appeared 10 times then a line at the head about the header file. Tried to reinstall 2.9.1 which did not fix. Somehow most of the site is now back up, but the header error line still appearing many times. Please see issue at https://www.rareiron.com Any help on how to fix is GREATLY appreciated!

Viewing 15 replies - 1 through 15 (of 20 total)
  • Well, I can’t look at your MySQL database or server files, but what I can say is that /hermes/web04/b2163/blu.krhalmekangas/rareiron.com-redirect/ is your so-called root directory (the main directory your website resides in) and wp-includes/classes.php is the file (called upon wordpress initialisation at each page call) that receives a faulty parameter from somewhere.

    My 2 cents: check the “wp-config.php” to see if there are brackets or something missing somewhere. Also, take a short look into your “.htaccess” to see it there’s nothing in there messing up requests.

    Anything else – you’ll need a wordpress doctor from the dev-crew or something. (Or someone that is willing and able to push your server into a clean install).

    Hope at least this helps you somehow. :/

    Just dived into the classes.php sourcecode and I can confirm: this definitly has to do with a request wordpress is getting from the server when you try to load a page. Be sure to check that “.htaccess”…

    If it’s not in there, a last thing I can think of is that the “base server directory” aka “absolute root” that wordpress stores into MySQL has been messed up somehow during your breakdown. (eg: a local disk has been swapped and drive letters on the server changed). That would mess up file locations and/or rewrites…

    Since your wp-admin section still loads, try to login and check the permalinks and other paths that are configured within the admin settings area.

    Thread Starter khalmekangas

    (@khalmekangas)

    An update to this post — now the entire site is gone again and ONLY lines of this error message appear:
    Warning: preg_match() [function.preg-match]: Unknown modifier ‘F’ in /hermes/web04/b2163/blu.krhalmekangas/rareiron.com-redirect/wp-includes/classes.php on line 211

    here is the last line:
    Warning: Cannot modify header information – headers already sent by (output started at /hermes/web04/b2163/blu.krhalmekangas/rareiron.com-redirect/wp-includes/classes.php:210) in /hermes/web04/b2163/blu.krhalmekangas/rareiron.com-redirect/wp-includes/pluggable.php on line 868
    ————————-
    My host said this is definitely a WordPress issue, so looking for some answers / a solution ASAP for my client running a business off this site.

    thanks in advance! -KH

    You did read my comments, didn’t you? The error you are “updating your post” about is still the same as before. Nothing changed the last 15 minutes… stop talking and start digging.

    If you need a direction, ask yourself: “where in the world does the server get that F from… since that’s the thing that’s messing up wordpress”.

    Personally, I would bet 2 cents and a dime it’s the .htaccess or the wp-config.php since those are the first and most logical places where a webserver script could get the “F” in the user-request from.

    Erm, you noticed that that “about” page works without an error, didn’t you? Hmmm, maybe check the “path configurations” in your admin settings again…

    Those are classic indications of plugin problems. Try renaming your plugin folder with FTP to disable all plugins.

    Those errors are classic indications of plugin problems. Try renaming your plugin folder with FTP to disable all plugins.

    Thread Starter khalmekangas

    (@khalmekangas)

    Ok, I will look into it all. Sorry I didn’t see your post before I logged the 2nd note, but your direction is very helpful. It is a bit beyond my skill set but will have a WP expert see if they can help. I don’t know how the .htaccess or wp-config.php files change if no one has been in working on the code, but will try to dig. Thank you!!

    FOUND IT!!!

    Your links are messed up… looking at a tag-link, I saw it points to this:

    https://rareiron.com/divstyle=_height:200px;width:200px;background-color:#FFFFFF;font-family:Arial;border:1pxsolid#FFFFFF;text-align:center;/camaro

    It’s the first F from the color code messing it up.

    Sollution: Make sure you use a fresh install of wordpress and make sure your theme files are still ok!

    Where does it come from -> Sometimes files get corrupted when a site goes down (eg electricity failure, hd error etc.) which can produce these errors.

    Btw.: all your links show this divstyle=_height:200px;width:200px;background-color:#FFFFFF;font-family:Arial;border:1pxsolid#FFFFFF;text-align:center; which simply does not belong there. So it might well be that you’ll have to manually check and correct the database too. Good thing is: it’s always the same snippet (read: the same piece of code) that has to be searched and removed.

    You should be fine in half an hour if you work quick.

    500 server error duped my post…

    Thread Starter khalmekangas

    (@khalmekangas)

    Ok, I will look into it all. Sorry I didn’t see your post before I logged the 2nd note, but your direction is very helpful. It is a bit beyond my skill set but will have a WP expert see if they can help. I don’t know how the .htaccess or wp-config.php files change if no one has been in working on the code, but will try to dig. Thank you!!

    Plugin problems? Not really… unless you have a plugin that “hacks” your SEFs… which I don’t really see used in the urls.

    Search the fourms and the docs for headers already sent and preg_match errors.

    Erm, renaming the plugin dir is NOT the best idea. It will NOT solve the prob you’re having! But I’m not going to dive into a flamewar with songdogtech now… simply since that won’t help you solve your problem. Neither will his “search the forums” comment really help you. So let’s just get back to business…

    Fact 1: page “about” works (pages do not use “permalink_structure”)
    Fact 2: tags, cats and posts blow up (these use “permalink_structure”)

    So please check the “permalink_structure” in the admin panel… and double check it in the MySQL database in the wp_options table. Remove the “css alike” code I allready identified above.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Need help with header error’ is closed to new replies.