Forum

Error Running Cron Command

Posted in CategoryGeneral
  • Nexyo Soluções Inteligentes    ( User ) 4 months ago
    When I try to execute the commandcron  php /home/my-directory/public_html/artisan schedule:run


    I get the following error in my email:


    In UrlGenerator.php line 101:  Type error: Argument 2 passed to Illuminate\Routing\UrlGenerator::__constru    ct() must be an instance of Illuminate\Http\Request, null given, called in     /home2/gestaotop10/public_html/vendor/laravel/framework/src/Illuminate/Rout    ing/RoutingServiceProvider.php on line 64                       


                X-Powered-By: PHP/7.3.6Content-type: text/html


    Note: Invoices are not being generated automatically.

  • Denis Duliçi    ( Admin ) 4 months ago

    Hello Nexyo,


    Please, make sure you're using the latest version of Akaunting.


    Regards

  • Nexyo Soluções Inteligentes    ( User ) 4 months ago

    Hello,


    I'm using Version 1.3.17.


    I think it's the latest version.

  • Denis Duliçi    ( Admin ) 4 months ago

    Hello,


    Make sure that the content of the following file is the same:


    https://github.com/akaunting/akaunting/blob/master/config/filesystems.php


    Regards

  • Nexyo Soluções Inteligentes    ( User ) 4 months ago

    Hello, Denis!


    I checked and replaced filesystem.php by what was in github, even then the error persisted.


    I decided to change the command using php5-cli / home2 / gestaotop10 / public_html / artisan schedule: run


    and now it is not presenting an error, but it does not execute the cron and I receive the following message in the email:


    No scheduled commands are ready to run.


    Regards

  • Jaime Bula    ( User ) 3 months ago
    Same Here


    In UrlGenerator.php line 101:

    Type error: Argument 2 passed to Illuminate\Routing\UrlGenerator::__constru
    ct() must be an instance of Illuminate\Http\Request, null given, called in
    /home/legaloco/contabilidad.simplebunny.com/vendor/laravel/framework/src/Il
    luminate/Routing/RoutingServiceProvider.php on line 64


    Content-type: text/html; charset=UTF-8

    Has someone been able to solve this?

Please login or register to leave a response.