Title: Error on line 108
Last modified: August 30, 2016

---

# Error on line 108

 *  Resolved [jazzpark](https://wordpress.org/support/users/jazzpark/)
 * (@jazzpark)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/)
 * 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://wordpress.org/plugins/the-events-calendar/](https://wordpress.org/plugins/the-events-calendar/)

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

 *  [Tim Reeves](https://wordpress.org/support/users/tim-reeves/)
 * (@tim-reeves)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797663)
 * 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 Contributor [Brian](https://wordpress.org/support/users/brianjessee/)
 * (@brianjessee)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797825)
 * 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
 *  [Tim Reeves](https://wordpress.org/support/users/tim-reeves/)
 * (@tim-reeves)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797826)
 * 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 Contributor [Brian](https://wordpress.org/support/users/brianjessee/)
 * (@brianjessee)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797828)
 * Hi,
 * Thanks for that tip Tim.
 * Let us know if it still is an issue in 4.0
 * Thanks
 *  [Tim Reeves](https://wordpress.org/support/users/tim-reeves/)
 * (@tim-reeves)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797834)
 * 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
 *  [Tim Reeves](https://wordpress.org/support/users/tim-reeves/)
 * (@tim-reeves)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797835)
 * 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
 *  [Tim Reeves](https://wordpress.org/support/users/tim-reeves/)
 * (@tim-reeves)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797836)
 * 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
 *  [Tim Reeves](https://wordpress.org/support/users/tim-reeves/)
 * (@tim-reeves)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797839)
 * 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
 *  [Clifford Paulick](https://wordpress.org/support/users/cliffpaulick/)
 * (@cliffpaulick)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797849)
 * 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](http://m.tri.be/rg) if the 
   issue still exists?
 * Thanks.
 *  Thread Starter [jazzpark](https://wordpress.org/support/users/jazzpark/)
 * (@jazzpark)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797850)
 * Hi,
 * I just updated my EC, but the warning is still there. Current version is 4.0.0.2
 *  Thread Starter [jazzpark](https://wordpress.org/support/users/jazzpark/)
 * (@jazzpark)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797856)
 * ..however Tim solution seem to be working, but I will wait some time because 
   the error is occasional.
 * [@thank](https://wordpress.org/support/users/thank/) you Tim!!
 *  Plugin Contributor [Brian](https://wordpress.org/support/users/brianjessee/)
 * (@brianjessee)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797864)
 * 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](https://wordpress.org/support/users/jazzpark/)
 * (@jazzpark)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797865)
 * hehe this is my topic 😛
 *  Plugin Contributor [Brian](https://wordpress.org/support/users/brianjessee/)
 * (@brianjessee)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797866)
 * Ha so it is…

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

The topic ‘Error on line 108’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 14 replies
 * 4 participants
 * Last reply from: [Brian](https://wordpress.org/support/users/brianjessee/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/error-on-line-108/#post-6797866)
 * Status: resolved