Function problem after upgrade – tribe_is_week

Home Forums Calendar Products Events Calendar PRO Function problem after upgrade – tribe_is_week

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #236263
    Patti
    Participant

    Picked a slow time of day for the website to finally do the TEC & ECP 3.6.1 upgrade on a very active site. I did the upgrade on my test site last week found & fixed all the problems, so I knew what to expect & how to fix it. Unfortunately, things didn’t work out the way I would have liked.

    After applying the updates all the fixes on the active site, I’m getting an error message, “Fatal error: Call to undefined function tribe_is_week()” and this coming from one of the theme include files which also references functions tribe_is_day and tribe_is_event_category. No problems with those two.

    I’m sure the problem is with ECP and not TEC because the TEC upgrade is in place and working. The odd thing is I never got that error on the test site which is a complete replica of the working site. Same *everything* – except for the fact that the update on the active site is being applied via the dashboard and on the test site it was done via upload.

    Is it possible that the dashboard upgrade is doing something to corrupt the files and causing the problem? BTW – I tried upgrading both ways – via the plugin panel & via the updates section.

    Anybody else have this problem? Any ideas?

    #238128
    Barry
    Member

    Hi – I’m sorry it didn’t go smoothly for you.

    Can you provide the complete error message relating to tribe_is_week() – and do you recall if you have any customizations (possibly living in your theme’s functions.php file) that use that specific function?

    #238175
    Patti
    Participant

    Sorry, no, I can’t give you the exact error message, but it was regarding what I stated in the OP, “Fatal error: Call to undefined function tribe_is_week()…” and then it gave the line number & file name where the error was occurring.

    As I stated above, “this coming from one of the theme include files which also references functions tribe_is_day and tribe_is_event_category. No problems with those two.” Those are being used to determined which sidebar, if any, shows up based on what type of page it is (day, weekly, monthly) and that code is based on something I found here in the forum.

    There is a custom functions file, but nothing in there would have anything to do with what is occurring here. The functions there that have anything to do with ECP handle adding tribe date & organizer to the results, remove the ‘before’ html on a single event, remove the ical import link, put the meta walker back in (to salvage the hours of work I did earlier this year), remove “other meta” from view (the work I did earlier this year), remove ‘location’ from events filter bar, remove link from venue. There are some other functions in that file that relate to WP, and are there for security reasons.

    Regardless of what is in the functions file, the fact remains that it’s not happening on the test site which has an identical set of files & plugins in place and is using the same versions of php & mysql. And when I say “identical” – I mean identical. Before I do any upgrades, I make backups of my org. site, then I install the backups on my test site and do the upgrades there first. This problem is not happening on the test site.

    Any of that help?

    #238294
    Patti
    Participant

    I just found another issue with the working site and that is when you click on the link to view all events for a day, nothing shows up. I’m completely stumped now. Nothing on that server has changed other than the updates to the TEC & ECP, and I restored the plugin folders.

    #238361
    Patti
    Participant

    I put the site into maintenance mode, deleted the existing TEC & ECP folders, re-uploaded the original backed up folders manually. Did the update through the dashboard. No more problems. Not sure what was going on other than maybe something got corrupted in the first attempt. Or gremlins. *shrug*

    #244564
    Barry
    Member

    OK, well I’m glad everything worked out in any case 🙂

    I’ll go ahead and close this thread – but of course if we can help with anything else please don’t hesitate to create new threads as needed. Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Function problem after upgrade – tribe_is_week’ is closed to new replies.