marcinolo
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: wp cron is not running my functionMichels idea triggered my idea that maybe some code is not available and the error just lets wordpress to remove the cron job without logging – BAD PRACTICE, or is there a wp cron log directory that I am not aware of?
Anyway with me, a plugin was not activated at cron job execution. I disable some plugins for other calls than admin, I load certain plugins especally for cron jobs, but the check for a cron job did not work.
The check if it is a cron job was url based (stripos($request_uri, ‘wp-cron.php’);) and it seems that with a linux solution that uses native cron jobs with sudo crontab -e generates no url.
So I did the check differently with php_sapi_name to check if the call was triggered by the command line(https://stackoverflow.com/questions/16702472/run-a-php-script-only-from-cron-or-check-if-request-from-cron). And voila, wp cron works as expected.
Again, just deleting a cron job in case of an error is very hard to debug… My assumption is – I do not dig deeper now – that some issues of disappearing cron jobs are related to errors that are never logged.
Probably my situation is very unique, but it took me hours to find it out, so maybe these short lines help someone else.
Forum: Plugins
In reply to: [Yoast SEO] structured data items are invalid after latest updateas well from my side on maskenplanet.de I use the yoast breadcrumb and receive an Semrush error “A value for the item.name or name field is required for a nested ListItem.”
@theinvisiblehan is it now a false positive or a real error?
I see yoast breadcrumb does not add structural data so far:
https://schema.org/BreadcrumbList
https://developers.google.com/search/docs/data-types/breadcrumb#htmlSo it seems it is a real error and yoast has not implemented the structural data yet? Any elaboration would be really helpful. I reach out yoast premium support as well.
Cheers,
MarcForum: Plugins
In reply to: [WooCommerce] Broken Woocommerce Product Category side widgetHi there maykato, thanks for this hint, that was what I was looking for. I wish you a great day. Marc