junior admin problem
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
@dagobert
I've seen the PM and will take a look the next days.
@uzay
Do you use the mod in version 2.0.5 too?
I've seen the PM and will take a look the next days.
@uzay
Do you use the mod in version 2.0.5 too?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
@dagobert
No idea. The php settings are equal.
The only way to find the bug is to open the file includes/functions_jr_admin.php and debug, from which point in the function "jr_admin_secure($file)" the script will return.
Insert for each return an echo to identify the return and when we will see, why the script isn't working.
One point may be the missing table for the junior admin. Check it out. If this table will be missed, create it:
No idea. The php settings are equal.
The only way to find the bug is to open the file includes/functions_jr_admin.php and debug, from which point in the function "jr_admin_secure($file)" the script will return.
Insert for each return an echo to identify the return and when we will see, why the script isn't working.
One point may be the missing table for the junior admin. Check it out. If this table will be missed, create it:
Code: Alles auswählen
CREATE TABLE `phpbb_jr_admin_users` (
`user_id` mediumint(9) NOT NULL default '0',
`user_jr_admin` longtext NOT NULL,
`start_date` int(10) unsigned NOT NULL default '0',
`update_date` int(10) unsigned NOT NULL default '0',
`admin_notes` text NOT NULL,
`notes_view` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`user_id`)
) TYPE=MyISAM;Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
I have this error too, but only on forum which is on windows server, with linux server works ok. I put all permissions which needed but stil.
Warning: jr_admin_check_file_hashes(./../admin/): failed to open stream: Permission denied in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: jr_admin_check_file_hashes(): Failed opening './../admin/' for inclusion (include_path='.;c:\php4\pear') in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: Invalid argument supplied for foreach() in C:\Inetpub\forum\includes\functions_jr_admin.php on line 161
General Error
The requested module does not exist or you are not an authorized user.
DEBUG MODE
Line : 49
File : C:\Inetpub\forum\admin\pagestart.php
Warning: jr_admin_check_file_hashes(./../admin/): failed to open stream: Permission denied in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: jr_admin_check_file_hashes(): Failed opening './../admin/' for inclusion (include_path='.;c:\php4\pear') in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: Invalid argument supplied for foreach() in C:\Inetpub\forum\includes\functions_jr_admin.php on line 161
General Error
The requested module does not exist or you are not an authorized user.
DEBUG MODE
Line : 49
File : C:\Inetpub\forum\admin\pagestart.php
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Windows may manage paths different to unix/linux, so here can comes up these kind of errors.
But I still don't know, how to fix this
You can check the php- and webserver-settings. There might be a problem with permissions and path variables...
But I still don't know, how to fix this
You can check the php- and webserver-settings. There might be a problem with permissions and path variables...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
I did check a little about functions_jr_admin.php
and found define('JR_ADMIN_DIR', 'admin\');
I change into
define('JR_ADMIN_DIR', 'C:\www\forum\includes\admin\');
now I get this error, which I can't solve.
Parse error: parse error, unexpected T_STRING in C:\www\forum\includes\functions_jr_admin.php on line 5
Maybe someone can, if not, we will wait until someone does, or uninstall junior admin. Because Nivisec is in big triouble and can't support anymore.
I like to help him but I can't.

and found define('JR_ADMIN_DIR', 'admin\');
I change into
define('JR_ADMIN_DIR', 'C:\www\forum\includes\admin\');
now I get this error, which I can't solve.
Parse error: parse error, unexpected T_STRING in C:\www\forum\includes\functions_jr_admin.php on line 5
Maybe someone can, if not, we will wait until someone does, or uninstall junior admin. Because Nivisec is in big triouble and can't support anymore.
I like to help him but I can't.
If i put slashes I get this error
Warning: jr_admin_check_file_hashes(./../admin/): failed to open stream: Permission denied in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: jr_admin_check_file_hashes(): Failed opening './../admin/' for inclusion (include_path='.;c:\php4\pear') in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: Invalid argument supplied for foreach() in C:\Inetpub\forum\includes\functions_jr_admin.php on line 161
General Error
The requested module does not exist or you are not an authorized user.
DEBUG MODE
Line : 49
File : C:\Inetpub\forum\admin\pagestart.php
I think I will uninstall this MOD
Warning: jr_admin_check_file_hashes(./../admin/): failed to open stream: Permission denied in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: jr_admin_check_file_hashes(): Failed opening './../admin/' for inclusion (include_path='.;c:\php4\pear') in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: Invalid argument supplied for foreach() in C:\Inetpub\forum\includes\functions_jr_admin.php on line 161
General Error
The requested module does not exist or you are not an authorized user.
DEBUG MODE
Line : 49
File : C:\Inetpub\forum\admin\pagestart.php
I think I will uninstall this MOD
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
This is the only error. Look into the functions_jr_admin.php on the displayed line and set the permissions to the folder/file there wants to be used to the needed values.Permission denied
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
this is the line 154
Code: Alles auswählen
$list .= '<a href="#'.strtoupper(chr($first_link)).'" class="nav">'.strtoupper(chr($items[0])).' - '.strtoupper(chr($items[1])).'</a>';
Code: Alles auswählen
}- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
PLease attach the whole file. On my file this will be line 154:
Code: Alles auswählen
include($phpbb_root_path.JR_ADMIN_DIR.$file);Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Then do this into this file:
and re-use the junior admin module.
Post the result of the echo to going on with debugging.
Code: Alles auswählen
#
#-----[ FIND ]-----
#
include($phpbb_root_path.JR_ADMIN_DIR.$file);
#
#-----[ BEFORE, ADD ]-----
#
echo $phpbb_root_path.JR_ADMIN_DIR.$file;Post the result of the echo to going on with debugging.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Have you tried this line ? The original one?
Code: Alles auswählen
define('JR_ADMIN_DIR', 'admin/');Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
If I use that I get an error which I posted!
It is not problem I will uninstall this mod and install a supermoderator mod.
it makes too much problems.
Warning: jr_admin_check_file_hashes(./../admin/): failed to open stream: Permission denied in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: jr_admin_check_file_hashes(): Failed opening './../admin/' for inclusion (include_path='.;c:\php4\pear') in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: Invalid argument supplied for foreach() in C:\Inetpub\forum\includes\functions_jr_admin.php on line 161
General Error
The requested module does not exist or you are not an authorized user.
DEBUG MODE
Line : 49
File : C:\Inetpub\forum\admin\pagestart.php
I think I will uninstall this Mod
It is not problem I will uninstall this mod and install a supermoderator mod.
it makes too much problems.
Warning: jr_admin_check_file_hashes(./../admin/): failed to open stream: Permission denied in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: jr_admin_check_file_hashes(): Failed opening './../admin/' for inclusion (include_path='.;c:\php4\pear') in C:\Inetpub\forum\includes\functions_jr_admin.php on line 154
Warning: Invalid argument supplied for foreach() in C:\Inetpub\forum\includes\functions_jr_admin.php on line 161
General Error
The requested module does not exist or you are not an authorized user.
DEBUG MODE
Line : 49
File : C:\Inetpub\forum\admin\pagestart.php
I think I will uninstall this Mod
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Hm, very curious. The path will be wrong.
Try to delete in this file each $phpbb_root_path before "JR_ADMIN_DIR".
This may helps, but no garantie...
Try to delete in this file each $phpbb_root_path before "JR_ADMIN_DIR".
This may helps, but no garantie...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
No, do now delete lines which contains "JR_ADMIN_DIR", just "$phpb_root_path." (regard the point at the end) before it.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
:l2: Really notMaybe you can considder to write a new junior admin Mod
BTW: I'm using a copy of my board lokal on a windows system to test each modification.
And the junior admin will run without any changes in the scripts.
So I think, the permissions to the folders aren't correct.
You have set the permissions to "Each User"? Make sure, the webserver have complete rights on the whole htdocs-folder and all of its subfolders.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!