Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44306
Total Topics: 7676
Most Online Today: 365
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 272
Total: 272

Author Topic: Many errors...  (Read 12005 times)

0 Members and 0 Guests are viewing this topic.

Many errors...
« on: »
I have many of the following errors in my SMF's error logs:

Quote
http://xxx.xxx.xxx/index.php?action=classifieds;sa=editlisting2
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 'WHERE l.ID_TAG = t.ID_TAG AND l.ID_LISTING = '15302' AND t.tag = 'Korg'' at line 2
File: /xxxxxx/forum/httpdocs/Sources/classifieds2.php
Line: 7989
Quote
http://xxx.xxx.xxx/index.php?action=classifieds;sa=listingfiles;id=
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 4
File: /xxxxxx/forum/httpdocs/Sources/Load.php(2087) : eval()'d code
Line: 2360
Quote
8: Undefined index: new
File: /xxxxxx/forum/httpdocs/cache/lang_classifieds_greek_default.php (main sub template - eval?)
Line: 250
Quote
http://xxx.xxx.xxx/index.php?action=classifieds&sa=delpic2
8: Undefined index: id
File: /xxxxxx/forum/httpdocs/Sources/classifieds2.php
Line: 3528
Quote
http://xxx.xxx.xxx/index.php?action=classifieds;sa=listall;type=recent
8: Undefined variable: orderby2
File: /xxxxxx/forum/httpdocs/Sources/classifieds2.php
Line: 6241
Quote
http://xxx.xxx.xxx/index.php?action=classifieds;sa=listall;type=recent
8: Undefined variable: sortby2
File: /xxxxxx/forum/httpdocs/Sources/classifieds2.php
Line: 6241
Quote
http://xxx.xxx.xxx/index.php?action=classifieds;sa=memberlistings;id=14990
8: Undefined index: class_listall_type
File: /xxxxxx/forum/httpdocs/Themes/default/classifieds2.template.php (member_listings sub template - eval?)
Line: 7220

Re: Many errors...
« Reply #1 on: »
Fixed for 1.3.5 should be out in the next couple days
1.3.5
!Fixed possible keyword sql error on updating a listing.
!Fixed undefined error on sort change for member listings for SMF 2.0
!Added some other checking to prevent some undefined error
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Many errors...
« Reply #2 on: »
There is a problem with the apostrophes in a SQL query, it seems they are not escaped. I have a few of messages like these in my logs. All of them have an apostrophe in the query.

Quote
http://xxxxx/index.php?action=classifieds;sa=addlisting2
Σφάλμα βάσης δεδομένων: 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 'jimjj55's media' - s1207_photobucket_com_user_jimjj55_media_Fender%20New%20CS%20' at line 3
Αρχείο: /xxxxx/forum/httpdocs/Sources/classifieds2.php
Γραμμή: 9350

My SMF Classifieds version is 2.0.11
« Last Edit: April 22, 2013, 06:28:44 am by vkot »

Re: Many errors...
« Reply #3 on: »
Is that when you add the it in the listing description?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Many errors...
« Reply #4 on: »
The errors appeared from something that the users did. I am sorry, I could not reproduce it, I tried apostrophes in title, bodu text, image filename, and it works ok.
If I'll get more of there messages, I'll inform you.

Re: Many errors...
« Reply #5 on: »
Ok yeah I was trying the same thing will look into some more too.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Many errors...
« Reply #6 on: »
Think I figured it out. Issue was with image name of uploaded image. Have fixed for next major release.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
21558 Views
Last post December 04, 2007, 09:27:54 pm
by SMFHacks
2 Errors

Started by m.ehm Support

1 Replies
3316 Views
Last post April 06, 2014, 11:01:10 pm
by SMFHacks
Errors

Started by Madirex Bugs

0 Replies
7378 Views
Last post February 18, 2016, 10:46:16 am
by Madirex
5 Replies
4047 Views
Last post March 11, 2019, 08:31:47 am
by Ken.
3 Replies
2862 Views
Last post February 05, 2021, 08:52:51 am
by SMFHacks

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as ' in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal