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 “wp cron event run” as Siteground cron job
- Cron Job not working
- Long running tasks in a plugin: wp-cron vs REST API callback [closed]
- Which approach for managing automatic updates would be more robust?
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- Get plugin directory from a theme
- How to edit a wordpress plugin without break its update process
- Recommended eCommerce Plugin for a T-Shirt Sales Business? [closed]
- Rewriting every url
- GPL and plugins
- Redirection Plugin: Redirect all URLs with a regular expression
- Automating deprecated call checks?
- How can I make my custom shortcode work in a Custom HTML Widget?
- Plugin updates are not shown
- post_id always wrong in plugin
- How to un-attach rich text editor from named textarea elements
- Post source link plugin – small modification
- How to add users roles dropdown in registration in wordpress
- Which hook callback has priority if both plugin and theme use the same hook?
- Send Data to WordPress from kiosk
- how to not show plugin in admin area
- Memory Leak in plugin action
- Adding a form at the end of the content
- Getting User email on logout. wp_logout
- delay function on publish?
- Can a plugin add to header/footer/body content?
- Login with email (WP Modal Login)
- Creating a wordpress plugin where users can override templates
- How to get CMB2 to show a single image at a specific size
- How to set CORS header?
- How Can A Plugin Hook Itself To the End of Every Excerpt?
- Allow Facebook to preview posts before published
- Can I run multiple queries with $wpdb->prepare?
- Get Plugin Information from Multiple Sites Externally
- How do I remove the entire left nav bar in admin for certain level users?
- Getting a 404 when trying to load /wp-admin/plugin-install.php
- custom_list_table edit/delete bulk actions
- javascript onload calling a function of a plugin
- How to integrate blog status?
- What plugin will allow me to redirect 404 errors to a specific page?
- add action for displaying posts using a shortcode
- May i Use ShortCode in Template?
- Best way to hook a custom url?
- plugin ajax to external php file always return null
- Changed permalink structure. Need help with redirecting old posts
- Change permalink structure hidden button edit
- How to load plugin after page is loaded – pagespeed issues
- Plugin “WP Attachments” outputs after the_content, how can I best change the location?
- How to Add custom subtitle as og:title to Facebook Open Graph Meta Data in WordPress Themes?
- Theme and plugin install or update display error in localhost
- Multiple sites, multiple countries
- How can I change a plugin’s URL?
- How can I make use of WP Mobile Detect conditions from within a plugin?
- Facebook-like Notification Plugin for WordPress Community Blog Sites?
- Custom rewrite rules not working with WPML
- Nextcloud integration with wordpress
- Display by Category in Admin
- Yoast SEO plugin “could detect no serious SEO problems” on dashboard
- How to enable unlimited course retake for limited time in LearnPress?
- Limit post creation by role
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- Editing a plugins element.style
- WordPress continually requests pages from itself
- How to handle cookies from a WordPress plugin on a cached page?