Issue with con & WP CLI in version 2.12.0
-
Hi
plugin: wp-product-feed-manager version
version: 2.12.0It looks like there’s an issue with the cron jobs running via WP CLI, like this:
wp cron event run wppfm_feed_update_scheduleWe get errors because wp-config.php is pulled in again, and constants like DB_NAME are already defined.
Request. In your “/includes/application/wppfm-cron-functions.php” file, could you please amend line 18 so it reads like this (or equivalent)?
// Include the required WordPress files.
defined( 'WP_CLI' ) || require_once ABSPATH . 'wp-load.php'; // << Check for WP CLIIn theory it shouldn’t be necessary because you’re using require_once, but in our tests, this eliminates the error. For reference, we’re running in a JailKit chroot’d file system.
Thanks
Paul
The topic ‘Issue with con & WP CLI in version 2.12.0’ is closed to new replies.