• Hi there

    First of all… FANTASTIC PLUGIN! Thank you!

    I have just updated my version of Ajax Load More and I now get a PHP Warning everytime results are loaded… I’ve tried to deactivate and re-activate this plugin and the one that is now raising the warning… which is:

    Warning: stripslashes() expects parameter 1 to be string, array given in …plugins/revision-control/revision-control.php on line 134

    Any help will be much appreciated.

    https://www.ads-software.com/plugins/ajax-load-more/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi diyafury,
    As the warning suggests the error is coming from another plugin.
    /revision-control/revision-control.php

    Any ideas?

    Thread Starter diyafury

    (@diyafury)

    Hi there

    The error only started happening when I updated the alm plugin (I needed the meta_compare bits), the older alm version worked fine with out errors, I think it was version 2.6.3 – I wonder if it is a similar issue as per this one: ALM is Throwing strtolower() Error at Beginning of Loop (2 posts)

    The piece of code from the plugin that is throwing the error (revision-control) since the alm update is this:

    if ( !empty($_REQUEST[‘post_type’]) )
    $post_type = stripslashes($_REQUEST[‘post_type’]);

    The warning pops up on every ajax request the alm code makes it seems.

    Both plugins are vital and are used on an existing site – I’m literally adding a few extras which required the alm plugin update.

    Do you have any recommendations on the best way to resolve this?

    Plugin Author Darren Cooney

    (@dcooney)

    I wonder if the $post_type var is ALM is conflicting with the $post_type var in Revision Control.

    As a temp fix you could add the following to your wp_config.php file.

    error_reporting(0);
    @ini_set(‘display_errors’, 0);
    Thread Starter diyafury

    (@diyafury)

    The exact syntax I had to use was:

    ini_set(‘display_errors’,’Off’);
    ini_set(‘error_reporting’, E_ALL );

    Nothing seems to actually be broken so switching off the display errors will certainly do for now.

    Cheers for that ??

    Plugin Author Darren Cooney

    (@dcooney)

    Was able to reproduce thie error message after installed Revision Control.

    Any chance you could reach out to them?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Warning Error upon Ajax Load’ is closed to new replies.