Results 1 to 9 of 9
  1. #1
    New Pligger tomsb's Avatar
    Joined
    Mar 2007
    Posts
    3
    this is the error I get when trying to spamkill user:



    Hi,
    I get this error when trying to spamkill user:

    Fatal error: Call to a member function get_config_vars() on a non-object in /home/gastrofi/public_html/news/admin_users.php on line 372

    this is the code on line 732:
    PHP Code:
    $navwhere['text1'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel'); 
    Please help to solve this

    thanks
    Toms
    Attached Images Attached Images

  2. #2
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    in admin_users.php on line 370, change it to
    Code:
    	global $main_smarty;

  3. #3
    New Pligger tomsb's Avatar
    Joined
    Mar 2007
    Posts
    3
    I tried to change that on line 370 and/or 368. It still not working

    PHP Code:
    {
        global 
    $smarty;                                                        (this is line 368)
        
    $smarty->assign('user'$_GET["user"]);
                                                                                           (
    this is line 370)
        
    // breadcrumbs
            
    $navwhere['text1'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel');
            
    $navwhere['link1'] = getmyurl('admin''');
            
    $navwhere['text2'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel_1');
            
    $navwhere['link2'] = my_pligg_base "/admin_users.php";
            
    $navwhere['text3'] = $main_smarty->get_config_vars('PLIGG_Visual_Breadcrumb_User_Does_Not_Exist');
            
    $smarty->assign('navbar_where'$navwhere);
            
    $smarty->assign('posttitle'" / " $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel'));
        
    // breadcrumbs
        
        
    define('pagename''admin_users'); 
        
    $main_smarty->assign('pagename'pagename);

        
    $smarty->assign('tpl_center'$the_template '/admin_templates/user_doesnt_exist_center');
        
    $smarty->display($the_template '/pligg.tpl');


  4. #4
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    Looks like line 368 for you.

  5. #5
    New Pligger tomsb's Avatar
    Joined
    Mar 2007
    Posts
    3
    I did try changing that line too. It gives me this error:

    Fatal error: Call to a member function assign() on a non-object in /home/gastrofi/public_html/news/admin_users.php on line 369

  6. #6
    Mayor of PliggVille AshDigg's Avatar
    Joined
    Dec 2005
    Posts
    1,515
    Give this a try...
    PHP Code:

        
    global $main_smarty$smarty

  7. #7
    arp
    arp is offline
    New Pligger arp's Avatar
    Joined
    Apr 2007
    Posts
    6
    doesn't work for me. when I'm change this line I've got next error:
    Code:
    Fatal error: TPL: [in line 0]: syntax error: file '/pligg.tpl' does not exist in /home/domains/public_html/class.template.php on line 898
    what I should do now?

  8. #8
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    arp, your problems are more serious. Did you change your site to use a template that doesn't exist? Does pligg.tpl exist on your server?

  9. #9
    arp
    arp is offline
    New Pligger arp's Avatar
    Joined
    Apr 2007
    Posts
    6
    I've just changed default template to "paul01". that's all.

Similar Threads

  1. Replies: 4
    Last Post: 11-30-2007, 03:40 PM
  2. Fatal error: Call to undefined function
    By sanchopanza in forum Questions & Comments
    Replies: 1
    Last Post: 08-23-2007, 07:46 PM
  3. Fatal error: Call to a member function on a non-object in
    By trh792 in forum Questions & Comments
    Replies: 0
    Last Post: 04-16-2007, 11:01 PM
  4. Fatal error: Call to a member function on a non-object in
    By trh792 in forum Questions & Comments
    Replies: 2
    Last Post: 04-16-2007, 05:24 AM
  5. Replies: 1
    Last Post: 01-16-2007, 09:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting