500 Error
Hi, I've tried everything to troubleshoot this error and no luck.
My regular post grids are working (except for custom taxonomy below), but I get an HTTP Error 500 on the page that displays my filterable post grid : https://x-libris.xf-redux.com/lengths/
I cloned the post grid used on that page. When I changed it to standard it showed a post grid (with no filters etc). When I changed it to collapsible to see what happened I got an empty page: https://x-libris.xf-redux.com/test1/
The lengths page was working from 28 April when I created it, until I recently updated the plugin.
Custom taxonomy: when I originally set up the post grids they had a custom taxonomy displayed. This no longer shows due to a php error. The option to select a custom taxonomy for the old post grid is no longer there, I only have "general" options. I tried setting up a custom taxonomy under "advance > taxonomy and terms" in the new tax grid and it doesn't display. I can't find any instructions for Elements - advance to see if I've done something wrong. The error I'm getting is:
ltrim() expects parameter 1 to be string, object given
Plugin: post-grid-pro
wp-includes/formatting.php:4313
ltrim()
wp-includes/formatting.php:4313
esc_url()
wp-includes/formatting.php:4414
esc_url_raw()
wp-content/plugins/post-grid-pro/includes/layout-elements.php:634
post_grid_layout_element_custom_taxonomy()
wp-includes/class-wp-hook.php:287
do_action('post_grid_layout_element_custom_taxonomy')
wp-content/plugins/post-grid/templates/post-grid-hook.php:516
post_grid_item_layout_content()
wp-includes/class-wp-hook.php:287
do_action('post_grid_item_layout')
wp-content/plugins/post-grid/templates/post-grid-hook.php:403
post_grid_loop()
wp-includes/class-wp-hook.php:287
do_action('post_grid_loop')
wp-content/plugins/post-grid/templates/post-grid-hook.php:299
post_grid_posts_loop()
wp-includes/class-wp-hook.php:287
do_action('post_grid_container')
wp-content/plugins/post-grid/templates/post-grid-hook.php:75
post_grid_main_container()
wp-includes/class-wp-hook.php:287
do_action('post_grid_main')
wp-content/plugins/post-grid/includes/classes/class-shortcodes.php:36
class_post_grid_shortcodes->post_grid_new_display()
wp-includes/shortcodes.php:343do_shortcode_tag()
Unknown location
preg_replace_callback()
wp-includes/shortcodes.php:218
do_shortcode()
wp-includes/class-wp-hook.php:287
apply_filters('the_content')
wp-includes/post-template.php:253
the_content()
wp-content/themes/twentysixteen/template-parts/content-page.php:20
load_template('wp-content/themes/twentysixteen/template-parts/content-page.php')
wp-includes/template.php:672
locate_template()
wp-includes/general-template.php:168
get_template_part('template-parts/content','page')
wp-content/themes/twentysixteen/page.php:24
thanks
Welcome to our forum.
As far as we understand and experience 500 error is only happening when you user same post grid user under post item content. that's mean you need to exclude post id if you want to load post grid that also includes current post id(where the post grid is displaying)
Regards
Please send me a temporary admin access on your site, i will take a look on this issue. please send me mail to support@pickplugins.com with login info.
also please enable debug and debug log on your site and see the error message on log file when this issue is happening.