Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Vova Feldman

    (@svovaf)

    Hi @passiman,

    The mentioned file, \wp-includes\cache.php isn’t part of the Rating-Widget plugin. Why do you think it’s related?

    Thread Starter passiman

    (@passiman)

    Hi Vova

    I am not very good with programming just use the plugins. Buddy what’s a solution I do use the wp cache plugin for caching, any alternatives you can suggest please?

    Thanks

    Plugin Author Vova Feldman

    (@svovaf)

    One simple way to hide the warning is by adding ‘@’ before the method. Just open the file on the specified line, and replace
    array_key_exists with @array_key_exists. That should do the job.

    Note:
    This is not a solution , you should contact the plugin developer to solve this.

    Best!

    Jaabie

    (@jamieacowangmailcom)

    I have a similar error and I do not have any cache plugins activate?

    I did have super-cache and ‘DB cache reloaded’ installed with my theme but i have them deactivated at present.

    Its odd because the error does not show on every page the widget is on, just some.

    Plugin Author Vova Feldman

    (@svovaf)

    @Jaabie, as mentioned before, \wp-includes\cache.php have nothing to do with the Rating-Widget plugin.

    vgevge

    (@vgevge)

    I am having the same error exactly.

    The only way to fix it is to disable the Rating-Widget Plugin.

    vgevge

    (@vgevge)

    The error just showed up today. I had never seen it before, no changes were made to my blog, and the error just suddenly showed up on my PHP error log again, and again, and again.

    Plugin Author Vova Feldman

    (@svovaf)

    @vgevge are you sure the error happens at \wp-includes\cache.php?

    vgevge

    (@vgevge)

    yes
    Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in \wp-includes\cache.php on line 618

    Disabling the cache doesn’t fix it.

    Plugin Author Vova Feldman

    (@svovaf)

    And disabling the Rating-Widget solves this?

    vgevge

    (@vgevge)

    yes

    Plugin Author Vova Feldman

    (@svovaf)

    That’s really strange. There’s only one usage of this function in our code, but we are just using it. Honestly, I don’t have a clue why this warning pops up, but you can easily work around it by disabling the warnings echo. Just append the following lines to the end of your wp-config.php file:

    error_reporting(E_ERROR);
    ini_set('error_reporting', E_ERROR);
    ini_set('display_errors',false);
    ini_set('html_errors', false);

    Let me know if it resolved the issue.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Warning: array_key_exists() [function.array-key-exists]’ is closed to new replies.