Page 1 of 1

Avail extension by Kirillua - cannot run cron job

Posted: Mon Nov 14, 2016 2:31 am
by kudykam
I have this extension for opencart 2.2.0 up and running prefectly, but I am not able to make CRON job works.

Other extensions works with cron but not this on. When I load the page (mysite.com/cron/avail_cron.php) I get this:

Code: Select all

Forbidden
You don't have permission to access /cron/avail_cron.php on this server.
Can you please help me to make it works?

Re: Avail extension by Kirillua - cannot run cron job

Posted: Mon Nov 14, 2016 3:16 pm
by kudykam
Ok in htconfig, it has to allow ip from wich this cron is runned.

But there is another problem with opencart 2.2.0:

Code: Select all

Notice: unserialize(): Error at offset 0 of 27 bytes 
replacing line 27 with this should help:

Code: Select all

$config->set($setting['key'], json_decode($setting['value'], true));
One error remaining:

Code: Select all

Fatal error: Call to a member function trigger() on null in /www/system/storage/modification/system/engine/loader.php on line 119

Re: Avail extension by Kirillua - cannot run cron job

Posted: Wed Nov 16, 2016 5:22 am
by thekrotek
system/storage/modification/system/engine/loader.php is a modified version of default loader.php. Probably, some VQMod added some code and it isn't working properly. What's on your line 119?