• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Cron fails with HTML code as output

jke

New Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
18.0.55 Update #2
Hi Everyone

I'm having an issue on a Wordpress website. The cron job fails when the plugins Yoast and WP-rocket are activated together.
Unfortunately the error output is not clear. I get the HTML code output, but cannot see any details.
Does anyone know where I have to look to see all of it?

Thanks for the help.
errorplesk.png
 
It seems that you have activated the wp-cron.php replacement option in WP Toolkit

1699434446615.png

In that case you'll find a "Scheduled Tasks" entry that you can edit. You could direct the output for that scheduled task to email, e.g.:

1699434544373.png

This will send you the full output by mail.
 
Thanks for the reply. Unfortunately I'm not able to send emails at all. No notifications, no cron job logs. I am using the external SMTP and it should be connected to Office365...
 
I've found a lot of articles, but non of them can get me in te right direction. I keep going in circles for hours now, why this isn't working...
 
Please open a support ticket so that an engineer can assist you. I suggest to first open a ticket on the email issue. If you cannot send mails, that will be best to solve first.

To sign-in to support please go to https://support.plesk.com

If you experience login issues, please see this KB article:
https://support.plesk.com/hc/en-us/...rt-plesk-com-and-password-reset-does-not-work

If you bought your license from a reseller, your reseller should provide support for you. If the reseller does not provide support, here is an alternative:
https://support.plesk.com/hc/en-us/articles/12388090147095-How-to-get-support-directly-from-Plesk-
 
But You run a cron with curl ?
When run cron manually you get same error ?

What about php error_log when you run cron and get error.
 
Anyway in my case i found the problem with running the wp-cron.php through ssh:

/opt/plesk/php/8.3/bin/php /var/www/vhosts/<your-website.tld>/httpdocs/wp-cron.php

It throws the mentioned HTML and in the end:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10485760 bytes) in /var/www/vhosts/.........

so had to edit in Plesk (Tools & Settings) the PHP.ini of the used php version. After that my problem solved.
 
Back
Top