You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 71 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - [nuke 6.5, bb port 2.1] problems with admin panel [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Quorthon
Nuke Cadet
Nuke Cadet


Joined: Jun 22, 2003
Posts: 3


PostPosted: Sun Jun 22, 2003 5:08 am Reply with quoteBack to top

Haven't found a solution for it anywhere, so maybe someone can help me...
I've installed Nuke 6.5 (with fixpack 3) recently and there is a problem with the forum admin panel. The left pane of the panel index is incomplete, because of the 2 warnings I get:
Quote:
Warning: ksort() expects parameter 1 to be array, null given in /home/users/qjstudio/www/nuke/modules/Forums/admin/index.php on line 87
and
Quote:
Warning: Variable passed to each() is not an array or object in /home/users/qjstudio/www/nuke/modules/Forums/admin/index.php on line 89

In fact, there is no menu on the left because of that. I was clever enough to run every admin script by entering its full address in my browser, but there are still things I cannot access this way...

Those include: changing user's level to mod/admin (I'm doing it directly through phpmyadmin) and assigning a moderator/group to moderate a forum. Moreover, when I access the admin_ug_auth.php script, I can choose a group, but when I want to proceed, nothing happens. Could anyone help me, please? I've run out of ideas Sad
Find all posts by QuorthonView user's profileSend private message
Netrioter
Nuke Soldier
Nuke Soldier


Joined: Jun 06, 2003
Posts: 13


PostPosted: Sun Jun 22, 2003 5:22 am Reply with quoteBack to top

the admin index file include files for the menü :

Quote:

$setmodules = 1;
while( $file = @readdir($dir) )
{
if( preg_match("/^admin_.*?\." . $phpEx . "$/", $file) )
{
include($file);
}
}



this load all files in this directory that start with admin_*, and return an entry in this module array

if this files not exists or the extension is a other, than your standard define like *.php in nuke, the module array will not set, and u get this warning. its not a bug .
Find all posts by NetrioterView user's profileSend private messageVisit poster's website
Quorthon
Nuke Cadet
Nuke Cadet


Joined: Jun 22, 2003
Posts: 3


PostPosted: Sun Jun 22, 2003 6:22 am Reply with quoteBack to top

OK, but what is wrong then? Confused All the admin_ files exist in modules/Forums/admin/ dir, they all have a .php extension, I can run each of them directly from my browser by entering the full address. Maybe there's sth wrong with file permissions? The scripts are chmoded 604, directories are 705.
Apart from all this, I still don't know how to access users/group permissions for moderation/administration. The admin_ug_auth.php script should be responsible for group permissions, but, as I said, nothing happens...
I can manage the forum without the panel menu, but I need to assign moderators/groups to moderate all the forums... Any help in this matter would be greatly appreciated (even a browser link to the user/group permissions management... accessing admin_users.php allows me only to change the user's info/rank).
Find all posts by QuorthonView user's profileSend private message
Netrioter
Nuke Soldier
Nuke Soldier


Joined: Jun 06, 2003
Posts: 13


PostPosted: Sun Jun 22, 2003 8:03 am Reply with quoteBack to top

a simple solution is this, but is it not correct but work :

all admin_* files with this entry at the top :

Code:


if( !empty($setmodules) )
{
   $file = basename(__FILE__);
   $module['General']['Configuration'] = "$file?mode=config";
   return;
}


comment this in index.php out with :


Code:

/*
$dir = @opendir(".");

   $setmodules = 1;
   while( $file = @readdir($dir) )
   {
      if( preg_match("/^admin_.*?\." . $phpEx . "$/", $file) )
      {
         include($file);
      }
   }

   @closedir($dir);

   unset($setmodules);
*/


and write this entries there from each admin_* where u find it :

Quote:

$module['General']['Configuration'] = "$file?mode=config";



but btw, it works so, but u should find your error in your install Smile

this variable $file, replace with filename ex: admin_board.php
Find all posts by NetrioterView user's profileSend private messageVisit poster's website
Quorthon
Nuke Cadet
Nuke Cadet


Joined: Jun 22, 2003
Posts: 3


PostPosted: Sun Jun 22, 2003 10:45 pm Reply with quoteBack to top

Thanks for the solution Smile. I'm going to find the source of the problem anyway, but the good thing is that the other problem is also solved, because it turned out that I had ?mode= missing after admin_ug_auth.php and now everything is fine.
Find all posts by QuorthonView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.210 Seconds - 218 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::