|
|
#1 |
|
Senior Member
Join Date: Nov 2006
Posts: 190
Rep Power: 15 ![]() |
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. |
|
|
|
|
|
#2 |
|
Coder
Join Date: Mar 2006
Posts: 4,574
Rep Power: 111 ![]() ![]() |
Is this a fresh install with the default template or have you modified anything?
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Nov 2006
Posts: 190
Rep Power: 15 ![]() |
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. |
|
|
|
|
|
#4 |
|
The Master
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45 ![]() ![]() |
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. |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Nov 2006
Posts: 190
Rep Power: 15 ![]() |
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.� |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Nov 2006
Posts: 190
Rep Power: 15 ![]() |
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.� |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Nov 2006
Posts: 190
Rep Power: 15 ![]() |
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.� |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Feb 2007
Posts: 10
Rep Power: 11 ![]() |
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)); |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |