Admin Tools.

Added by Nephilin over 7 years ago

Hello guys,

I'm having an issue about the admin tools and i dont know if the problem is normal (something wrong i the configuration of the application) or if it is a problem about mysql & apache.
The shard is launched, working well, with a client connected to it.
I can accès to the Admin tools, the login/pass session wors well.

All the applications works well except the Admin one, actually if i try to add an user, it does nothing, same if i clic on the name of an existing user (to edit it).
Same problem in all the sub sections of the Admin application, it only refresh the page with no change.
However the Prefs application works well, i can change my password, no problem.

I have search in the board some explanation, but found nothing about this.

If some one has a idea.. :)
Thanks !


Replies (5)

RE: Admin Tools. - Added by nimetu over 7 years ago

you probably running php5.3. It dropped few things.

the patch will fix it or you could change it yourself using instructions from http://www.php.net/manual/en/migration53.deprecated.php#100068

fix-php5.3.diff (43 kB) Magnifier

RE: Admin Tools. - Added by Nephilin over 7 years ago

Yes i tried that, i did the changes about the deprecated functions.
But it changes nothing.. I mean we still have the same problem :(

We are on php5.3.3.

RE: Admin Tools. - Added by nimetu over 7 years ago

maybe apache error log has some php errors.

you may try to remove files from templates/default_c (tho those should not affect a thing), change user_group_id to 3 in neltools_users for your user (3=AdminDebugGroup) and ofcourse add var_dump()'s around the code.

RE: Admin Tools. - Added by Nephilin over 7 years ago

No error in apache log (i was looking with tail)
I removed the .php in templates/default_c
I wa alreadi AdminDebugGroup (i changed it in the databases)

No change, the pages just refresh.

What do u mean by var_dump() arround the code ?

RE: Admin Tools. - Added by nimetu over 7 years ago

var_dump($var) will print out $var content. can be used to check if script has input data correct (like var_dump($_POST); to print form data).

if you open tool_administration.php, then 'create' new user is around line 224. if you put var_dump($_POST) there you should get something like

array(5) { ["tool_form_user_name"]=>  string(1) "a" ["tool_form_user_password"]=>  string(1) "a" ["tool_form_user_group"]=>  string(1) "3" ["tool_form_user_active"]=>  string(1) "0" ["toolaction"]=>  string(6) "create" } 

when you try to create user.

if you dont, then you move up to around line 81 to print out $tool_action. same way you can print out $tool_error in 'create' block and check what really happens in tool_admin_users_add() function.

(1-5/5)