Bottom
You can't access this file directly... error on Envoavatar
  • Posted: 23.12.2004, 23:38
     
    stretchr
    registered:
     December 2004
    Status:
    offline
    last visit:
    07.12.05
    Posts:
    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
  • Posted: 24.12.2004, 00:51
       
    vedrine
    rank:
    Site Admin Site Admin
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.07.08
    Posts:
    261
    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
  • Posted: 24.12.2004, 03:04
     
    stretchr
    registered:
     December 2004
    Status:
    offline
    last visit:
    07.12.05
    Posts:
    7
    vedrine if you add the 2 lines :...

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

    Cheers,
    Stretchr
  • Posted: 08.04.2005, 16:53
    Invité
    rank:
    1
    registered:
     December 2003
    Status:
    offline
    last visit:
    06.03.05
    Posts:
    0
    Thank you so much! :D
Quick reply
 
  • Options
Code:
Font color:  
Font size: