Title: Error in SQL Syntax. Why?
Last modified: August 18, 2016

---

# Error in SQL Syntax. Why?

 *  [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/)
 * I got a big shock just now when I logged on one of my WP-based [websites](http://www.helengrace.co.uk).
   
   First of all, it gave me an internal server error message. Fair enough, I thought,
   that’s just the server playing up, it’ll be alright in a while. But then, about
   an hour later, (ie just now) I looked at it again to find the page loaded up 
   with error messages all over it. (highlight the black bit at the top and you’ll
   see).
 * The thing is, I haven’t actually made any kind of modifications to the site for
   several weeks, and it’s been working perfectly fine up until now, so I have no
   idea why it has suddenly gone wrong. Could I have been hacked? Or is this just
   a server glitch that is beyond my control? I’m using the latest version of WP(
   1.5)
 * If anyone could help me figure out what’s going on I’d be incredibly grateful.(
   Apologies if it is just a server thing and it’s working again by the time anyone
   reads this. I’ve pressed refresh loads of times, re-opened by browser etc and
   the errors are still there).

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Thread Starter [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178640)
 * Just to clarify, when I say I haven’t made any modifications to the site for 
   several weeks, I mean I haven’t done anything to the SQL db’s, changed any code,
   installed any plugins etc etc. Obviously I’ve been using WP to post things!! 
   🙂
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178642)
 * I’ve noticed that you blog also displays a Warning: call_user_func_array(): error
   several times. It may be related. Here’s a thread on that: [http://wordpress.org/support/topic.php?id=24341](http://wordpress.org/support/topic.php?id=24341)
 *  Thread Starter [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178655)
 * Thanks for that thread, unfortunately, it didn’t fix the issue. I uploaded the
   1.5 version of vars.php as the thread suggests and the error is still there. 
   The same error (warning: call_user_func, etc) is displayed all over my wp-admin
   page too, as well as:
 * Warning: Illegal offset type in /home/helengra/public_html/wp-admin/admin-functions.
   php on line 756
 * Warning: Invalid argument supplied for foreach() in /home/helengra/public_html/
   wp-admin/admin-functions.php on line 756
 * eeek!!!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178661)
 * Well, there’s three things I’d try now.
 * #1: Deactivate all plugins (see if that fixes it).
 * #2: Switch to the Classic Theme (see if that fixes it).
 * #3: Backup your themes, download WordPress again, delete every last WordPress
   file from your site (don’t touch the database), and upload WordPress again from
   your fresh download.
 *  Thread Starter [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178672)
 * 🙁 I can’t get to my plugins folder because the menu in wp-admin just has the
   word ‘array’ where the menu options should be, and then Logout.
    The link on 
   the menu buttons points to: [http://helengrace.co.uk/wp-admin/admin.php?page=](http://helengrace.co.uk/wp-admin/admin.php?page=)
 *  Thread Starter [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178674)
 * BTW, I’m not using themes.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178679)
 * Hm, you might want to make sure that your siteurl and home values are correct:
   [http://tamba2.org.uk/wordpress/site-url/](http://tamba2.org.uk/wordpress/site-url/)
 *  Thread Starter [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178691)
 * What are the home values supposed to be? Mine was 1, I changed it to 100 (as 
   indicated in that tutorial) and it didn’t fix the problem (I’ve changed it back).
 * The site url is [http://www.helengrace.co.uk](http://www.helengrace.co.uk) so
   I assume that’s correct 🙂
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178696)
 * It’s not the option_id (the number) that needs to be changed, it’s the option_value(
   the URL).
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178698)
 * Where are your WordPress files located? Are they in the root?
 *  Thread Starter [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178703)
 * Yep.
 *  Thread Starter [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * (@anonymousmousse)
 * [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178917)
 * My initial hunch seems to have been right, the problem WAS due to a server glitch,
   which my host have now fixed. Phew 🙂

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Error in SQL Syntax. Why?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 2 participants
 * Last reply from: [anonymousmousse](https://wordpress.org/support/users/anonymousmousse/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/error-in-sql-syntax-why/#post-178917)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
