Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
MailUsers access to admin mod is "ACCESS DENIED" *
  • Posted: 04.01.2006, 08:58
     
    tracedog
    rank:
    Softmore 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?
  • Posted: 04.01.2006, 15:16
     
    ainigma32
    rank:
    Professional Professional
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.03.06
    Posts:
    958
    Do you mean a webserver error or do you get something like "You are not authorized to ...." ?
  • Posted: 04.01.2006, 20:35
     
    tracedog
    rank:
    Softmore 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:

    Code

    if (!defined('LOADED_AS_MODULE')) {
        die ('Access Denied');


    This would indicate to me that the module is failing to load- correct? If so, how do I fix this?
  • Posted: 04.01.2006, 20:43
     
    ainigma32
    rank:
    Professional Professional
    registered:
     January 2004
    Status:
    offline
    last visit:
    22.03.06
    Posts:
    958
    If this module is the only one affected you could try reuploading the files in the Ns-MailUsers folder.

    Otherwise you might be better off trying the upgrade after all.
  • Posted: 04.01.2006, 23:18
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    online
    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
  • Posted: 05.01.2006, 01:20
     
    tracedog
    rank:
    Softmore 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!
  • Posted: 05.01.2006, 02:00
     
    jmvedrine
    rank:
    Professional 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

    define('LOADED_AS_MODULE','1');

    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.
  • Posted: 10.01.2006, 11:12
     
    tracedog
    rank:
    Softmore Softmore
    registered:
     April 2005
    Status:
    offline
    last visit:
    15.01.07
    Posts:
    89
    Resolved all issues by finally getting the .761 upgrade to work! Thanks for all the help!

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula