WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Warning message when displaying category lists (7 posts)

  1. Philosurfa
    Member
    Posted 1 year ago #

    Hi - Noticed a related post, but not sure if the issue has been resolved?

    Am seeing the following message when displaying lists of events under different categories -

    Warning: Creating default object from empty value in /homepages/46/d460955225/htdocs/International_Legal_English/wp-content/plugins/events-manager/classes/em-category-taxonomy.php on line 22

    Could it be that I have set something up incorrectly?

    Philo

    http://wordpress.org/extend/plugins/events-manager/

  2. Philosurfa
    Member
    Posted 1 year ago #


  3. agelonwl
    Member
    Posted 1 year ago #

    just to narrow down the problem have you tried to temporarily:

    - deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    - switching to the default theme to rule out any theme-specific problems

  4. Philosurfa
    Member
    Posted 1 year ago #

    Have just tried deactivating all plugins, except for EM and FullMenu, and switching theme from Twenty Ten to Twenty Twelve, but am still getting the same message : (

  5. Philosurfa
    Member
    Posted 1 year ago #

    Hmmm !

    Have been fiddling and think I might have found a crude fix, should anyone else encounter the same problem ...

    If I go to EVENTS, SETTINGS, PAGES, EVENT CATEGORIES and set Override with Formats to 'NO', then the error message mysteriously disappears!

    The problem is then that the lists of events in a particular category are presented as an archive,and thus have the text 'Blog Archives' as a heading, although I have managed to get around this by editing the theme's archive.php file (using APPEARANCE,EDITOR) to delete the text 'Blog Archives' (which guess I could have instead changed to something else, had I wanted).

    If anyone could suggest an explanation for/a more elegant solution to this particular problem, then please add a post.

    Philo

  6. agelonwl
    Member
    Posted 1 year ago #

    how about creating taxonomy template within your theme like taxonomy-event-categories.php and then try these snippet

    <?php get_header(); ?>
     <div class="post-inner">
     <?php
      global $post;
      $terms = get_the_terms($post->id, 'event-categories');
      if($terms) {
       foreach($terms as $em_term) {
         $EM_Category = em_get_category($em_term->term_id);
         ?>
         <h1><?php echo $EM_Category->output('#_CATEGORYNAME'); ?></h1>
         <?php
       }
      }
     ?>
     </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    http://wp-events-plugin.com/documentation/placeholders/

  7. Philosurfa
    Member
    Posted 1 year ago #

    About to give it a try.

    Thanks for the feedback.

    Philo

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic