KenG Posted November 26, 2016 Report 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
Moderators Parkho Posted November 27, 2016 Moderators Report 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
KenG Posted November 28, 2016 Author Report 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
KenG Posted November 29, 2016 Author Report 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
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.