Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 182
Total: 182

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

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal