Support Forums

Old 12-17-2007, 04:59 AM   #1
Senior Member
 
CHRD's Avatar
 
Join Date: Nov 2006
Posts: 190
Rep Power: 15
CHRD is on a distinguished road
Default usermodifylisting errors

Hi, Im doing a new build and Im getting there errors on usermodifylisting.php
Notice: Query failed: 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 cTitleCharacters,cShortDescCharacters,cCharacters, cDisURL FROM class_cartproducts WHERE id= in /home/xxx/public_html/mysite/includes/classes/database/mysql.php on line 135

also in modify images I get
Notice: Query failed: 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 images,numimages FROM class_cartproducts WHERE id= in /home/xxx/public_html/mysite/includes/classes/database/mysql.php on line 135

Notice: Query failed: 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 id FROM class_prodimages WHERE pid= in /home/xxx/public_html/mysite/includes/classes/database/mysql.php on line 135

and
I am sorry, but you have either not uploaded any images or the listing package you have selected does not allow images.

Im only seeing this error when I goto modify a listing thats "Not Active", when the listing is active I dont see the errors
__________________
Costa del Sol
Spain
v3.1.10 Dev
V4.09 Dev sweeeet
�Powerful you have become, the dark side I sense in you.�

Last edited by CHRD; 12-17-2007 at 05:32 AM.
CHRD is offline   Reply With Quote
Old 12-17-2007, 08:25 AM   #2
Coder
 
Join Date: Mar 2006
Posts: 4,574
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

Is this a fresh install with the default template or have you modified anything?
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 12-18-2007, 04:42 AM   #3
Senior Member
 
CHRD's Avatar
 
Join Date: Nov 2006
Posts: 190
Rep Power: 15
CHRD is on a distinguished road
Default

yes its a fresh install, the only this Iv done is cut the tag stripper out from functions.php
$allowed_tags = array("<br>", "<a>", "<b>","<p>","</p>","<strong>","</strong>","<em>","</em>","<blockquote>","</blockquote>","<ul>","</ul>","<ol>","</ol>","<li>","</li>");
$str = strip_tags($str, $allowed_tags);

Iv added listings ok but now Im getting
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
when I click submit from the listing information page

would working on extra fields as listings are being added cause these problems
__________________
Costa del Sol
Spain
v3.1.10 Dev
V4.09 Dev sweeeet
�Powerful you have become, the dark side I sense in you.�

Last edited by CHRD; 12-18-2007 at 07:24 AM.
CHRD is offline   Reply With Quote
Old 12-18-2007, 09:59 AM   #4
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45
Maffo is just really niceMaffo is just really nice
Default

I have had other customers who have had trouble with the tag stripper. Rather than strip it out you can change it to this.

$str = strip_tags($str, '<br> <a> <b> <p>');

In that kind of format it should work fine.
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 12-21-2007, 06:26 AM   #5
Senior Member
 
CHRD's Avatar
 
Join Date: Nov 2006
Posts: 190
Rep Power: 15
CHRD is on a distinguished road
Default

OK I have found the problem

I have 19 extra fields and the last 3 are multi line text boxes and I only get the errors when I add �$� sysbols in any of these boxes, I get a white page with this text:
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

and the info entered into the multi line text box gets dropped and other info below get dropped as well
__________________
Costa del Sol
Spain
v3.1.10 Dev
V4.09 Dev sweeeet
�Powerful you have become, the dark side I sense in you.�
CHRD is offline   Reply With Quote
Old 12-22-2007, 05:38 AM   #6
Senior Member
 
CHRD's Avatar
 
Join Date: Nov 2006
Posts: 190
Rep Power: 15
CHRD is on a distinguished road
Default

bump bump, Iv still got this problem
__________________
Costa del Sol
Spain
v3.1.10 Dev
V4.09 Dev sweeeet
�Powerful you have become, the dark side I sense in you.�
CHRD is offline   Reply With Quote
Old 01-07-2008, 06:41 AM   #7
Senior Member
 
CHRD's Avatar
 
Join Date: Nov 2006
Posts: 190
Rep Power: 15
CHRD is on a distinguished road
Default

Bump Bump Bump, sorry, Iv emailed support weeks ago with no reply, anybody?????
__________________
Costa del Sol
Spain
v3.1.10 Dev
V4.09 Dev sweeeet
�Powerful you have become, the dark side I sense in you.�
CHRD is offline   Reply With Quote
Old 01-11-2008, 10:23 AM   #8
Junior Member
 
Join Date: Feb 2007
Posts: 10
Rep Power: 11
dpete is on a distinguished road
Default What about "addslashes" to usermodifylisting.php?

By adding "addslashes" the external.php file, users can now include apostrophes the first time they place an ad. The problem comes when they try to modify the ad. If the modification includes apostrophes, the description field disappears altogether.


Is there something that can be edited here in usermodifylisting.php?

//trim out html
$shortDescription = safeStripSlashes($rs['shortDescription']);
$shortDescription = str_replace('<br />', "\n", $shortDescription);
$shortDescription = htmlspecialchars($shortDescription);

$description = safeStripSlashes($rs['description']);
$description = str_replace('<br />', "\n", $description);
$description = htmlspecialchars($description));
dpete is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors on Install barrysmith v3.1 Questions & Support 16 10-10-2007 01:10 PM
upgrading to 3.1.5 - ERRORS ! dawyatt v3.1 Questions & Support 13 08-24-2006 07:57 AM
Errors - V3.1.4 SkGold v3.1 Questions & Support 4 06-25-2006 03:08 AM
SQL errors after Paymate transaction Bucketman v3.0 Questions & Support 5 06-02-2006 09:35 AM
Upgrade to 3.1 - Errors! dawyatt v3.1 Questions & Support 1 05-11-2006 07:28 PM


All times are GMT -4. The time now is 12:45 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0