• In em-functions.php, the wrong names are used for the database option names when getting the event and location grid format header and footer. This means that if the user has defined grid format headers and/or footers in /user/wordpress/wp-content/themes/my-theme-of-choice/plugins/events-manager/formats, the relevant files won’t be found.

    Luckily, this is an easy fix, as shown below, where the fix is given in bold and line numbers (for EM 6.4.5.1) are shown in square brackets.

    [892] function em_output_events_view( $args, $view = null ){
    …
    [911] if( empty($args['format_header']) ){
      $args['format_header'] = get_option('dbem_event_grid_item_format_header');
    }
    [914] if( empty($args['format_footer']) ){
      $args['format_footer'] = get_option('dbem_event_grid_item_format_footer');
    }
    …
    }
    [954] function em_output_locations_view( $args, $view = null ){
    …
    [973] if( empty($args['format_header']) ){
      $args['format_header'] = get_option('dbem_location_grid_item_format_header');
    }
    [976] if( empty($args['format_footer']) ){
      $args['format_footer'] = get_option('dbem_location_grid_item_format_footer');
    }
    …
    }

    Essentially, the database option names are missing _item between _grid and _format. Easy mistake to make.

    As far as I can tell, the correct database option names are used elsewhere.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pandammonium

    (@pandammonium)

    This bug is not fixed in v6.4.6.

    Function em_output_events_view() is now on line 895.

    Function em_output_locations_view() is now on line 957.

    Thread Starter pandammonium

    (@pandammonium)

    This bug is not fixed in v6.4.6.1.

    The line numbers of the affected functions are the same as in v6.4.6.

    Thread Starter pandammonium

    (@pandammonium)

    This bug is not fixed in v6.4.6.3.

    Function em_output_events_view() is now on line 896.

    Function em_output_locations_view() is now on line 958.

    Thread Starter pandammonium

    (@pandammonium)

    Speaking of errors, I got the filename wrong; not sure how. Amyway, this is the correct filename:

    /user/wordpress/wp-content/themes/my-theme-of-choice/wp-content/plugins/events-manager/em-functions.php

    Sorry about that.

    The bug hasn’t been fixed in v.6.4.6.4.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bug in DB option names for grid format header/footer’ is closed to new replies.