Contact menu item - Error in SQL Syntax

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
parameter
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Oct 25, 2011 7:35 am

Contact menu item - Error in SQL Syntax

Post by parameter » Tue Oct 25, 2011 7:44 am

After I upgraded my Joomla site to 1.5.24 version, I have database error in my Contact menu item which worked fine before that. I didn't make any changes in contacts for long time.

This is the error that I get when I open Contacts in my main menu:

Code: Select all

JDatabaseMySQL::query: 1064 - 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 SQL=SELECT section FROM jos_categories WHERE id=;
Call stack
#	Function	Location
1	JSite->render()	/home/xxxxxx/public_html/index.php:79
2	JDocumentHTML->render()	/home/xxxxxx/public_html/includes/application.php:168
3	JDocumentHTML->_loadTemplate()	/home/xxxxxx/public_html/libraries/joomla/document/html/html.php:246
4	require_once()	/home/xxxxxx/public_html/libraries/joomla/document/html/html.php:338
5	JATemplateHelper->display()	/home/xxxxxx/public_html/templates/xxxxxx/index.php:82
6	JATemplateHelper->_load()	/home/xxxxxx/public_html/templates/xxxxxx/libs/ja.template.helper.php:39
7	include()	/home/xxxxxx/public_html/templates/xxxxxx/libs/ja.template.helper.php:44
8	JATemplateHelper->loadBlock()	/home/xxxxxx/public_html/templates/xxxxxx/layouts/default.php:42
9	JATemplateHelper->_load()	/home/xxxxxx/public_html/templates/xxxxxx/libs/ja.template.helper.php:54
10	include()	/home/xxxxxx/public_html/templates/xxxxxx/libs/ja.template.helper.php:44
11	JATemplateHelper->getThemeForSection()	/home/xxxxxx/public_html/templates/xxxxxx/layouts/blocks/head.php:52
12	ObjectExtendable->__call()	 
13	call_user_func_array()	/home/xxxxxx/public_html/templates/xxxxxx/libs/ja.object.5.php:116
14	JATemplateHelper1->getThemeForSection()	 
15	JATemplateHelper1->getSectionId()	/home/xxxxxx/public_html/templates/xxxxxx/libs/ja.template.helper.php:504
16	JDatabaseMySQL->loadResult()	/home/xxxxxx/public_html/templates/xxxxxx/libs/ja.template.helper.php:468
17	JDatabaseMySQL->query()	/home/xxxxxx/public_html/libraries/joomla/database/database/mysql.php:355
18	JError->raiseError()	/home/xxxxxx/public_html/libraries/joomla/database/database/mysql.php:231
19	JError->raise()	/home/xxxxxx/public_html/libraries/joomla/error/error.php:171
20	JException->__construct()	/home/xxxxxx/public_html/libraries/joomla/error/error.php:136
I tried to create a new menu item, but this error remains. Any help?

parameter
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Oct 25, 2011 7:35 am

Re: Contact menu item - Error in SQL Syntax

Post by parameter » Tue Oct 25, 2011 8:14 am

It happens only when I set Contact category in menu link, but not with standard contact form.


Locked

Return to “General Questions/New to Joomla! 1.5”