Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12350
Latest: cl4ude327
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 40054
Total Topics: 7052
Most Online Today: 49
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 48
Total: 49

Author Topic: Errors in SMF's error log  (Read 5224 times)

0 Members and 1 Guest are viewing this topic.

Offline vkot

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Errors in SMF's error log
« on: September 26, 2008, 02:32:17 am »
1) It seems that you must escape the single quotes, etc. in the listing title:
Quote
Hacking attempt...

INSERT INTO personal_messages
(ID_MEMBER_FROM, deletedBySender, fromName, msgtime, subject, body)
VALUES (0, 1, SUBSTRING('Σύστημα Αγγελιών', 1, 255), 1222408958, SUBSTRING('Η καταχώρηση έληξε i'm looking for drams and base............', 1, 255), SUBSTRING('Η καταχώρησή σας "i'm looking for drams and base............" έχει λήξει και αφαιρέθηκε.', 1, 65534))
Αρχείο: /xxx/xxx/xxx/public_html/forum/Sources/Subs-Post.php
Γραμμή: 809
The above error was when a listing expires and gets deleted and a PM is sent. But as I saw in classifieds.php, every $row[title] whenever sendpm() function is called, need to be escaped.
While you're at it, check if there are more strings elsewhere that should be escaped.

2) Problem with index noprice:
Quote
8: Undefined index: noprice
Αρχείο: /xxx/xxx/xxx/public_html/forum/Themes/default/classifieds.template.php (listall sub template - eval?)
Γραμμή: 6335 (and line 6341)
Maybe my line numbers are different than yours (I did some template modifications), so here are the relevant lines:
Quote
               if ($modSettings['class_catlist_currentprice'] && $context['noprice'] == 0)
Quote
               if ($modSettings['class_catlist_numofbids'] && $context['noprice'] == 0)

3) Problem with index class_error_no_picture:
Quote
8: Undefined index: class_error_no_picture
Αρχείο: /xxx/xxx/xxx/public_html/forum/Sources/classifieds.php
Γραμμή: 3315
Quote
      fatal_error($txt['class_error_no_picture'],false);

4) Problem with index visual_verification:
Quote
8: Undefined index: visual_verification
Αρχείο: /xxx/xxx/xxx/public_html/forum/Themes/default/languages/Post.greek.php (addcomment sub template - eval?)
Γραμμή: 3148
Quote
   if ($context['visual_verification'] == true && $context['user']['is_guest'] == true)

5) Problem with index classifieds:
Quote
8: Undefined index: classifieds
Αρχείο: /xxx/xxx/xxx/public_html/forum/Themes/default/classifieds.template.php (search sub template - eval?)
Γραμμή: 4991
Quote
                  ', template_button_strip($context['classifieds']['buttons'], 'top'), '

6) Problem with index shipping:
Quote
8: Undefined index: shipping
Αρχείο: /xxx/xxx/xxx/public_html/forum/Sources/classifieds.php
Γραμμή: 791
Quote
   $shipping = (double) $_REQUEST['shipping'];

7) I couldn't find where exactly is the error here:
Quote
2: Invalid argument supplied for foreach()
Αρχείο: /xxx/xxx/xxx/public_html/forum/Themes/default/classifieds.template.php (search sub template - eval?)
Γραμμή: 667
Quote
         MainPageBlock($txt['class_main_recent'], 'recent');

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15032
    • View Profile
Re: Errors in SMF's error log
« Reply #1 on: September 26, 2008, 08:32:21 pm »
1. Fixed

2. Could not find in the latest version


3. Fixed added a language string

4. Not sure how that one occurs since it is always set.

5. Think I fixed.

6. Think I have this one fixed as well

7. Shouldn't happened unless there are no recent items
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
18 Replies
12019 Views
Last post February 13, 2007, 07:31:20 pm
by wrcline
8 Replies
6878 Views
Last post June 11, 2007, 10:09:07 pm
by BAlGaInTl
1 Replies
2657 Views
Last post November 26, 2007, 08:39:34 pm
by SMFHacks
4 Replies
3899 Views
Last post December 04, 2007, 09:27:54 pm
by SMFHacks
5 Replies
17050 Views
Last post January 30, 2010, 11:49:35 am
by Black Viper

+- Recent Topics

Cannot install Gallery Pro on SMF 2.1 RC2 by SMFHacks
Today at 07:30:15 am

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Stripe Integration by SMFHacks
February 08, 2020, 10:55:29 pm

SMF Store 4.0 Released by SMFHacks
January 26, 2020, 12:11:56 pm

Order of photos by D4611001
January 21, 2020, 12:06:36 pm

Cannot install by SMFHacks
January 18, 2020, 09:40:56 pm

Call to undefined function mysql_query() by SMFHacks
January 18, 2020, 02:06:47 pm

English British Translation file by HAL9000
January 17, 2020, 05:44:28 pm

Powered by EzPortal