You can't access this file directly... error on Envoavatar
-
- Inscrit en : 23.12.04
- 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 -
- Rang : Site Admin
- Inscrit en : 06.12.03
- Dernière visite : 25.02.10
- Messages : 274
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 -
- Inscrit en : 23.12.04
- 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 -
- Inscrit en : 06.12.03
- Dernière visite : 15.08.09
- Messages : 4294967292
Utilisateurs en ligne
- 7 visiteurs
Données pour les 15 dernières minutes








