Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author eskapism

    (@eskapism)

    Try version 2.0.7 that I just released. Let me know if issue is fixed.

    We’re also getting a similar error like this.

    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/xnlnemeg/public_html/wp-includes/wp-db.php on line 1036

    We’re running version 2.0.10.

    Plugin Author eskapism

    (@eskapism)

    Haavard: when do you get this error? Any specific thing you’ve done before, like editing a post or installing a plugin?

    Same here:
    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /homepages/11/d14454/htdocs/website/wp-includes/wp-db.php on line 1040

    I love your plugin but it crashes now all my sites. Happens when I go into gerneral options and permalinks, also other suff like read write, when saving. its crashes dthe admin i am so unpappy now.

    I have newest version from today and latest version of wordpress.

    Plugin Author eskapism

    (@eskapism)

    royaltask: I need some more info, like when exactly does this happen? When you load the log, when you install a plugin, when you edit a post? The more details I get the eaiser I can fix it. Also: on what WP version, what PHP version and what MySQL-version?

    I get the same issue. So far i’ve only encountered in on the “Permalink Setting” page (options-permalink.php)
    I get 12 errors Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /MY_SITE_PATH/wp-includes/wp-db.php on line 1036

    Currently running WP 4.1.1, PHP 5.4.25 MySQL 5.5.42

    Plugin Author eskapism

    (@eskapism)

    thanks for the update. will investigate…

    Plugin Author eskapism

    (@eskapism)

    Unfortunately I can’t get this error myself. Anyone else getting this that can give more information?

    @royaltask and @stephmoreau: does this happen every time you visit options/permalink, just when you save, always, sometimes…? I need more info to figure this one out. Thanks.

    I get the errors everytime i go to the permalinks pages. And only the permalinks page, no other page is affected by the error messages.

    Warning: mb_check_encoding() expects parameter 1 to be string, array given in /home/xtargets/public_html/wp-includes/wp-db.php on line 2378
    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/xtargets/public_html/wp-includes/wp-db.php on line 1094

    I disbaled all my other plugins on the live site to see if any of them were affecting but I still get the errors.

    (upgraded to WP 4.2)

    Plugin Author eskapism

    (@eskapism)

    Ok, so if only Simple History is enabled then you get those errors?

    And if you also disable Simple History, then you get no errors at all?

    Sorry if asking perphaps obvious things, but I just wanna be sure that’s the case ??

    Excactly…
    It’s not problem, ask away.

    I did however manage to clear the errors when I change my theme. Seems that there must be something in my theme that is affecting the plugin :S.

    I found that these lines causing the issues (v2.0.28 SimpleHistory.php ln: 110-111)

    add_filter("gettext", array($this, 'filter_gettext'), 20, 3);
    add_filter("gettext_with_context", array($this, 'filter_gettext_with_context'), 20, 4);

    But i’m still not sure how these 2 lines and my theme are causing the php warnings, will continue to work on this.

    Plugin Author eskapism

    (@eskapism)

    Thanks for helping me debug this! Any chance I could get a copy of the theme causing the problem?

    Just in case this will help you debug, today I went into my SETTINGS>GENERAL and made a change. When I hit SAVE it gives me this error:

    Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in ~/html/wp-includes/wp-db.php on line 1094
    
    Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in ~/html/wp-includes/wp-db.php on line 1094
    
    Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in ~/html/wp-includes/wp-db.php on line 1094
    
    Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in ~/html/wp-includes/wp-db.php on line 1094
    
    Warning: Cannot modify header information - headers already sent by (output started at ~/html/wp-includes/wp-db.php:1094) in  ~/html/wp-includes/pluggable.php on line 1196

    (I removed my full path for security purposes)

    When I disable the Simple History plugin it lets me save the settings without any errors.

    -dro

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘mysql_real_escape_string’ is closed to new replies.