Ok, so it turns out the solution is slightly embarrassing on my part and I couldn’t see the forest for the trees.
The code that was executed by the cron job was trying to check the contents of a variable that is set via a radio button on the admin / plugin activation page.
Thus, the part of the code to save the image (inside an if statement) was not being accessed.
It just goes to show how much of an issue a small error can become when there’s no access to any error logs or outputs.
Related Posts:
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- Schedule WordPress Auto-Updates to only run during business hours
- What happens when wp_cron is deactivated in WordPress?
- Updating WooCommerce variable product stock issue
- wp_schedule_event / cron_schedules – custom recurrence time not working in Plugin
- wp_schedule_single_event function not working
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- Why is wp-cron only executing on page visit?
- After plugin options changed hook
- Does using WP-cron make the site slower for the user?
- wp_schedule_single_event not working: cron job is triggered but nothing gets executed
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- How to set intervals in cron jobs?
- WordPress Console Application (ability to excecute a custom function via crontab only)
- Plugin scheduled event not working
- Switch from wp-cron to a server cron job
- I’m looking for a plugin to execute a specific task a certain time
- What causes wp_schedule_single_event to fire off?
- How can i find the cron jobs that run on my site and then move them to the server side?
- WordPress cron job running more than once
- WP Import All Multiple Dynamic Link Imports
- Cron: Update four post at Hour
- Activate Plugin Automatically After Set Time
- Cron task gets removed from the schedule
- my hook or my function wont run in the cronjob
- Cron job shedules replace?
- WP_CRON issue with UTC and local time
- Run a Change Role Cron Job on WordPress via cPanel
- Better way to run heavy scripts using WordPress database
- Cron job emails blank
- WordPress Cron function is not working
- WordPress crob job performance
- Adding custom cron_schedule prior to wp_schedule_event
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- WordPress plugin archive
- Namespaces in WordPress – How do I initiate the main class?
- Plugin readme.txt and assets internationalization
- Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload
- post expire after x days
- MailChimp integration that allows users to select from multiple lists [closed]
- How to handle autoloading with composer by keeping the WordPress naming conventions?
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- filemtime() warning when enqueuing style within plugin
- Minimum PHP Required for WordPress
- tag breaks shortcode output (other solutions don’t work)
- How to display custom sidebar in wordpress 5.5.2
- woocommerce_package_rates not fired when wordpress woocommerce accessed as non ajax
- Delete query not working in plugin
- SEO Friendly URL on dynamic product page produced via shortcode
- WP All Import – Execute Imports
- Migrating hosts, 500 errors and plugin issues
- background images WP Supersized on homepage
- Caching RSS plugin data
- Add simple Nivo Slider to wordpress site
- Limit the amount of words displayed by the Latest News plugin, or recommend an alternative [closed]
- Plugin to hide image in excerpt
- Is there a plugin that lets users request an account on the site? [closed]
- easy steps to make front end form without plugin
- Editing a text file from plugin menu
- Does using `add_action( ‘init’…` cause performance issues?
- How to connect rating to individual comments?
- Why is Google Search Console getting X-Robots-Tag noindex?
- How to create plugin/ page that reads from database
- Insert ads below the title
- WordPress Active Plugins
- How to add filter for wordpress plugin?
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- WordPress meta-box and checkbox-list
- Two WooCommerce installations on the same server, one sends customer emails but the other does not
- Better WP Security plugin blocking calls using file_get_contents() method
- Multiple Post Thumbnails Plugin – Need help with code
- WordPress Following? Social Users?
- Excluding specific post from custom next/previous theme function
- Update existing post dates to random dates and time
- Revision featured image
- How can I send the mail once?
- Is it okay to make a plugin to the WordPress repo, but limit it’s actions to maximum N events?
- WordPress Dashboard add user password not working, etc
- Woocommerce product variation price: How to change price dynamically through hooks
- Add external javascript to post template
- AJAX update fails for public/non-admin users
- Check if plugin is active outside of admin screen
- WordPress Product Detail and catalog
- Translating Website
- I dont know why my localization is not working
- User upload fields
- Plugin does not not load code when not used (which is good) > Elementor
- How to add wordpress plugins in along with my standalone theme
- Create Database Tables on Plugin Activation hook
- Delivering Page Templates With Plugins
- Change page according to fetched GET Parameters
- Is there a way to add a custom input field for every taxonomy term in WP post editor?
- Where did the “WP-Custom” plugin go?
- Plugin keeps saying needs to be updated and it’s in a constant loop [closed]
- wp plugin not working after website live
- Replace Dash (-) and Underscore ( _ ) with Space
- Code snippet plugin not working correctly with Windows live writer and WordPress
- Jquery based image accordian plugin
- Oxygen plugin wordpress stuck in loading sequence forever when trying to edit a page [closed]
- plugin doesn’t retrieve data from database