Fin
Access Denied error
  • Envoyé: 23.12.2004, 22:39
     
    stretchr
    enregistré depuis:
     décembre 2004
    Status:
    hors ligne
    dernière visite:
    07.12.05
    Messages:
    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
  • Envoyé: 24.12.2004, 00:45
       
    vedrine
    rang:
    Site Admin Site Admin
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    21.07.08
    Messages:
    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.
  • Envoyé: 24.12.2004, 03:12
     
    stretchr
    enregistré depuis:
     décembre 2004
    Status:
    hors ligne
    dernière visite:
    07.12.05
    Messages:
    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
Réponse rapide
 
  • Options
Code:
Couleur de la police:  
Taille de la police: