KenG Posted November 26, 2016 Report Share Posted November 26, 2016 (edited) For some reason, this line is causing my cronjobs to fail. There is no pilotid = 0 so I am not sure where it is supposed to get its permissions from but I am getting the following errors when it autoruns: Unauthorized access - Invalid Permissions Should there be a pilotid of 0 in my database? This happened after the update to phpvms 5.5.2 and change to php version 5.5. I can run any of these jobs manually while I am logged onto the site. I am thinking a possible admin privilege issue??? Thank you for any help, -Ken Edited November 26, 2016 by KenG Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 27, 2016 Moderators Report Share Posted November 27, 2016 (edited) There is not a pilotid of 0 in your DB but if you open "admin/maintenance.php", there you can see "Auth::$userinfo->pilotid = 0". Also, there is a section in "core/app.config.php" which can be used when defining ADMIN PANEL to true. I would add that section to my "core/local.config.php" to see what happens. Edited November 27, 2016 by parkho Quote Link to comment Share on other sites More sharing options...
KenG Posted November 28, 2016 Author Report Share Posted November 28, 2016 Parkho, Thank you, so you recommend I add the following code to the end of local.conflig.php? if(defined('ADMIN_PANEL') && ADMIN_PANEL === true) { Template::SetTemplatePath(SITE_ROOT.'/admin/templates'); define('CODON_MODULES_PATH', SITE_ROOT.'/admin/modules'); define('CODON_DEFAULT_MODULE', 'Dashboard'); } else { Template::SetTemplatePath(Config::Get('BASE_TEMPLATE_PATH')); define('CODON_MODULES_PATH', SITE_ROOT.'/core/modules'); define('CODON_DEFAULT_MODULE', 'Frontpage'); } Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 28, 2016 Moderators Report Share Posted November 28, 2016 Yes. Quote Link to comment Share on other sites More sharing options...
KenG Posted November 29, 2016 Author Report Share Posted November 29, 2016 Thank you, I did that and the Cron Job ran last night with the same error. Creating default object from empty value in /home/flyelite/public_html/admin/maintenance.php on line 26codon_crit_error An Error Was Encountered Unauthorized access - Invalid Permissions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.