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?
Thanks
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!
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.
@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.
@vgevge are you sure the error happens at \wp-includes\cache.php?
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.
And disabling the Rating-Widget solves this?
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.