SQL error?
-
I commented this on the video slider, so thanks to @richteam for letting me know it was the wrong place!
__________________Hi,
I’m getting a 500 error that seems to go back to these (2?) SQL queries from Rich-Web-Slider-Widget.php file. Here are the debug logs:
[08-Jul-2021 18:51:00 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= ''' at line 1 for query SELECT * FROM wp_ WHERE = '' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/thistheme/page.php'), get_template_part, locate_template, load_template, require('/themes/thistheme/templates/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, Rich_Web_Slider_ID, Rich_Web_Draw_Short_Slider, Rich_Web_Photo_Slider->widget [08-Jul-2021 18:51:00 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= ''' at line 1 for query SELECT * FROM wp__Loader WHERE = '' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/thistheme/page.php'), get_template_part, locate_template, load_template, require('/themes/thistheme/templates/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, Rich_Web_Slider_ID, Rich_Web_Draw_Short_Slider, Rich_Web_Photo_Slider->widget
Help? It seems $query_array[0] is blank, and maybe that’s why it 500’d?
On further inspection, did one of the updates delete all the photos from the one matching [Rich_Web_Slider id=”1″]?
In the admin menu, it says it has 4 images, but it doesn’t show any from the edit slider page.
If I change the slider ID to one that isn’t acting weird, it works. The problem seems to be that Slider ID #1 got screwed up and doesn’t remember it has 4 images.
Any idea how I can re-map it to the correct images? Thanks!
- The topic ‘SQL error?’ is closed to new replies.