Posts not loaded using ajax pagination
-
Hi, I’m using the Ajax pagination to load the posts using this Rubik Theme, but recently i just realized that the posts are not loaded in production which i am not sure when it happened, but it working well on my local.
I check the console this wp-admin/admin-ajax.php return 500 and cause this
Fatal error: Uncaught Error: Non-static method rubik_block_6::render_modules() cannot be called statically in /home4/upstatio/public_html/theiconomics/wp-content/themes/rubik/library/core.php:1568 Stack trace: #0 /home4/upstatio/public_html/theiconomics/wp-includes/class-wp-hook.php(324): rubik_ajax_block_6(”) #1 /home4/upstatio/public_html/theiconomics/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #2 /home4/upstatio/public_html/theiconomics/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home4/upstatio/public_html/theiconomics/wp-admin/admin-ajax.php(188): do_action(‘wp_ajax_block_6’) #4 {main} thrown in?/home4/upstatio/public_html/theiconomics/wp-content/themes/rubik/library/core.php?on line?1568And this is the code on this core.php line 1568,
$the_query = new WP_Query( $args );
echo rubik_block_6::render_modules($the_query, $postIcon, $bk_ajax_c[$blockID][‘excerpt_length’]);
is there any solution to this ? or should i update the theme?
please i quite new to WordPress
- The topic ‘Posts not loaded using ajax pagination’ is closed to new replies.