• Resolved jazzpark

    (@jazzpark)


    Hi,

    im getting error : always in “Monday cell”

    Warning: file_exists() expects parameter 1 to be a valid path, string given in /nfsmnt/hosting2_2/a/e/aeb1bc8d-c5b2-4ec3-98e5-ee317fb6a6f0/domain/web/wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php on line 108

    any idea what does it means?

    Thank you

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 14 replies - 1 through 14 (of 14 total)
  • I was getting the same error: It seems to be due to the plugin iterating it’s various “views” directories for template files – and sometimes the method returns an empty string. A temporary cowboy-style fix is replace line 108 of the file general.php like this:
    if ( strlen($file) > 0 and file_exists( $file ) ) {
    That gets rid of the whining – until the next plugin update…

    Plugin Author Brian

    (@brianjessee)

    Hi,

    Sorry for the issues here. I am not able to reproduce the issue.

    Does updating to 4.0 fix this?

    Let us know.

    Thanks

    Brian,

    thanks for your reply. Note that this is a PHP message at “Warning” level – if you have your PHP configured to not display warnings, you won’t see it.

    I have just updated the Website in question to Plugin 4.0, and will have to wait a bit and check the logs.

    Thanks,

    Tim

    Plugin Author Brian

    (@brianjessee)

    Hi,

    Thanks for that tip Tim.

    Let us know if it still is an issue in 4.0

    Thanks

    Hi Brian,

    that error seems to have gone away. I’m still getting quite a few segmentation faults from the website (“child 27922 exited on signal 11 (SIGSEGV) after 29.502707 seconds from start”), but heavens alone know what’s causing that.

    Just one question: My client has “the-events-calender” and “events-calender-pro” installed – is that correct, does one still need the standard version when pro is installed?

    Cheers,

    Tim

    BUT on another site with the same plugin, after upgrading Plugin and WP (to 4.4) now getting this in the log;
    [10-Dec-2015 16:54:38] WARNING: [pool sat-chit-ananda.de] child 2837 said into stderr: “NOTICE: PHP message: PHP Fatal error: Cannot use object of type stdClass as array in …/wp-content/plugins/the-events-calendar/src/Tribe/Main.php on line 1135”
    [10-Dec-2015 16:55:20] WARNING: [pool sat-chit-ananda.de] child 2859 said into stderr: “NOTICE: PHP message: PHP Fatal error: Cannot use object of type stdClass as array in …/wp-content/plugins/the-events-calendar/src/Tribe/Main.php on line 1135”
    [10-Dec-2015 16:55:26] WARNING: [pool sat-chit-ananda.de] child 2860 said into stderr: “NOTICE: PHP message: PHP Fatal error: Cannot use object of type stdClass as array in …/wp-content/plugins/the-events-calendar/src/Tribe/Main.php on line 1135”

    Do you have any drop on that?

    Thanks,

    Tim

    Brian,

    the problems directly above have not recurred. But I’m sorry to report that I see one more of these: file_exists() expects parameter 1 to be a valid path

    The website is running WP 4.4 and The Events Calender (+Pro) 4.0.1

    So seems it’s not fixed for all circumstances.

    Cheers,

    Tim

    Hi again,

    my nightly logs (WP 4.4 + Plugins 4.0.1) showed a high ocurrence of the problem noted above:

    PHP Warning: file_exists() expects parameter 1 to be a valid path, string given in …/wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php on line 106

    So I had to reinstate my cowboy fix noted above. Sorry about the bad news, but would be great to get an official fix.

    Another question: Is The Events Calendar compatible with PHP 7?

    Cheers,

    Tim

    Hi Tim. Thanks for all the reports. Since this thread is getting pretty deep and you said you have a PRO license, would you mind testing with the latest version 4.0.2 and posting in the Premium Support Forums if the issue still exists?

    Thanks.

    Thread Starter jazzpark

    (@jazzpark)

    Hi,

    I just updated my EC, but the warning is still there. Current version is 4.0.0.2

    Thread Starter jazzpark

    (@jazzpark)

    ..however Tim solution seem to be working, but I will wait some time because the error is occasional.

    @thank you Tim!!

    Plugin Author Brian

    (@brianjessee)

    Hi Jazzpark thanks for letting us know if it remains an issue please create your own topic and we can help out.

    Thanks

    Thread Starter jazzpark

    (@jazzpark)

    hehe this is my topic ??

    Plugin Author Brian

    (@brianjessee)

    Ha so it is…

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Error on line 108’ is closed to new replies.