picandocodigo / List-Category-Posts

WordPress plugin which allows you to list posts from a category into a post/page using the [catlist] shortcode.
http://wordpress.org/extend/plugins/list-category-posts/
GNU General Public License v2.0
241 stars 112 forks source link

Service Unavailable by using exerpt #460

Closed p-view closed 3 years ago

p-view commented 3 years ago

when i using exerpt=yes i get the Error "Service Unavailable " after 20 sec of loading. Problem ist since WP 5.7 (before runs fine)

my actual system: WordPress 5.7.1 , Version 0.84.1

klemens-st commented 3 years ago

I cannot reprocuce this, works ok in my tests.

Try enabling WP Debug and see if there are any arrors logged.

https://codex.wordpress.org/WP_DEBUG

Remember to use WP_DEBUG_DISPLAY too.

If you have acess to server error logs, you can post them here too.

p-view commented 3 years ago

I get no Debuuging Error. Only the server brings "Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later."

define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', true); is in the config

klemens-st commented 3 years ago

Have you checked the wp-content/debug.log file?

p-view commented 3 years ago

Yes the only entry about is: [25-Apr-2021 15:14:44 UTC] PHP Notice: Trying to get property 'ID' of non-object in /html/wordpress/wp-content/plugins/list-category-posts/include/lcp-catlistdisplayer.php on line 177 Ist this the thint?

klemens-st commented 3 years ago

Now we are getting somewhere.

What is the exact shortcode you are using? Where is the shortcode placed?

p-view commented 3 years ago

[catlist id=20 numberposts=10 pagination=yes instance=1 excerpt=yes excerpt_size=20 template=list ] placed in a normal page. I can give you a login on dev system. Any chance to write a pm to you?

klemens-st commented 3 years ago

I can give you a login on dev system. Any chance to write a pm to you?

Only if there is no other way to debug it and if I judge that it could be an issue with the plugin. Because it could also be caused by a conflict with a specific theme or plugin or simply by misconfiguration. And as an open source contributor I don't offer such support.

For now, please paste the full code of the template list that you are using in your shortcode.

p-view commented 3 years ago

I tested your hint withe the template. That was the problem. Some older templates of the plugin are incompatible whith the current version. Thx for your help!