Fin
You can't access this file directly... error on Envoavatar
  • Envoyé: 23.12.2004, 23:38
     
    stretchr
    enregistré depuis:
     décembre 2004
    Status:
    hors ligne
    dernière visite:
    07.12.05
    Messages:
    7
    Installed Envoavatar 1.1 on PN .750 and initialized then activated without errors. When I try to access this module from the Administration CP, I get "You can't access this file directly..." error. I also tested this on a fresh PN .750 install on a test server with the same result.

    Thanks,
    Stretchr
  • Envoyé: 24.12.2004, 00:51
       
    vedrine
    rang:
    Site Admin Site Admin
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    09.10.08
    Messages:
    266
    Well in fact the problem is exactly the same that for the "access denied" message with Anniversaire (birthday). So if you add the 2 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;

    to your root admin.php file will solve both problems.
    I may add that upgrading to PostNuke .760 when it will be released in a few weeks will also solve the problem but I don't suggest to wait so long :D
  • Envoyé: 24.12.2004, 03:04
     
    stretchr
    enregistré depuis:
     décembre 2004
    Status:
    hors ligne
    dernière visite:
    07.12.05
    Messages:
    7
    vedrine if you add the 2 lines :...

    Exactly so. Thank you very much and Merry Christmas to you!

    Cheers,
    Stretchr
  • Envoyé: 08.04.2005, 16:53
    Invité
    rang:
    1
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    06.03.05
    Messages:
    0
    Thank you so much! :D
Réponse rapide
 
  • Options
Code:
Couleur de la police:  
Taille de la police: