This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

cleanse_
cleanse_

I am working on setting up queues in my plugin. Locally it seems to work, but after uploading to my live server, I am getting errors when running a queue:

exception 'ReflectionException' with message 'Class \Cleanse\MyPluginName\Classes\Jobs\MyQueueClass does not exist' in /october/vendor/laravel/framework/src/Illuminate/Container/Container.php:741

What could be the issue? Is there a settings for default queue locations? The Documentation says you can: Queue::push('SendEmail', ['message' => $message]); which seems like a nice short way to handle this, but I was having to use a longer path: Queue::push('\Cleanse\MyPluginName\Classes\Jobs\SendEmail', ['message' => $message]);

cleanse_
cleanse_

Tried using the closure method of a Queue::push and got:

[2017-05-30 02:41:33] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Cleanse\PluginName\Classes\CategoryDir\CategoryClass' not found in /var/www/html/vendor/jeremeamia/SuperClosure/src/SerializableClosure.php(210) : eval()'d code:8

cleanse_
cleanse_

This is a common pitfall, make sure your folder names are lower case. Some operating systems are case sensitive.

For example the class \Cleanse\MyPluginName\Classes\Jobs\MyQueueClass should be stored in a file called cleanse/mypluginname/classes/jobs/MyQueueClass.php

assistenza33089
assistenza33089

I had a similar issue, the pitfall for me was that I didn't pass the full qualified class name to queue

\Queue::push('HandleInvites@sendInvite', $vars); // wrong
\Queue::push('Am\Sigma\Classes\HandleInvites@sendInvite', $vars); // working
mdr.rupeszh53311
mdr.rupeszh53311

nohup php artisan queue:work --tries=3 daemon & in nginx octobercms project doesnot work.how to run queue:work in production.if any help will be very helpfull.Thankyou

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.