You can't access this file directly... error on Envoavatar  Début

  • 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
  • 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
  • vedrine

    if you add the 2 lines :...

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

    Cheers,
    Stretchr
  • Thank you so much! :D
  • 7 visiteurs

Données pour les 15 dernières minutes