Hi,
since today I have a problem with junior admins.
At first I added some modules (album moduls) to a user. When the user enters ACP he can choose the modules in the left menu.
When the user choose a menu point (for example album categories / admin_album_cat.php), all album categories are displayed. But when the User clicks on edit, only a blank page is loading insteed of admin_album_cat.php
René
BUG - Junior Admin Blank Pages
Subject: BUG - Junior Admin Blank Pages
Last edited by Rene on Sun 24 Aug, 2008 20:08; edited 2 times in total
Last edited by Rene on Sun 24 Aug, 2008 20:08; edited 2 times in total
Subject: Re: Junior Admin Blank Pages
Thanks for reporting, I will check when I have some free time.
Subject: Re: Junior Admin Blank Pages
The problem is that it was working for some weeks, I don't know where to look for the error. I thought it has something to do with the authorisation.
EDIT: Its the same with the new version of IP.
--------------------------------------------------------------------------------------------------------------
On the german site phpbb.de I found a topic which deals about this problem and here I found a solution. I try to explain it in englisch:
In some modules the include($phpbb_root_path.JR_ADMIN_DIR.$file); in the function jr_admin_check_file_hashes($file) does not work.
In IP the include is -> include($phpbb_root_path . ADM . '/' . $file);
Workaround (example for admin_album_cat):
Open: includes/functions_jr_admin.php
Search (in function jr_admin_check_file_hashes($file)):
Replace with:
if ($file == "admin_album_cat.php")
{
$module['2200_Photo_Album']['120_Album_Categories'] = $file;
}
else if ($file == "<filesname>")
{
<module name of file> = $file;
}
else if ...
.
.
.
else include($phpbb_root_path . ADM . '/' . $file);
You have to do this for every admin function witch delivers a blank page. Some modules use the variable $filename instead of $file, you have to use always $file.
It seems that the problem only occurs in PHP5. Its not the best workaround but the fastest :D
Here the link to the german phpbb thread: http://www.phpbb.de/viewtopic.php?t=154809
Last edited by Rene on Tue 18 Dec, 2007 13:37; edited 2 times in total
Mighty Gorgon wrote: [View Post]
The problem is that it was working for some weeks, I don't know where to look for the error. I thought it has something to do with the authorisation.
EDIT: Its the same with the new version of IP.
--------------------------------------------------------------------------------------------------------------
On the german site phpbb.de I found a topic which deals about this problem and here I found a solution. I try to explain it in englisch:
In some modules the include($phpbb_root_path.JR_ADMIN_DIR.$file); in the function jr_admin_check_file_hashes($file) does not work.
In IP the include is -> include($phpbb_root_path . ADM . '/' . $file);
Workaround (example for admin_album_cat):
Open: includes/functions_jr_admin.php
Search (in function jr_admin_check_file_hashes($file)):
Replace with:
if ($file == "admin_album_cat.php")
{
$module['2200_Photo_Album']['120_Album_Categories'] = $file;
}
else if ($file == "<filesname>")
{
<module name of file> = $file;
}
else if ...
.
.
.
else include($phpbb_root_path . ADM . '/' . $file);
You have to do this for every admin function witch delivers a blank page. Some modules use the variable $filename instead of $file, you have to use always $file.
It seems that the problem only occurs in PHP5. Its not the best workaround but the fastest :D
Here the link to the german phpbb thread: http://www.phpbb.de/viewtopic.php?t=154809
Last edited by Rene on Tue 18 Dec, 2007 13:37; edited 2 times in total
Subject: Re: Junior Admin Blank Pages
Hi,
why is this error not fixed in the actual version? I was afraid as I found out that the error is still remaining.
Regards
René
why is this error not fixed in the actual version? I was afraid as I found out that the error is still remaining.
Regards
René
Subject: Re: BUG - Junior Admin Blank Pages
It is still there because I cannot replicate the bug.
I don't have it in my local test board.
Until I cannot understand what id buggy, I cannot fix it.
Rene wrote: [View Post]
It is still there because I cannot replicate the bug.
I don't have it in my local test board.
Until I cannot understand what id buggy, I cannot fix it.
Subject: Re: BUG - Junior Admin Blank Pages
I have finally found the bug and fixed it.
It should be fixed in the beta.
It should be fixed in the beta.
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.2804s (PHP: 7% SQL: 93%)
SQL queries: 15 - Debug Off - GZIP Enabled