- Moderated by:
- Support Team
-
- rank:
-
Softmore
- registered:
- April 2005
- Status:
- offline
- last visit:
- 15.01.07
- Posts:
- 89
When trying to load the module from the Admin Panel, MailUsers (or NS-MailUsers), I am getting an "Access Denied" message. This happened after I reinstalled .750 (wasn't able to perform the upgrade successfully) and my site content.
Any ideas as to why this is happening all of the sudden? -
- rank:
-
Softmore
- registered:
- April 2005
- Status:
- offline
- last visit:
- 15.01.07
- Posts:
- 89
When trying to load the admin module, using the following url: http://silvercreekwa.com/admin.php?module=MailUsers&op=main, I get an "Access Denied" message on a plain white screen.
The admin.php file has the following code as the first two lines:
This would indicate to me that the module is failing to load- correct? If so, how do I fix this? -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- offline
- last visit:
- 23.11.08
- Posts:
- 13415
Did you reinstall the database as well as the files when you reverted back to .750?
I still have to recommend the upgrade :)
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
- rank:
-
Softmore
- registered:
- April 2005
- Status:
- offline
- last visit:
- 15.01.07
- Posts:
- 89
Ok Simon, I get the point (hehehe)... I need to find time to back everything up again and then do the upgrade.
Quote
Did you reinstall the database as well as the files when you reverted back to .750?
What I did was delete the databases and then create new and restore from backup. I've also reuploaded the MailUsers files again, and again - just to be sure. Don't want those language files to be missing! -
- rank:
-
Professional
- registered:
- January 2004
- Status:
- offline
- last visit:
- 05.09.08
- Posts:
- 633
Hello,
I don't know what PN version you are running (Simon seems to know that) but you seem to have some bad mix of files from different versions because in in PN 750 the begining of the modules/NS_MailUsers/admin.php file is not the one you gave and if you were running PN 761 you wouldn't have this problem.
Here is what is happening:
- in the root admin.php (PN 750 version) LOADED_AS_MODULE is not defined (it is defined in the root admin.php of PN .760 and .761)
- as your modules/NS-MailUsers/admin.php is not the one from PN .750 it expects LOADED_AS_MODULE to be defined so it give you the "Access denied" error message.
short term solution
Open the root admin.php file (warning the root one not the admin.php file from NS-MailUsers !!) and add the line:
Code
Just before the lines:
Code
if (file_exists($file='modules/' . pnVarPrepForOS($module) . '/admin.php')) {
$ModName = $module;
include $file;
long term solution
Run PN .761 (or .762 when released) and not a hazardous mix of 2 versions !!
--
Visit my live reef aquarium.
My Amazon wish list.
