Selecting grid for event_category template: enlightenment_is_lead_post error

Viewing 1 post (of 1 total)
  • #22869
    ronalde
    Participant

    Hi,

    When selecting one of the multicolumn grids for the event_category template provided by the “Event Organiser” plugin the error enlightenment_is_lead_post was called incorrectly is raised for each (custom post) item in that category.

    Because this problem only applies to the specific plugin supplied template, I understand this isn’t really your problem. Instead I’m looking for pointers to solving this myself.

    Regards,
    Ronald

    Details:
    – php version: 5.6.27
    – wordpress version: 4.7.2
    – enlightenment theme version: 1.1.4
    – event organiser plugin: 3.1.7

    Error message:

    
    ( ! ) Notice: enlightenment_is_lead_post was called <strong>incorrectly</strong>. This function can only be called inside The Loop Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version .) in /var/www/wordpress/wp-includes/functions.php on line 4136
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0000	240536	{main}( )	../index.php:0
    2	0.0001	240976	require( '/var/www/wordpress/wp-blog-header.php' )	../index.php:17
    3	0.3242	10153216	require_once( '/var/www/wordpress/wp-includes/template-loader.php' )	../wp-blog-header.php:19
    4	0.3259	10165376	apply_filters( )	../template-loader.php:73
    5	0.3259	10165768	WP_Hook->apply_filters( )	../plugin.php:203
    6	0.3262	10170568	call_user_func_array:{/var/www/wordpress/wp-includes/class-wp-hook.php:298} ( )	../class-wp-hook.php:298
    7	0.3262	10171216	EO_Theme_Compatabilty->template_include( )	../class-wp-hook.php:298
    8	0.3271	10204600	eo_get_template_part( )	../class-eo-theme-compatability.php:206
    9	0.3271	10205392	eo_locate_template( )	../event-organiser-templates.php:41
    10	0.3272	10207120	load_template( )	../event-organiser-templates.php:96
    11	0.3273	10227592	require( '/var/www/wordpress/wp-content/plugins/event-organiser/templates/eo-loop-events.php' )	../template.php:686
    12	0.3283	10313592	eo_get_template_part( )	../eo-loop-events.php:26
    13	0.3283	10314312	eo_locate_template( )	../event-organiser-templates.php:41
    14	0.3284	10315464	load_template( )	../event-organiser-templates.php:96
    15	0.3285	10335256	require( '/var/www/wordpress/wp-content/plugins/event-organiser/templates/eo-loop-single-event.php' )	../template.php:686
    16	0.3285	10335360	post_class( )	../eo-loop-single-event.php:19
    17	0.3285	10335992	get_post_class( )	../post-template.php:423
    18	0.3296	10340256	apply_filters( )	../post-template.php:543
    19	0.3296	10340824	WP_Hook->apply_filters( )	../plugin.php:203
    20	0.3297	10344456	call_user_func_array:{/var/www/wordpress/wp-includes/class-wp-hook.php:300} ( )	../class-wp-hook.php:300
    21	0.3297	10344544	enlightenment_set_grid_entry_class( )	../class-wp-hook.php:300
    22	0.3303	10346152	enlightenment_is_lead_post( )	../grid-loop.php:176
    23	0.3309	10348040	_doing_it_wrong( )	../grid-loop.php:197
    24	0.3309	10349312	trigger_error ( )	../functions.php:4136
    
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.