• Resolved juanpgarzon

    (@juanpgarzon)


    Hi! In my error log, I get the following error:

    [26-Jun-2024 05:51:10 UTC] WordPress database error Table ‘abc.wp_posts’ doesn’t exist for query SELECT CONCAT(post_mime_type, ‘O’, comment_count) AS chksum, post_title FROM wp_posts WHERE post_type = ‘GOTMLS_quarantine’ AND post_status = ‘pending’ made by do_action(‘wp_ajax_GOTMLS_scan’), WP_Hook->do_action, WP_Hook->apply_filters, GOTMLS_ajax_scan, GOTMLS_scandir, GOTMLS_check_file, GOTMLS_scanfile, GOTMLS_load_contents

    But my table is abc.cpe_posts, not abc.wp_posts.

    How can I fix this? Does it affect the functionality of my plugin in any way?

    Thank you, and congratulations on such a wonderful plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eli

    (@scheeeli)

    Thanks for reporting this error. I will not prevent the plugin from finding treats, it will only bypass the custom whitelist (if you have whitelisted any file), but I will have this fixed in my next release.

    If you want to fix this in your current copy you would only need to change the table name wp_posts to $wpdb->posts in the query on line 116 of wp-content/plugins/gotmls/safe-load/trace.php

    Thread Starter juanpgarzon

    (@juanpgarzon)

    Works! Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘error Table ‘abc.wp_posts’ doesn’t exist for query’ is closed to new replies.