News:

Wondering if this will always be free?  See why free is better.

Main Menu

Undefined index !

Started by khong_tac, October 12, 2010, 10:53:21 AM

Previous topic - Next topic

khong_tac

I have a bug this:

Notice: Undefined index: db_count in /home/aviav/domains/aviaviet.com/public_html/Sources/QueryString.php on line 298

site: www.aviaviet.com [nofollow]

Fix it for me, thanks.

Kindred

wow..... useless report.

1- smf version?
2- mods installed?
3- when/where do you get this error?
4- Posted in the wrong board. (moved)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

khong_tac

SMF 2.0 rc3

http://www.aviaviet.com/26/bao-gia-visa-cho-dai-ly/ [nofollow]

1.     SMF Links     2.3     [ Uninstall ]
2.    News Generator (Adk Portal Module)    1.0    [ Uninstall ]
3.    Adk Blog    1.0.3    [ Uninstall ]
4.    More Spiders    1.2    [ Uninstall ]
5.    Aeva Media    1.4a    [ Uninstall ]
6.    Social Bookmarks    2.0    [ Uninstall ]
7.    Google Search Your Site    2.0    [ Uninstall ]
8.    Share this topic - SMF Mod    1.3    [ Uninstall ]
9.    Increase Number of Visitors (cheat)    1.0    [ Uninstall ]
10.    Today's Posts    1.1    [ Uninstall ]
11.    Tux Starsigns    1.0    [ Uninstall ]
12.    Thank-O-Matic    2.0 RC2    [ Uninstall ]
13.    RSS Feeder    1.1.4    [ Uninstall ]
14.    Global Message    1.0    [ Uninstall ]
15.    Guest Registration Notification    1.1    [ Uninstall ]
16.    movie avatars    1.0    [ Uninstall ]
17.    lily allen avatars    1.0    [ Uninstall ]
18.    elvis avatars    1.0    [ Uninstall ]
19.    comic book avatars    1.0    [ Uninstall ]
20.    star wars avatars    1.0    [ Uninstall ]
21.    game avatars    1.0    [ Uninstall ]
22.    Apple Avatars    1.0    [ Uninstall ]
23.    All Sorts Of Gaming Avatars    1.0    [ Uninstall ]
24.    scooby and tom    1.0    [ Uninstall ]
25.    Sitemap    2.1.2    [ Uninstall ]
26.    SMFPacks Shoutbox    1.0    [ Uninstall ]
27.    Default Avatar    1.1    [ Uninstall ]
28.    Remove Help From Menu    1.0    [ Uninstall ]
29.    AvatarSelect    1.2.1    [ Uninstall ]
30.    Board Attachments    1.0    [ Uninstall ]
31.    Member Color Link    3.0.8    [ Uninstall ]
32.    Twitter and Facebook Publisher mod    2.4    [ Uninstall ]
33.    AutoKeywords    1.4    [ Uninstall ]
34.    Users Online Today    1.5.6    [ Uninstall ]
35.    RSS Feed Poster    2.2    [ Uninstall ]
36.    RSS Feed Icon    1.1    [ Uninstall ]
37.    NiceTooltips    1.6    [ Uninstall ]
38.    Additional Home page Title | S-Ace    3.0    [ Uninstall ]
39.    nneonneo's AJAX ShoutBox    1.22    [ Uninstall ]
40.    DailyMotion BBC Tag (XHTML Compliant)    1.0    [ Uninstall ]
41.    Tagging System    2.2.1    [ Uninstall ]
42.    Spiders Don't Increase Topic Views    1.1.1    [ Uninstall ]
43.    Pretty URLs    1.0    [ Uninstall ]
44.    Registered Links    2.0.2    [ Uninstall ]
45.    nCode Image Resizer    1.3    [ Uninstall ]
46.    YouTube BBCode    2.6    [ Uninstall ]
47.    Remove SMF Logo    1.301    [ Uninstall ]
48.    Related Topics    1.4 Beta 3    [ Uninstall ]
49.    Share This Topic    1.3    [ Uninstall ]
50.    Top 10 Posters and Topic Starters Stats (Today, This Week, This Month)    2.4.2    [ Uninstall ]
51.    Google Verification META Tag    1.101    [ Uninstall ]

Kindred

wow... with that many mods, I am surprised that is your only error.


and what does your QueryString.php look like on and around line 298?

(include 10-15 lines of code before and after 298) (and use thre CODE BBC tag)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

khong_tac

        // Check for pretty topic URLs, and possibly redirect if oldschool queries were used.
        $context['pretty']['query_string']['topic'] = $_REQUEST['topic'];
        if (is_numeric($_REQUEST['topic']))
        {
            $topic = (int) $_REQUEST['topic'];
            if (!isset($_REQUEST['pretty']))
                $context['pretty']['oldschoolquery'] = true;
        } else {
            $_REQUEST['topic'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['topic']);
            //    Are we feeling lucky?
            $query = $smcFunc['db_query']('', "
                SELECT id_topic
                FROM {db_prefix}pretty_topic_urls
                WHERE pretty_url = {string:topic}",
            array('topic' => $_REQUEST['topic']));
            //    No? No topic?!
            if ($smcFunc['db_num_rows']($query) == 0)
                $topic = 0;
            else
            {
                $row = $smcFunc['db_fetch_row']($query);
                $topic = (int) $row[0];
            }
            $smcFunc['db_free_result']($query);

            //    Fix $_REQUEST for silly mods that don't check $topic
            $_REQUEST['topic'] = $topic;

            //    That query should be counted separately
            $context['pretty']['db_count']++;
        }

        // Now make sure the online log gets the right number.
        $_GET['topic'] = $topic;
    }
    else
        $topic = 0;

    // Remove our querystring flag so that the noindex meta logic will work
    unset($_GET['pretty']);

Kindred

looks like a problem with the prettyURLs mod. I suggest you read through and ask about it in the support thread for that mod...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: