Site logo

[Resolved] PHP Warnings and database error

Home Forums Support [Resolved] PHP Warnings and database error

Home Forums Support PHP Warnings and database error

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2597025
    THIAGO

    Hi there,

    I’m trying to figure out why are these errors showing up in my logs:

    [04-Apr-2023 18:24:42 UTC] WordPress database error Got error 'nothing to repeat at offset 2' from regexp for query 
    					SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.ID
    					FROM wp_posts 
    					WHERE 1=1  AND wp_posts.ID NOT IN (18029,9164) AND (  ((wp_posts.post_title REGEXP '\\b🖱|🖱\\b') OR (wp_posts.post_content REGEXP '\\b🖱|🖱\\b'))) AND wp_posts.post_type IN ('post', 'page') AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'inherit'))
    					
    					ORDER BY wp_posts.post_title LIKE '%🖱%' DESC, wp_posts.post_date DESC
    					LIMIT 0, 6
    				 made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
    [04-Apr-2023 20:01:46 UTC] PHP Warning:  Trying to access array offset on value of type bool in /home/nialdzc/public_html/wp-content/plugins/gp-premium/elements/class-hooks.php(215) : eval()'d code on line 7
    [04-Apr-2023 20:07:03 UTC] PHP Warning:  Trying to access array offset on value of type bool in /home/nialdzc/public_html/wp-content/plugins/gp-premium/elements/class-hooks.php(215) : eval()'d code on line 7
    

    The first one always occur when the user search for something with emojis, so it might be related to my search plugin Ivory Search. No idea about the other two though.

    #2597747
    David
    Staff
    Customer Support

    Hi there,

    the first error won’t be the theme as its not a query we would run.

    The other two are related to the elements module. Do you have any Hook Elements on the site ?

    #2599430
    THIAGO

    I found the issue, I was echoing non-existent featured images in my element code. Thanks!

    #2599511
    David
    Staff
    Customer Support

    Glad to hear you found the issue !

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.