Issue with REST API (context query)
-
I’ve had this site up for a few years now; up until a couple of weeks ago everything worked just fine. I’m running a couple of sites on the same machine with Apache Virtual hosts; my current setup, since I’m running a few different servers, is Cloudflare→Apache Reverse Proxy→Wordpress. What I’m running into, and currently banging my head against, is two recommended improvements:
- A scheduled event, *fill in event*, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended
- The REST API did not process the context query parameter correctly
Problem is no cron jobs are running, so no scheduled email sends for upcoming appointments, events, virtual meetings, etc. I’m not a programmer or web guru; I’m doing this on the side for a personal business and have, up until now, been able to troubleshoot and solve most issues, but this one is being persistent. I’ve got another site, on another virtual host, set up exactly the same way, from Cloudflare through the Apache reverse proxy to the virtual host, and it has zero issues.
So far, I’ve disabled all plugins and reverted to a default theme (Twenty Twenty-Three), disabled Cloudflare protection, reverted to a complete backup from when the REST API worked, and event deleted the entire WordPress directory and started from a fresh install, all to no avail. Even the fresh install, with a blank database and no plugins, reported the same 2 errors.
I’ve enabled the debug log, and nothing shows up but 1 deprecated php issue that I fixed. Apache error logs aren’t throwing anything either. I’ve switched the cron queue to the system cron, bumped the WP memory and PHP memory, bumped the PHP timeout, ran through a few different plugin conflict checkers (which found absolutely nothing), but still no luck. Emails and notifications in response to an action (account registration, booked appointment, etc.) send just fine, and work just fine, but anything relying on WP cron is not working.
Everything is up to date, running php 8.0 and WP 6.2 on Ubuntu. I’m inclined to believe maybe this is an issue with the reverse proxy/VH setup in Apache, but I don’t understand why another site with the same configs, albeit fewer plugins, works perfectly fine.
At this point, sorta at a loss. I don’t understand why a backup, which I know for 100% certainty, worked just fine, doesn’t work. The only thing I can figure is that I did have an issue with the hard drive of the machine running both sites at the end of March that required a complete wipe and restore, and that I may not have set up the Apache VH config the same, but I still can’t figure out why one site would work after the restore but not the other.
- The topic ‘Issue with REST API (context query)’ is closed to new replies.