• Resolved i1100a

    (@i1100a)


    Hello,

    We’ve been getting this warning in our logs hundreds of time during a day:

    PHP Warning: include_once(): Failed opening 'includes/vendor/action-scheduler/action-scheduler.php' for inclusion (include_path='.:/usr/share/php') in /home/project/public_html/wp-content/plugins/mailchimp-for-woocommerce/mailchimp-woocommerce.php on line 39

    If we go to the mentioned line in mailchimp-woocommerce.php:

    if (!isset($mailchimp_woocommerce_spl_autoloader) || $mailchimp_woocommerce_spl_autoloader === false) {
        // require Action Scheduler
        include_once "includes/vendor/action-scheduler/action-scheduler.php";
        // bootstrapper
        include_once "bootstrap.php";
    }

    There is no vendor directory inside includes which is what triggers the failed included warning. Looks like it is something related to the autoloader conditional then? Any ideas on how could this be fixed? We would like to remove the warning from our logs since it generates considerable noise.

    Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Jordan Rich

    (@builtbyjordan)

    Thanks or writing in and letting us know about the warnings, While I can’t provide any details on a specific cause, I will get this directly to our development team to see what they think. Once I know more, I’ll update this thread.

    Plugin Author ryanhungate

    (@ryanhungate)

    @i1100a what version are you currently using for the plugin? The vendor directory should be there in your install if you’re on the latest ( which is 2.5.3 ) but it has been there for over a year too so that’s surprising that you’re not seeing it. Are you doing anything with composer which might be getting rid of other vendor folders? This is the first that’s been reported.

    @ryanhungate resolved this issue on my sites. I’m using pantheon.io. and version 2.5.4 of this plugin. I was getting this error due to the .gitignore file in this plugin excluding the ‘vendor/’ directory.

    Fixed by removing the following line from the .gitignore file:

    
    vendor/
    

    if we can see a fix for this in the next update to resolve this that would be great! thanks!

    Thread Starter i1100a

    (@i1100a)

    @ryanhungate Thanks for replyina and sorry it took me a while to reply, I’ve been swamped.

    I’m actually using wpackagist to handle plugins in the website repo.

    I agree with @codecdev2. It is probably the .gitignore file that is interfering with the vendor folder inside the plugin.

    I can confirm this is an issue on Pantheon and, I assume, anyone using Git with this plugin. The .gitignore file prevents the vendor folder from inclusion on the site resulting in errors since the plugin is looking for that folder.

    Please change this in the next plugin update.

    • This reply was modified 2 years, 8 months ago by jojobabrian.
    Plugin Support khungate

    (@khungate)

    Hi @jojobabrian, this should be fixed in our next release (v2.6.2) which will be rolling out soon. If you’d like to test our beta version in GitHub feel free to do so, but please take the necessary steps for backup since it’s not deemed ready for production.

    Thanks!

    Amazing @khungate. Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Warning: include_once(): Failed opening action-scheduler.php on line 39’ is closed to new replies.