Skip to content

I'm having trouble getting the cron job to run #5

@kylewindfall

Description

@kylewindfall

It works perfectly through the CLI. I can get it to run using artisan schedule:run and using artisan wordpress-to-laravel:import.

However, it doesn't run on my scheduler cron job. So then I setup a specific cron job for artisan wordpress-to-laravel:import to see if I can get it to run that way and also get the error emailed to me.

I'm running Laravel 5.4 on PHP 7.1.1

Thanks for any pointers!

Here's the error it throws:

[Symfony\Component\Console\Exception\CommandNotFoundException]          
 There are no commands defined in the "wordpress-to-laravel" namespace

[2017-07-10 21:50:01] local.ERROR: Symfony\Component\Console\Exception\CommandNotFoundException: There are no commands defined in the "wordpress-to-laravel" namespace. in /home/general/public_html/project/vendor/symfony/console/Application.php:499
Stack trace:
#0 /home/general/public_html/project/vendor/symfony/console/Application.php(531): Symfony\Component\Console\Application->findNamespace('wordpress-to-la...')
#1 /home/general/public_html/project/vendor/symfony/console/Application.php(186): Symfony\Component\Console\Application->find('wordpress-to-la...')
#2 /home/general/public_html/project/vendor/symfony/console/Application.php(120): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /home/general/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(123): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /home/general/public_html/project/artisan(34): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 {main} 
```.  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions