• Hi, I have been looking through the forum, and found that this issue has already happened at least twice, and you said you fixed it. I follow all the instructions, and copied the crontab job into the cron, but when that line runs through cron, there is still an error. I confirmed again and again that the argument to the wordpress root is set correctly – my wordpress site is in the root of my domain name so it’s in /home/therion/public_html/mysite.com.
    so the cronjob: * * * * * php /home/therion/public_html/mysite.com/wp-content/plugins/mailpoet/mailpoet-cron.php /home/therion/public_html/mysite.com/

    is correct. I did everything like I was instructed, but why am I still getting this error?:

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

    You need to pass a WordPress root as an argument.

    Thank you so much! Your mailing plugin is definitely the best one there is! I just wish so much that this cronjob would run correctly.

    Please, could you help me to solve this issue?

    Thank you so much 🙂

    PHP version: 7.4.7

Viewing 1 replies (of 1 total)
  • Thread Starter H-var

    (@hvar)

    Hello! To everyone who will ever stumble upon this post: the MailPoet plugin is missing the PATH to the PHP executable in its code. What it means is that you have to add your PATH before the “php”, for example:

    /usr/local/bin/php /home/myname/public_html/mysite.com/wp-content/plugins/mailpoet/mailpoet-cron.php /home/myname/public_html/mysite.com/

    your path to the php executable can be found in your cpanel > Advanced > cron jobs.

    Enjoy 🙂

    • This reply was modified 3 years, 9 months ago by H-var.
Viewing 1 replies (of 1 total)
  • The topic ‘You need to pass a WordPress root as an argument’ is closed to new replies.