• I got this message after updating a plugin in the dashboard:

    Warning: preg_match() expects parameter 2 to be string, array given in /home/reagern/public_html/wp-includes/class.wp-scripts.php on line 117

    This file I have not touch, and I don´t want to either.
    I´ve installed WordPress through Fantastico Deluxe, and I´ve experienced that when you touch the main installation files outside of Fantastico, like the WP Includes files, it messes things up.

    So why can´t there be a way to reset these standard files, into the right code again? If WordPress knows something is wrong, then why not fix it? Why can´t it match this file to the default file, and update it´s code to something that works.

    Ideally I would like a button next to this errormessage, that says “Fix Problem Automatically”, and after a click, everything worked again. Also, this is fully possible.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    That means the plugin you just updated has a problem. Disable it.

    Among other things, I’d suggest using WordPress’s built in upgrade tool to move to WP 3.0.5 (yes that ‘breaks’ Fantastico, but frankly, they’re missing TWO security fixes and I’d get off their wagon anyway).

    Thread Starter Ramiuz

    (@ramiuz)

    Thats another problem Ipstenu.
    The built in upgrade tool does not work when WordPress is installed with Fantastico.

    I´ve tried several times and given that up for good now.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    The built in upgrade tool does not work when WordPress is installed with Fantastico.

    *blink* Since … when? Well, I suppose if it sets the permissions weirdly then yeah, it could happen, but gad, that’s annoying.

    Upgrade manually. It’s really just copying files up.

    (by the way, the reason you cannot auto-correct the code is because it needs a REAL person to review and sort out what the error is and how best to fix it.)

    Thread Starter Ramiuz

    (@ramiuz)

    Since always. I´ve never been able to go outside of Fantastico.
    I started with trying to manually install WordPress, but that never worked one hundred percent.

    If I try to upload these base files manually, as you suggest, the installation somehow messes up. And my site is no longer vieweable.

    I cant explain the reason or anything, but my experience with this alone is enough to stay away from doing this manually. I do everything in Fantastico now, and I think that works fine, except for being slow.

    So if you could do anything, is make Fantastico up to date faster. Lazy bums they are.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Then I think Fantastico screwed your install up such that it doesn’t let you get off it, and god, I’m sorry. You’re on your own, though.

    The manual install really isn’t that hard once you’ve done it (create an SQL DB, copy up files, edit settings, done). But Fantastico clearly has problems. Besides being slow, they’re leaving you open for vulnerabilities, which I really hate. Good luck!

    Thread Starter Ramiuz

    (@ramiuz)

    I guess I´m curious to exactly what Fantastico does.
    How come it manages to indirectly take away my manual control of the website?

    In that I mean, Fantastico does not tell me that I can´t edit the local files myself, and that it must do it for me. But that is exactly what happens when I touch the installation outside of Fantastico. Server errors, 404s, messages of broken installations, that urges me to reinstall wordpress all over again…

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

The topic ‘Automatically correct trouble in code’ is closed to new replies.