junior admin problem

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
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!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

@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?
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!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

@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:

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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

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
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

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...
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I did setup all privilegies I have but still doesn't work.
i did check also on internet but didn't find any solution, there si more people with the same problem.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

:( I'm sorry, I can't help. Missing knowledge...
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

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.
:(
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Try this with slashes, not with backslashes...
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

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
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Permission denied
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.
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

:)
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>';
and line 161
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Sorry, my mistake, it is like you said the line.....
I didn't check good, sorry!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Then do this into this file:

Code: Alles auswählen

#
#-----[ FIND ]-----
#
   include($phpbb_root_path.JR_ADMIN_DIR.$file);

#
#-----[ BEFORE, ADD ]-----
#
echo $phpbb_root_path.JR_ADMIN_DIR.$file;
and re-use the junior admin module.
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I get this at the bottom of every page
the link for ACP is gone!

Parse error: parse error in C:\Inetpub\forum\includes\functions_jr_admin.php on line 5
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

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
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

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...
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

after that I get
Parse error: parse error in C:\Inetpub\forum\includes\functions_jr_admin.php on line 5

line num 5 is define('COPYRIGHT_NIVISEC_FORMAT',
lin 6 is '<br /><span class="copyright"><center>
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

:lol:
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Sorry :D
I did that but I get the same error, like in my first post!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Give me some time to try to reproduce the error... Hard to find 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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

OK, take your time.
Maybe you can considder to write a new junior admin mod, because this is one of the most usefull MODs. especially for administrators.
Because I don't know what will nivisec do!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Maybe you can considder to write a new junior admin Mod
:l2: Really not :(

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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Ok I will check that, because on linux works OK.
TNX for advice!
Antworten