Bottom
Access Denied error
  • Posted: 23.12.2004, 22:39
     
    stretchr
    registered:
     December 2004
    Status:
    offline
    last visit:
    07.12.05
    Posts:
    7
    I upgraded to the most recent version of Anniversaire module, initialized then activated it. Now, when I try to access the module from the Admin panel, I get "Access Denied". I checked and I used to have BSCIPermissions installed but it was not installed when I installed this module and I checked and made sure all the original files were back in place. I'm using PN .750. Any ideas on this?
    Thanks,
    Stretchr
  • Posted: 24.12.2004, 00:45
       
    vedrine
    rank:
    Site Admin Site Admin
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.07.08
    Posts:
    261
    Some people having downloaded my version of EnvoAvatar or anniversaire can't enter the module admin panel : they get "Acess denied"
    If this is your case, open the admin.php file at the root level of your PostNuke site (WARNING: not the admin.php in the modules/anniversaire or modules/EnvoAvatar directory but the one at the root level of your website) and add the lines
    Code
    // set a constant so we can chedk the correct entry point later
       define('LOADED_AS_MODULE','1');
    before the lines :
    Code
    if (file_exists($file='modules/' . pnVarPrepForOS($module) . '/admin.php')) {
       $ModName = $module;
       include $file;


    and the problem will be solved.

    another way to solve the problem would be to to download the admin.php file from the postnuke CVS here http://cvs.post...php?rev=1.16 but it would have exactlly the same effect as the above change so I think it is easier to add the 2 lines.
  • Posted: 24.12.2004, 03:12
     
    stretchr
    registered:
     December 2004
    Status:
    offline
    last visit:
    07.12.05
    Posts:
    7
    I replied on other post but once again, THANK YOU! This was the fix I was looking for! Merry Christmas and Happy New Year to you and to all!

    Cheers,
    Stretchr

    "It's a small world...
    But I wouldn't want to paint it!"
    Stephen Wright
Quick reply
 
  • Options
Code:
Font color:  
Font size: