Jump to content

Maintenance.php and other jobs failing -> Auth::$userinfo->pilotid = 0


KenG

Recommended Posts

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 by KenG
Link to comment
Share on other sites

  • Moderators

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 by parkho
Link to comment
Share on other sites

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');
}

Link to comment
Share on other sites

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 26

codon_crit_error

An Error Was Encountered

Unauthorized access - Invalid Permissions.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...