• Resolved Philosurfa

    (@philosurfa)


    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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Philosurfa

    (@philosurfa)

    agelonwl

    (@angelonwl)

    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

    Thread Starter Philosurfa

    (@philosurfa)

    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 : (

    Thread Starter Philosurfa

    (@philosurfa)

    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

    agelonwl

    (@angelonwl)

    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/

    Thread Starter Philosurfa

    (@philosurfa)

    About to give it a try.

    Thanks for the feedback.

    Philo

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warning message when displaying category lists’ is closed to new replies.