Jump to content

Cron Job Returns an error


PHPRush

Recommended Posts

Hello,

 

Help me pls upto now no reply to my ticket more than 24hr over

Replacing vendor as well as the cron files doesnt worked!

 

Quote

<p class="debug">Error: Call to a member function createStorageProvider() on null in /home/XXXXX/public_html/controls/vendor/whmcs/whmcs-foundation/lib/File/Configuration/FileAssetSetting.php:0<br />
Stack trace:<br />
#0 /home/XXXXX/public_html/controls/vendor/whmcs/whmcs-foundation/lib/File/Storage.php(0): WHMCS\File\Configuration\FileAssetSetting->createFilesystemAdapter('')<br />
#1 /home/XXXXX/public_html/controls/vendor/whmcs/whmcs-foundation/lib/File/Storage.php(0): WHMCS\File\Storage->createAdapter('email_template_...')<br />
#2 /home/XXXXX/public_html/controls/vendor/illuminate/support/Facades/Facade.php(215): WHMCS\File\Storage->emailTemplateAttachments()<br />
#3 /home/XXXXX/public_html/controls/vendor/whmcs/whmcs-foundation/lib/Mail/Message.php(0): Illuminate\Support\Facades\Facade::__callStatic('emailTemplateAt...', Array)<br />
#4 /home/XXXXX/public_html/controls/vendor/whmcs/whmcs-foundation/lib/Mail/Emailer.php(0): WHMCS\Mail\Message::createFromTemplate(Object(WHMCS\Mail\Template))<br />
#5 /home/XXXXX/public_html/controls/includes/functions.php(0): WHMCS\Mail\Emailer::factoryByTemplate(Object(WHMCS\Mail\Template), 642, '')<br />
#6 /home/XXXXX/public_html/controls/vendor/whmcs/whmcs-foundation/lib/Cron/Task/InvoiceReminders.php(0): sendMessage('Invoice Payment...', 642)<br />
#7 /home/XXXXX/public_html/controls/vendor/whmcs/whmcs-foundation/lib/Cron/Task/InvoiceReminders.php(0): WHMCS\Cron\Task\InvoiceReminders->sendUnpaidInvoiceReminders()<br />
#8 /home/XXXXX/public_html/controls/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Cron\Task\InvoiceReminders->__invoke()<br />
#9 /home/XXXXX/public_html/controls/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Scheduling\Task\AbstractTask->execute()<br />
#10 /home/XXXXX/public_html/controls/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Scheduling\Task\AbstractTask->run()<br />
#11 /home/XXXXX/public_html/controls/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Cron\Console\Command\AbstractCronCommand->executeCollection(Object(WHMCS\Scheduling\Task\Collection))<br />
#12 /home/XXXXX/public_html/controls/vendor/symfony/console/Command/Command.php(259): WHMCS\Cron\Console\Command\AbstractCronCommand->execute(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))<br />
#13 /home/XXXXX/public_html/controls/vendor/symfony/console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))<br />
#14 /home/XXXXX/public_html/controls/vendor/symfony/console/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(WHMCS\Cron\Console\Command\AllCommand), Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))<br />
#15 /home/XXXXX/public_html/controls/vendor/symfony/console/Application.php(123): Symfony\Component\Console\Application->doRun(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))<br />
#16 /home/XXXXX/public_html/controls/my-secured-folders/crons-pik0z/cron.php(0): Symfony\Component\Console\Application->run(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))<br />

 

Link to comment
Share on other sites

  • 2 years later...
  • WHMCS Support Manager

Hi there,

To follow up with a resolution in the event somebody else comes across this thread. This error indicates the saved Storage Settings values are no longer valid (possibly following a server move).

First test that your Storage Setting configuration are valid at Configuration > System Settings > Storage Settings > Configurations tab using the play icon

If not, please update them per this guide: https://docs.whmcs.com/Moving_Storage_Locations

If yes, then the values may just need re-saving. To do this:

  1. Select the Settings tab
  2. Toggle each of the storage settings dropdown menus to a different option, and then back to the original value
  3. Click Switch and confirm
  4. Repeat for each storage setting
Link to comment
Share on other sites

  • 1 year later...

Hello,

 

When i am try to run all the corn job i am getting this error

 

 

 

#0 /home2/Username/public_html/vendor/illuminate/database/Connection.php(331): Illuminate\Database\Connection->prepared(false)
#1 /home2/Username/public_html/vendor/illuminate/database/Connection.php(664): Illuminate\Database\Connection->Illuminate\Database\{closure}('select * from `...', Array)
#2 /home2/Username/public_html/vendor/illuminate/database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback('select * from `...', Array, Object(Closure))
#3 /home2/Username/public_html/vendor/illuminate/database/Connection.php(339): Illuminate\Database\Connection->run('select * from `...', Array, Object(Closure))
#4 /home2/Username/public_html/vendor/illuminate/database/Query/Builder.php(2202): Illuminate\Database\Connection->select('select * from `...', Array, true)
#5 /home2/Username/public_html/vendor/illuminate/database/Query/Builder.php(2190): Illuminate\Database\Query\Builder->runSelect()
#6 /home2/Username/public_html/vendor/illuminate/database/Query/Builder.php(2685): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
#7 /home2/Username/public_html/vendor/illuminate/database/Query/Builder.php(2191): Illuminate\Database\Query\Builder->onceWithColumns(Array, Object(Closure))
#8 /home2/Username/public_html/vendor/illuminate/database/Eloquent/Builder.php(539): Illuminate\Database\Query\Builder->get(Array)
#9 /home2/Username/public_html/vendor/illuminate/database/Eloquent/Builder.php(523): Illuminate\Database\Eloquent\Builder->getModels(Array)
#10 /home2/Username/public_html/vendor/illuminate/database/Concerns/BuildsQueries.php(143): Illuminate\Database\Eloquent\Builder->get(Array)
#11 /home2/Username/public_html/vendor/illuminate/database/Eloquent/Builder.php(419): Illuminate\Database\Eloquent\Builder->first()
#12 /home2/Username/public_html/vendor/illuminate/support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->firstOrNew(Array)
#13 /home2/Username/public_html/vendor/illuminate/database/Eloquent/Model.php(1728): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'firstOrNew', Array)
#14 /home2/Username/public_html/vendor/illuminate/database/Eloquent/Model.php(1740): Illuminate\Database\Eloquent\Model->__call('firstOrNew', Array)
#15 /home2/Username/public_html/vendor/whmcs/whmcs-foundation/lib/Module/Queue.php(0): Illuminate\Database\Eloquent\Model::__callStatic('firstOrNew', Array)
#16 /home2/Username/public_html/includes/modulefunctions.php(0): WHMCS\Module\Queue::add('service', 642, 'cpanel', 'SuspendAccount', 'Connection Erro...')
#17 /home2/Username/public_html/includes/modulefunctions.php(0): ModuleCallFunction('Suspend', 642, Array, 0)
#18 /home2/Username/public_html/vendor/whmcs/whmcs-foundation/lib/Cron/Task/AutoSuspensions.php(0): ServerSuspendAccount(642)
#19 /home2/Username/public_html/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Cron\Task\AutoSuspensions->__invoke()
#20 /home2/Username/public_html/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Scheduling\Task\AbstractTask->execute()
#21 /home2/Username/public_html/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Scheduling\Task\AbstractTask->run()
#22 /home2/Username/public_html/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Cron\Console\Command\AbstractCronCommand->executeCollection(Object(WHMCS\Scheduling\Task\Collection))
#23 /home2/Username/public_html/vendor/symfony/console/Command/Command.php(255): WHMCS\Cron\Console\Command\AbstractCronCommand->execute(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /home2/Username/public_html/vendor/symfony/console/Application.php(912): Symfony\Component\Console\Command\Command->run(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 /home2/Username/public_html/vendor/symfony/console/Application.php(264): Symfony\Component\Console\Application->doRunCommand(Object(WHMCS\Cron\Console\Command\AllCommand), Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#26 /home2/Username/public_html/vendor/symfony/console/Application.php(140): Symfony\Component\Console\Application->doRun(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#27 /home2/Username/public_html/crons/cron.php(0): Symfony\Component\Console\Application->run(Object(WHMCS\Cron\Console\Input\CliInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

 

 

Any one have any solution for this ??

 

thanks

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated