• Resolved Paul

    (@headwall)


    Hi

    plugin: wp-product-feed-manager version
    version: 2.12.0

    It looks like there’s an issue with the cron jobs running via WP CLI, like this:

    wp cron event run wppfm_feed_update_schedule

    We 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 CLI

    In 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Hi Paul,

    Thank you for bringing this to our attention and for providing a detailed explanation along with a suggested fix.

    We appreciate your input, and I want to let you know that we will implement this change in our development branch. The fix should be included in the next update of the plugin.

    I assume you have already made this change to the version you are using, so providing a patch is not necessary. However, if you need any further assistance, feel free to reach out.

    Best regards,
    Michel

    Thread Starter Paul

    (@headwall)

    Hi Michel

    Thanks for your prompt response. We have patched it at our end for now and look forward to the next release.

    Have a great day

    Paul

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Issue with con & WP CLI in version 2.12.0’ is closed to new replies.