Support » Plugins and Hacks » Rating-Widget: Star Review System » [Resolved] Warning: array_key_exists() [function.array-key-exists]

[Resolved] Warning: array_key_exists() [function.array-key-exists]

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


    Hi @passiman,

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

    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?


    Plugin Author vovafeldman


    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.

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




    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 vovafeldman


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

    I am having the same error exactly.

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

    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 vovafeldman


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

    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 vovafeldman


    And disabling the Rating-Widget solves this?


    Plugin Author vovafeldman


    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:

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

    Let me know if it resolved the issue.

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