Results 1 to 3 of 3
  1. #1
    Super Moderator/Coder/Designer nay27uk's Avatar
    Join Date
    Nov 2009
    Location
    Leicester, UK
    Posts
    3,558

    Default Manage Banners Undefined Variable BG FIXED

    Ok just fixed another problem with the admin side.
    When visiting Advertisment page it puts an error in the error log that says " Unknown error type: [8] Undefined variable: bg on "

    THE FIX:::

    open admin/managebanners.php on line 39 find code
    PHP Code:
    while ($row mysql_fetch_assoc($res)) 
    Directly above it add code
    PHP Code:
    $bg ''
    the code from lines 33 - 41 now looks like this
    PHP Code:
    // Retrieve users from the database
    $query "SELECT u.*, COUNT(b.user) as count FROM " $DBPrefix "bannersusers u
      LEFT JOIN " 
    $DBPrefix "banners b ON (b.user = u.id)
      GROUP BY u.id ORDER BY u.name"
    ;
    $res mysql_query($query);
    $system->check_mysql($res$query__LINE____FILE__);
    $bg '';
    while (
    $row mysql_fetch_assoc($res))

    I will also add this to the service pack and main download, I will post update threads in the service pack thread each time the service pack is updated
    1 out of 1 members found this post helpful.

  2. #2
    Banned/Coder/Designer
    Join Date
    Dec 2009
    Posts
    1,349

    Default

    Nice thank you nay

  3. #3
    Super Moderator/Coder/Designer nay27uk's Avatar
    Join Date
    Nov 2009
    Location
    Leicester, UK
    Posts
    3,558

    Default

    Got a another one I fixed comming a bit later, i'm a bit tired so going bed for an hour and will post that fix then.
    There are two pages however I just cant get a fix for.

    EDIT::::

    I added it now
    Last edited by nay27uk; 15-04-2012 at 05:48 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •