AJAX call for the template part function not working anymore after recent update of x pro

I have used AJAX call to generate blog post on click and with

get_template_part( ‘framework/views/integrity/content’, get_post_format( ) );

It’s always been working with that format, but after the recent updates it returns a 500 server error, and based from the debug log, there’s an error in the content.php views, which was not the case before.
Were there any major changes to the theme that it’s not working with get_template_part anymore?
I’ve also tried the x_get_view style instead of get_template_part, it says the ajax request was a success but it returns blank content.

If you have any idea that could point me to a right direction, It’d be great.

Thanks!

Hello Cirrus7,

Thanks for writing in!

Nothing has changed in content.php file. You maybe referencing to the wrong/non-existent file like content-image or content-video which is not present in your child theme.

I would recommend that you use this statement instead:

x_get_view( 'integrity', 'content', get_post_format() ); 

We would loved to know if this has work for you. Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.