Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 344
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 224
Total: 224

Author Topic: Errors in SMF's error log  (Read 6338 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: 16452
    • 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
16255 Views
Last post February 13, 2007, 07:31:20 pm
by wrcline
8 Replies
8905 Views
Last post June 11, 2007, 10:09:07 pm
by BAlGaInTl
1 Replies
4113 Views
Last post November 26, 2007, 08:39:34 pm
by SMFHacks
4 Replies
14747 Views
Last post December 04, 2007, 09:27:54 pm
by SMFHacks
5 Replies
20882 Views
Last post January 30, 2010, 11:49:35 am
by Black Viper

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal