In my old version of my site i had a cron that ran at 2am every morning to product some reports from my Module. I have it set up as normal with my class in the cron folder and the correct xml in crontab.xml but this is what the cron_schedule table is showing :

enter image description here

And i'm also getting this error in cron.log

[2022-08-04 19:08:08] main.ERROR: Cron Job reinitpricing_cronjob has an error: Too few arguments to function Magento\Catalog\Model\ResourceModel\Product\Indexer\LinkedProductSelectBuilderByIndexPrice::build(), 1 passed in /domains/XX.XX.co.uk/http/vendor/magento/framework/Interception/Interceptor.php on line 58 and exactly 2 expected. Statistics: {"sum":0,"count":1,"realmem":0,"emalloc":0,"realmem_start":106954752,"emalloc_start":42932736} [] [] [

Does anyone know how i can resolve this?

  • I think u need to check if u are passing the correct number of parameters (arguments) to the function. U are passing to few arguments. I.e. function expects 3 arguments but u are passing only 2. please share the corresponding code. Aug 4 at 19:24

1 Answer 1


I faced similar issue. Have you checked that cron is installed on your magento. If not install it.

  • Try on Ubuntu: systemctl status cron Aug 4 at 19:26
  • Its not in my list when i do crontab -l but you can see it is running because i can see it in the table. What should i do to install it?
    – gazZz
    Aug 4 at 19:28
  • use this command bin/magento cron:install
    – Rana Zain
    Aug 4 at 19:31
  • Since it does a lot of looping i thought it might be the admin session timeout so i tried to change it but it says The "system/security/max_session_size_admin" path doesn't exist. Verify and try again. And when i look in the back end i dont have a security tab in advanced :/ ive noticed this before when looking for 2fa
    – gazZz
    Aug 4 at 19:33
  • oh yes i have installed it already. Its running i believe but throwing the error above
    – gazZz
    Aug 4 at 19:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.