• Resolved funkygorilla

    (@funkygorilla)


    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 6 months, 2 weeks ago by funkygorilla.

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi! I have the same issue since a few days. Does anyone know how to fix this?

    My page: https://virtualseasia.com/

    Hi , some issue appears in my website and I have no idea how to fix.
    Hope someone will help.

    Thanks
    Lorenza

    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.

    yes @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?

    @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

    (@funkygorilla)

    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.www.ads-software.com/advanced-administration/debug/debug-wordpress/)

    // Disable display of errors and warnings
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    I am having the same error message. How can I downgrade to 3.3.3?

    Any suggestions?

    Kind regards, Jan

    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.www.ads-software.com/advanced-administration/debug/debug-wordpress/)

    Hi @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 issue
    Bye


    • This reply was modified 6 months, 1 week ago by LoreGI13.
    Plugin Author nK

    (@nko)

    ?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.www.ads-software.com/advanced-administration/debug/debug-wordpress/

    p.s.s. to download previous plugin versions, go to this page → https://www.ads-software.com/plugins/visual-portfolio/advanced/ and find a section named Advanced Options

    Regards,
    Nikita.

    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:

    [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

    (@nko)

    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.

    Hi @nko, I confirm: fixed. Many thanks for helping on this!

    Regs

    Lorenza

    Excellent @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.