Database error: querying non-existent table
-
Hi I’m loading the Custom Related Posts functionality manually by including the following php in my theme template if ( function_exists( 'echo_crp' ) ) { echo_crp(); } In general, everything seems to be working fine at the front end (great plugin by the way) but I’m getting the following error messages in my php error log whenever the relevant theme template loads for a small minority of posts: WordPress database error Table 'mywpdatabasename.the' doesn't exist for query SHOW FULL COLUMNS FROM <code>the</code> made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/mytheme/single.php'), get_template_part, locate_template, load_template, require('/themes/mytheme/template-parts/the-part-containing-the-crp-call.php'), echo_crp, get_crp, get_crp_posts, CRP_Query->__construct, WP_Query->__construct, WP_Query->query, WP_Query->get_posts For the posts that trigger this error I get no CRP output – for example for this post https://londonkoreanlinks.net/book_item/north-korean-graphic-novels-seduction-of-the-innocent/ But for the majority of posts there is absolutely no problem (and no error message generated). For example, the CRP output loads fine for this post https://londonkoreanlinks.net/book_item/critical-readings-on-christianity-in-korea-4-vol-set/ (You’ll see the CRP output at the very bottom of the page) I see that this or a similar problem seems to have occurred for other users (eg https://wordpress.org/support/topic/related-posts-not-displaying-sometimes-since-update/#post-14007839) but I’m struggling to understand why I’m only getting the problem for *some* posts but not the majority. Any ideas? For the specific problematic post mentioned above, the problem goes away with the “Limit content to be compared” parameter set at 98 or below, but comes back again with 99, 100 or 0. [When I uploaded this message, the limit was set at 99] Finding the posts impacted by this problem is like looking for a needle in a haystack so I’m not sure whether the 98/99 cut-off is typical. But my error log is dominated by errors of this nature. (I'm on v3.0.7 and WP5.8) Many thanksThe page I need help with: [log in to see the link]
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘Database error: querying non-existent table’ is closed to new replies.