Fatal errors on our website

Home Forums Calendar Products Events Calendar PRO Fatal errors on our website

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #1136500
    Chris
    Participant

    Hey there,

    we are encountering fatal errors on our site. After investigation it really looks like the event calendar plugin in the bad guy.

    Earlier today someone got this error message when visiting our site:

    2016/07/07 01:24:03 [error] 1981#0: *784505 FastCGI sent in stderr: “PHP message: PHP Fatal error: Call to undefined function tribe_is_week() in /var/www/vhosts/you-can-fight.com/httpdocs/wp-content/themes/Avada/functions.php on line 261” while reading response header from upstream, client: 5.189.131.55, server: you-can-fight.com, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:///var/www/vhosts/system/you-can-fight.com/php-fpm.sock:”, host: “www.you-can-fight.com”

    Our admins work around a little bit.

    The site now shows up again.

    However, all internal links on the homepage do not work any more. You’ll always be redirected to the homepage while you can see the correct links when hovering them.

    Plus, when activating the event calendar plugin, it crushes down part of our homepage.

    (please see attached pic)

    Can you please help asap.

    We are afraid of deleting the plugin. Will we lose all our hard work created events?

    #1136863
    Brook
    Participant

    Howdy ycf,

    I would love to help you with this.

    PHP message: PHP Fatal error: Call to undefined function tribe_is_week() in /var/www/vhosts/you-can-fight.com/httpdocs/wp-content/themes/Avada/functions.php on line 261

    That specific error is coming from the Avada theme. Avada evidently expect Events Calendar Pro  to be installed and activated on your site. If it is not active this error will appear. Have you tried activating Events Calendar Pro? Do a lot or all of these errors/glitches go away?

    Thank you for sharing that one error message above. If there are more error messages after activating Pro, we you mind sharing those ones as well? That will shed a lot of light on this issue.

    Cheers!

    – Brook

    #1137101
    Chris
    Participant

    Hi Brook,

    thank you for your assistance.

    To clarify:

    The error message mentioned above does not show up any longer. It showed up yesterday morning when we first were informed about the error by one of our clients.

    When we now activate the events calendar plugin and the events calendar pro plugin, the only thing that changes is that the content on our homepage is crushed.

    Please see before and after pics attached.

    Most concerning is that no links on our homepage work anymore.

    What to do?

    #1137129
    Chris
    Participant

    Hey Brook,

    since I’m also in ongoing contact with Avada on this issue, this is what they just replied:

    Hello @ChrisYCF!

    Interestingly enough, I found this thread that was created only a month ago about the same issue:

    PHP Fatal error: Call to undefined function tribe_is_week()

    I would include that link in your message to Modern Tribe as it may help them figure out what’s going on here. Avada only calls that function if the plugin is installed and if the plugin is installed, then the function should exist.

    Could you please let me know when you hear back from Modern Tribe with what they recommend?

    #1137244
    Brook
    Participant

    Could you please let me know when you hear back from Modern Tribe with what they recommend?

    I just got a fresh copy of Avada to investigate the tribe_is_week() issue he is referring to. What I would do is replace their current function:

    function is_events_archive() {
       if ( class_exists( 'Tribe__Events__Main' ) ) {
          return ( tribe_is_month() || tribe_is_day() || tribe_is_past() || tribe_is_upcoming() || ( class_exists( 'Tribe__Events__Pro__Main' ) && ( tribe_is_week() || tribe_is_photo() || tribe_is_map() ) ) );
       }
       return false;
    }

    With this slightly simpler one:

    function is_events_archive() {
       if ( function_exists( 'tribe_is_event' ) ) {
          return ( tribe_is_event() && is_archive() );
       }
       return false;
    }

    It does the same thing, supports all our current archive views and should work with future ones as well! Best of all it won’t generate errors.

    Thank you for playing the go-between for our support teams. Sorry to get you involved here. Their team should have access to our support forums for questions. And I know some members from both parties have talked on Skype and such before. But it is quite likely that not everyone on their support staff has our contact info, and I know I don’t have their contact info. 🙂

    The error message mentioned above does not show up any longer. It showed up yesterday morning when we first were informed about the error by one of our clients.

    When we now activate the events calendar plugin and the events calendar pro plugin, the only thing that changes is that the content on our homepage is crushed.

    I really appreciate the screenshot. That is very strange. In order to find a fix for this I will need to be able to inspect the problem with my browser. I know it’s a pain, but could you leave the plugins active for the rest of today so that I can inspect it and get back to you. I’ll need to inspect it in my browser to find a fix. I will be online for another 6 hours. So I will do my best to checkin before the end of the day and find a fix. Or if that does not work, maybe we could do it the start of next week?

    Cheers!

    – Brook

    #1137386
    Chris
    Participant

    Awesome Brook,

    I appreciate both of you doing a great service. Let me do my best do play the man in the middle. It’s important for us to have our website running again asap for we are losing money by the hour.

    I have forwarded you last message to Ryan from Avada.

    We have also activated the plugins as you requested.

    Just to clarify, is it on us to replace the function you mentioned, or is it something the Avada guys should do?

    #1137731
    Chris
    Participant

    Hey Ryan,
    Hey Brook,

    just to let you know.

    We fixed the link issue by ourselves.
    Seems it had nothing to do with Avada or event calendar.

    So only the crushing issue remains.

    We’d appreciate a quick solution here.

    What’s the state of affairs?

    #1138532
    Brook
    Participant

    Howdy ycf,

    I am sorry I just missed your response on Friday. 🙁

    I see your alert about the design issue on the site, but it is rendering perfectly for me. No squashing occurring, the site is full-width.Capture

    What web browser/device are you seeing this “squashing” in? It seems probable that is limited to only certain web browser.

    Cheers!

    – Brook

    #1138538
    Chris
    Participant

    Hi Brook,

    yeah, it seems to be fixed at this time because of Ryan’s intervention.

    Here’s what he wrote.

    Hmm, that’s strange. The page template is assigning both the 100% width and the dual sidebar classes. I can’t see anything that would cause both of these to be assigned, but I went ahead and added some custom CSS to ensure that the 100% width styling is applied to that class. Can you please confirm that it’s working on your end for me?

    Thanks!

    So it looks like we are done for the moment. Hope this will not occur again after any update of the theme or the plugin.

    Thank you so far.

    #1138549
    Brook
    Participant

    Oh very good, I am happy he was able to get you there. That does sound strange, not something I’ve seen in the Avada theme before.

    I’ll leave this open for a couple weeks just in case it crops back up. Thanks for getting back. Cheers!

    – Brook

    #1138550
    Chris
    Participant

    Perfect, thank you.

    #1138614
    Brook
    Participant

    You are welcome!

    #1138657
    Chris
    Participant

    HeyRyan,
    Hey Brook,

    I’m sorry, it does not work that way.

    Just look at

    https://www.you-can-fight.com/tickets-cologne/

    or
    https://www.you-can-fight.com/kravmaga/krav-maga-koeln-zollstock/

    these sites are still crunched.

    We’d really prefer a clean solution without code fumbling all the time.

    #1139262
    Luke
    Participant

    Hello!

    We are aware of this issue as a ticket was created with us for Avada. The good news is we have it fixed and it will be part of the next update.

    Cheers
    ThemeFusion

    #1139461
    Brook
    Participant

    Thanks for letting us know Luke! If you guys need anything from us please don’t hesitate to shout, and the same goes for you YCF.

    Cheers!

    – Brook

Viewing 15 posts - 1 through 15 (of 18 total)
  • The topic ‘Fatal errors on our website’ is closed to new replies.