• Resolved glennbennett

    (@glennbennett)


    I’m not sure, but I think all my events are recurring and non of them show. I get this error:

    Notice: Undefined property: EM_Event::$post_type in /home2/happeni4/public_html/happenings/wp-content/plugins/events-manager/classes/em-event.php on line 1295

    I see a comment in the code about not using the code at 1295. I don’t think I have any plugins calling the event code so it must be something internal.

    Also I’m using Buddypress and my events are all tied to groups.

    Thanks
    Glenn

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    actually it was going to be depreciated but it’s not anymore, just updated the comment now.

    where do you see this error? Do you not see your events anywhere on your site?

    If you have database access, you should check wp_em_events and your wp_posts tables to see that post_id is set for each event in the first table, and there should be a corresponding post in the wp_posts table with the same ID as post_id

    Thread Starter glennbennett

    (@glennbennett)

    it shows up one the /events page. I’ll check the database

    Thread Starter glennbennett

    (@glennbennett)

    I don’t see a post_id in the wp_em_events table. And I don’t see anything that looks like event info in the posts table.

    Also just a note: I upgraded to the new version via the standard WordPress upgrade system.

    Database structure:

    CREATE TABLE IF NOT EXISTS Md_em_events (
    event_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    event_slug varchar(200) NOT NULL,
    event_owner bigint(20) unsigned DEFAULT NULL,
    event_status int(1) DEFAULT NULL,
    event_name text,
    event_start_time time DEFAULT NULL,
    event_end_time time DEFAULT NULL,
    event_start_date date DEFAULT NULL,
    event_end_date date DEFAULT NULL,
    post_content longtext,
    event_rsvp tinyint(1) NOT NULL DEFAULT ‘0’,
    event_spaces int(5) DEFAULT NULL,
    location_id bigint(20) unsigned DEFAULT NULL,
    recurrence_id bigint(20) unsigned DEFAULT NULL,
    event_category_id bigint(20) unsigned DEFAULT NULL,
    event_attributes text,
    event_date_created datetime DEFAULT NULL,
    event_date_modified datetime DEFAULT NULL,
    recurrence tinyint(1) NOT NULL DEFAULT ‘0’,
    recurrence_interval int(4) DEFAULT NULL,
    recurrence_freq tinytext,
    recurrence_byday tinytext,
    recurrence_byweekno int(4) DEFAULT NULL,
    blog_id bigint(20) unsigned DEFAULT NULL,
    group_id bigint(20) unsigned DEFAULT NULL,
    PRIMARY KEY (event_id),
    KEY event_status (event_status),
    KEY blog_id (blog_id),
    KEY group_id (group_id)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=127 ;

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    what version of EM are you using? This table structure is 4.x structure, not version 5, so maybe your upgrade didn’t go well

    Thread Starter glennbennett

    (@glennbennett)

    The upgrade must have failed somehow. So I uninstalled the plugin which deleted all the tables and such and re-installed it and that seemed to work.

    I’m just starting over.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    After a bit of tinkering I can imagine a few people running into this, if this is what you have, and wrote some instructions – https://wp-events-plugin.com/blog/2012/01/05/events-gone-after-upgrading-read-this/

    Thread Starter glennbennett

    (@glennbennett)

    That was the case form me. I install using a script the generates random prefix for the database and in this case it generated Md_.

    Thanks for the update, but it comes a bit late for me.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    sorry, this one was not my fault ??

    Thread Starter glennbennett

    (@glennbennett)

    Sounds more like a WordPress problem.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    I think it is, pretty sure other plugins would have the same problem (not all plugins use dbdelta though so it’ll really limit the times this happens to ppl).

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Events Manager] No Events are showing’ is closed to new replies.