Fatal Error

Home Forums Calendar Products Events Calendar PRO Fatal Error

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #24916
    Kim
    Member

    Good morning. I upgraded to The Events Calendar 2.0.8 and Event Calendar Pro 2.0.8 and now when I click on the calendar tab on our website, I get the following:

    Fatal error: Call to a member function get_event_taxonomy() on a non-object in /nfs/c07/h01/mnt/111542/domains/northsidebc.com/html/wp-content/themes/nsbc/events/table.php on line 10

    Can anyone help me fix this? Thank you.

    #24951
    Barry
    Member

    Can you copy the contents of that file (themes/nsbc/events/table.php) to a service like Pastebin so we can take a peak?

    It may be that you need to copy the table.php file from plugins/the-events-calendar/views and place that in your theme’s events sub-directory, taking care to ensure any customizations are replicated in the new version of the file.

    #24952
    Kim
    Member

    Barry, I would love to do what you are asking me, but I have no idea how. I don’t know where that file resides.

    #24954
    Barry
    Member

    Well, judging by the error you reported if you can navigate to the “html” directory you should find that this contains a directory called “wp-content”.

    Within wp-content you will find both the “plugins” directory (which contains “the-events-calendar”) and the “themes” directory (which will contain your active theme – “nsbc”).

    I’ve tried to map it out here http://pastebin.com/nffi0PCW … Does that help at all, or is it still clear as mud?

    #24963
    Kim
    Member

    The error I sent you is what appears on the page when I click on the events calendar link on our website. I just copied and pasted it from there. So I don’t know how to get where you need me to look.

    #24964
    Barry
    Member

    OK, well often there is a file manager built into your web hosting control panel – so you could use that, or you could use a piece of software called an FTP client.

    If you aren’t sure what either of those are, or are unsure how they work, then I’d be happy to take a look on your behalf. The only possible problem with that is it is sounding like everything was set up on your behalf by a web designer/developer – if so, perhaps he or she customized things to meet your/your business’s precise requirements.

    For that reason I would be reluctant to make any sweeping changes that might destroy said customizations.

    If you do want me to try and fix this, bearing in mind that there is a risk this might negate any custom work you’ve had done, please feel free to email me at [email protected] – making sure to mark your email for my attention.

    #26796
    Barry
    Member

    Hi Dawn/Kim!

    I’m not sure why this topic was closed (possibly it happened automatically after a certain amount of time with no further posts) however I have now re-opened it – it just makes it easier to keep things all in one place.

    > Also, I tried to update the calendar to 2.0.9 version but when I open WP it says that all plugins are up to date and I don’t see where to update it on the plug in itself?

    So if you login to your WP dashboard and view the list of Plugins you should see a version number under each plugin. If The Events Calendar and Events Calendar PRO are already at 2.0.9 then we’re all good and you need take no further action in this regard.

    > Is this the edit theme your looking for? http://pastebin.com/TC1GK383

    Yep, that looks like the culprit.

    Here’s the thing – that looks like it relates to a much older version of our plugin, hence it is causing the fatal error. So what we need to do is replace this with the latest version of events/table.php.

    If you’ve successfully updated to 2.0.9 (and I think you might have done) then the idea is to copy this file:

    wp-content/plugins/the-events-calendar/views/table.php

    And place it in your theme’s events folder:

    wp-content/themes/YOUR_THEME/events/table.php

    If it helps, this is how table.php should look: http://pastebin.com/1J8R9FYv

    #27394
    Kim
    Member

    Hi Barry,
    I have finally gotten the 2.0.9 version of the event calendar and the event calendar pro. I have also updated the wp-content/themes/YOUR_THEME/events/table.php to the http://pastebin.com/1J8R9FYv that you send to me. I do finally have events showing on that page but the page is messed up looking: http://northsidebc.com/events/
    As you can see there isn’t an actual calendar background showing and the event list and calendar list is in the middle of the navigation (latest posts) as well as there being two headings and “wood bars” on the page.
    The event list mode looks a bit better but the event titles are huge and again it overlaps the latest posts section. We don’t need that navigation on that page at all.
    Can you help me fix this? This is all a bit out of my league 🙂
    I do still have an old events calendar pro 1.3.1 listed in my installed plugins, but it is deactivated – but, do I need to delete that one?
    Dawn

    #27395
    Barry
    Member

    Hi Dawn – yeah that does look a touch untidy.

    Can I ask you to login to your dashboard and navigate to Events > Settings > Template … what is the Events Template option set to? If you experiment with this a little (at the least try switching between Default Events Template and Default Page Template) do you get any closer to the result you want?

    #27402
    Kim
    Member

    Hi Barry,
    I changed it to Default Events Template and it did get rid of the navigation issue, but there is still no actual calendar template. I looked in the templates and found a template called events-list-load-widget-display.php. Here is the content of it:
    http://pastebin.com/a6jy9m7j
    I am confused as to why we had a calendar before, but don’t have one now after upgrading. Are we now missing some sort of code for that? If I give you our login to the site can you fix this issue?
    Blessings,
    Dawn

    #27404
    Barry
    Member

    If you look in the plugin directory itself and then within the views directory, so:

    wp-content/plugins/the-events-calendar/views/

    You should see the following templates:

    • ecp-page-template.php
    • ecp-single-template.php
    • events-list-load-widget-display.php
    • full-address.php
    • gridview.php
    • list.php
    • single.php
    • table-mini.php
    • table.php

    Since you have upgraded, please also check your theme’s events directory – the path to which will be something like:

    wp-content/themes/{YOUR-THEME}/events/

    If any of the above template files are contained in here, and are “left overs” from an earlier version of The Events Calendar, then you may need to replace them. For instance if ecp-page-template.php is in your theme’s events directory and it is not the same as the template found in the plugin’s views directory then you may have to overwrite the theme version with the latest plugin version (or delete that directory from your theme).

    Does that help?

    #27454
    Kim
    Member

    I can’t find wp-content. I get this message:
    Forbidden
    You don’t have permission to access /wp-content/plugins/the-events-calendar/views/ on this server.
    Apache/2.2.22 Server at northsidebc.com Port 80

    All I can get to is wp-admin…. I see the templates that you listed in the edit plugin “the event calendar” but they all say inactive. The event calendar plugin itself is active in my plugin list but when I go to the edit plugin each of these php files are listed as inactive. Is this correct? If not, how do I activate them.

    Also, when I go to edit theme’s section I don’t see a specific events/directory to edit. The files that you listed above are in my edit themes section, but I am not sure how to overwrite the theme with the latest plugin version.
    I see where it says: “you can customize this view by putting a replacement file of the same name (events-list-load-widget-display.php) in the events/directory of your theme” but I have no idea how to do that and I am not sure which .php files need to be where?
    I don’t see any events.php listed?
    At this point I am totally confused and don’t know how to make this calendar work.

    #27462
    Barry
    Member

    Hi Dawn/Kim,

    I’m really sorry for the confusion. What I didn’t mean was to try and navigate to the plugin directory via a web browser (which by the sounds of it is what you tried).

    Instead, I meant you should use either your web host’s file manager or a piece of software called an FTP client (but probably the web host’s own file manager, if they have one, will be easier here).

    You see, WordPress as a piece of software is made up of lots of different files: often these cannot be accessed via the browser. I think the problem here is that an older and now incompatible file is present and that is causing this problem, so it needs to be removed and replaced with a newer, working copy (hence my above instructions).

    I appreciate that you probably don’t want to be dealing with this level of complexity and in the normal running of things you would not need to do so. Did someone originally set the site up on your behalf and can you approach them now for help?

    #27465
    Kim
    Member

    Yes, we paid someone create the site for us and if we make any changes he charges us by the change plus the hour. Is there any way that I or you can fix it without going through the developer? If not, is this something that should take a lot of time?

    #27466
    Barry
    Member

    It shouldn’t take very long at all.

    Perhaps you work with someone else who is handy with this kind of task and you could refer them to my above instructions?

    If not, it may be that you do indeed need to engage a professional to help you out here.

Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘Fatal Error’ is closed to new replies.