Title: PHP Error showing in WordPress Debug
Last modified: May 12, 2024

---

# PHP Error showing in WordPress Debug

 *  Resolved [funkygorilla](https://wordpress.org/support/users/funkygorilla/)
 * (@funkygorilla)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/)
 * Hi, I am seeing the following message on a site that seems to have wordpress 
   debugging on: –
   _**Warning**: array\_key\_exists(): The first argument should
   be either a string or an integer in **/xxx/xxx/www/phaseelectricalqld.com.au/
   public\_html/wp-content/plugins/visual-portfolio/classes/class-security.php**
   on line **227**_I have just updated to version 3.3.4 and flushed the cache, but
   still seeing that message. Any ideas (apart from switching debug off)!
 * Cheers
    -  This topic was modified 2 years ago by [funkygorilla](https://wordpress.org/support/users/funkygorilla/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-showing-in-wordpress-debug%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [mauskino](https://wordpress.org/support/users/mauskino/)
 * (@mauskino)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17748900)
 * Hi! I have the same issue since a few days. Does anyone know how to fix this?
 * My page: [https://virtualseasia.com/](https://virtualseasia.com/)
 *  [LoreGI13](https://wordpress.org/support/users/loregi13/)
 * (@loregi13)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17749571)
 * Hi , some issue appears in my website and I have no idea how to fix.
   Hope someone
   will help.
 * Thanks
   Lorenza
 *  [Hudson Phillips](https://wordpress.org/support/users/harbormark/)
 * (@harbormark)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17751135)
 * Same issue here. I thought it was a plugin conflict, but just installed the plugin
   on a site with no other plugins, and the error displays regardless of what theme
   I select.
 *  [LoreGI13](https://wordpress.org/support/users/loregi13/)
 * (@loregi13)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17751672)
 * yes [@harbormark](https://wordpress.org/support/users/harbormark/) , you’re right,
   there is an error they should fix in the new version of the plug-in: it appeared
   since the last update, 2 days ago.
   Is there a way to report the issue to the 
   developers?
 *  [Hudson Phillips](https://wordpress.org/support/users/harbormark/)
 * (@harbormark)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17751686)
 * [@loregi13](https://wordpress.org/support/users/loregi13/) I have no idea how
   to get them to know other than here. I’m using the free plugin so no priority
   for me. I noticed the error a few days ago and hoped there would have been a 
   fix available already.
 * The error is visible on multiple sites and I’m hoping it’s patched soon so I 
   don’t have to find an alternative plugin 🙁
 *  Thread Starter [funkygorilla](https://wordpress.org/support/users/funkygorilla/)
 * (@funkygorilla)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17752598)
 * I can confirm that if you switch off error reporting on the front end of the 
   site in wp-config.php, you don’t see this error. Having said that, just because
   we can’t see it doesn’t mean it’s gone away! (ref [https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/))
 *     ```wp-block-code
       // Disable display of errors and warnings
       define( 'WP_DEBUG_DISPLAY', false );
       @ini_set( 'display_errors', 0 );
       ```
   
 *  [BUROJAN](https://wordpress.org/support/users/burojan/)
 * (@burojan)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17753032)
 * I am having the same error message. How can I downgrade to 3.3.3?
 * Any suggestions?
 * Kind regards, Jan
 *  [mauskino](https://wordpress.org/support/users/mauskino/)
 * (@mauskino)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17753040)
 * I can confirm that this workaround works (although it doesn’t solve the initial
   problem). Thank you!
 * >  if you switch off error reporting on the front end of the site in wp-config.
   > php, you don’t see this error. Having said that, just because we can’t see 
   > it doesn’t mean it’s gone away! (ref [https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/))
 *  [LoreGI13](https://wordpress.org/support/users/loregi13/)
 * (@loregi13)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17753060)
 * Hi [@burojan](https://wordpress.org/support/users/burojan/) 
   I’ve just tried 
   downgrading with this plug in: **WP Rollback** (Version 2.0.7 | By WP Rollback)
   I noticed the same issue downgrading to the previous version (3.3.2) of Visual
   Portfolio, don’t understand why… anyhow, I solved downgrading to Visual Portfolio**
   3.3.1.**at the moment, I can suggest using this WP Rollback, going to Visual 
   Portfolio 3.3.1. and wait that the developers fix the issueBye
    -  This reply was modified 2 years ago by [LoreGI13](https://wordpress.org/support/users/loregi13/).
 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17753375)
 * ​Hi guys,
 * Thank you for reporting to me. We are working on the order direction function
   to ensure it works properly in all cases. This warning will be fixed in the next
   update, tomorrow.
 * p.s. to prevent displaying warnings on **production**, please avoid using the
   WP_DEBUG or place all logs in the file. Learn more here → [https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
 * p.s.s. to download previous plugin versions, go to this page → [https://wordpress.org/plugins/visual-portfolio/advanced/](https://wordpress.org/plugins/visual-portfolio/advanced/)
   and find a section named **Advanced Options**
 * Regards,
   Nikita.
 *  [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17754171)
 * Helllo,
 * I got the same but, problem is, together with those errors I got some of those
   that I don’t well understand but I see they mention /portfolio/ and wondering
   whether they relate:
 *     ```wp-block-code
       [12-May-2024 19:40:35 UTC] WordPress database error Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb3_general_ci,COERCIBLE) for operation 'like' for query SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID
       					 FROM wp_posts 
       					 WHERE 1=1  AND (((wp_posts.post_title LIKE '%[tpsuc.com]cpu%') OR (wp_posts.post_excerpt LIKE '%[tpsuc.com]cpu%') OR (wp_posts.post_content LIKE '%[tpsuc.com]cpu%')) AND ((wp_posts.post_title LIKE '%slot🔥offline%') OR (wp_posts.post_excerpt LIKE '%slot🔥offline%') OR (wp_posts.post_content LIKE '%slot🔥offline%')) AND ((wp_posts.post_title LIKE '%slot%') OR (wp_posts.post_excerpt LIKE '%slot%') OR (wp_posts.post_content LIKE '%slot%')) AND ((wp_posts.post_title LIKE '%games🔥945%') OR (wp_posts.post_excerpt LIKE '%games🔥945%') OR (wp_posts.post_content LIKE '%games🔥945%')))  AND (wp_posts.post_password = '')  AND ((wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish')) OR (wp_posts.post_type = 'page' AND (wp_posts.post_status = 'publish')) OR (wp_posts.post_type = 'attachment' AND (wp_posts.post_status = 'publish')) OR (wp_posts.post_type = 'portfolio' AND (wp_posts.post_status = 'publish')))
   
       					 ORDER BY (CASE WHEN wp_posts.post_title LIKE '%[tpsuc.com]cpu slot🔥offline slot games🔥945%' THEN 1 WHEN wp_posts.post_title LIKE '%[tpsuc.com]cpu%' AND wp_posts.post_title LIKE '%slot🔥offline%' AND wp_posts.post_title LIKE '%slot%' AND wp_posts.post_title LIKE '%games🔥945%' THEN 2 WHEN wp_posts.post_title LIKE '%[tpsuc.com]cpu%' OR wp_posts.post_title LIKE '%slot🔥offline%' OR wp_posts.post_title LIKE '%slot%' OR wp_posts.post_title LIKE '%games🔥945%' THEN 3 WHEN wp_posts.post_excerpt LIKE '%[tpsuc.com]cpu slot🔥offline slot games🔥945%' THEN 4 WHEN wp_posts.post_content LIKE '%[tpsuc.com]cpu slot🔥offline slot games🔥945%' THEN 5 ELSE 6 END), wp_posts.post_date DESC
       					 LIMIT 0, 20 made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_WpdbNew->default_query
       [12-May-2024 19:40:35 UTC] WordPress database error Illegal mix of collations (utf8mb4_bin,IMPLICIT) and (utf8mb3_general_ci,COERCIBLE) for operation 'like' for query SELECT * FROM wp_rank_math_redirections WHERE status = 'active' AND ( sources like '%a:2:{s:7:\"pattern\";s:51:\"?s=[tpsuc.com]cpu slot🔥offline slot games🔥945\";s:10:\"comparison\";s:5:\"exact\";}%' or sources like '%?s=[tpsuc%' or sources like '%com]cpu slot🔥offline slot games🔥945%' ) ORDER BY updated DESC made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array('wp'), WP_Hook->do_action, WP_Hook->apply_filters, RankMath\Redirections\Redirections->do_redirection, RankMath\Redirections\Redirector->__construct, RankMath\Redirections\Redirector->flow, RankMath\Redirections\Redirector->everything, RankMath\Redirections\DB::match_redirections, RankMath\Admin\Database\Query_Builder->get, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_WpdbNew->default_query
       ```
   
 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17757236)
 * Hi guys,
 * Please check the v3.3.5; this bug should be fixed. The issue was visible in PHP
   7 while we were working with PHP 8 and just missed it.
 * Regards,
   Nikita.
 *  [LoreGI13](https://wordpress.org/support/users/loregi13/)
 * (@loregi13)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17757269)
 * Hi [@nko](https://wordpress.org/support/users/nko/), I confirm: fixed. Many thanks
   for helping on this!
 * Regs
 * Lorenza
 *  [Hudson Phillips](https://wordpress.org/support/users/harbormark/)
 * (@harbormark)
 * [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17757278)
 * Excellent [@nko](https://wordpress.org/support/users/nko/). Thanks much; will
   run updates.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘PHP Error showing in WordPress Debug’ is closed to new replies.

 * ![](https://ps.w.org/visual-portfolio/assets/icon-256x256.png?rev=2389881)
 * [Visual Portfolio, Photo Gallery & Post Grid](https://wordpress.org/plugins/visual-portfolio/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-portfolio/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-portfolio/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-portfolio/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-portfolio/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-portfolio/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 14 replies
 * 7 participants
 * Last reply from: [Hudson Phillips](https://wordpress.org/support/users/harbormark/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/php-error-showing-in-wordpress-debug/#post-17757278)
 * Status: resolved