Skip to content
Public Ticket #4233

a error of post - post-template.php on line 284​

Conversation thread

PenciDesign replied

Staff Reply

Hi,

You can check this guide to find what's your purchased code.

At one moment, you just can use one purchased code for a website.

So, if you move your site to main domain, please remove the theme on test domain first before activate the theme on main domain.

Best Regards,

PenciDesign

Penci Design replied

Staff Reply

Hi,

\

Yeah, Please modify  the code in pennews/inc/json-schema-validar.php file.

\

On that file on line 212, replace this code: 

\
\
$post_excerpt = $post->post_excerpt ? $post->post_excerpt : penci_content_limit( penci_excerpt_length(), '...', false );\
\

to

\
\
$post_excerpt = $post->post_excerpt ? $post->post_excerpt : '';
\


Please check this image : http://prntscr.com/kqe69b

\

Don't worry about this fix. I added this fixed to next update of PenNews, After update  it won't lose

\

Best Regards

PenciDesign

Penci Design replied

Staff Reply

Hi,

I checked on your site.

It's small issue on our code. I fixed this issue on your site. You can check it again on your site.

I added more this fixed to next update of PenNews.

Best Regards,

PenciDesign

Penci Design replied

Staff Reply

Hi,

\

Please send me:

\

- Your admin url

\

- Your admin account ( username and password )

\

- Your FTP account ( include FTP host, FTP username, FTP password ) - or your hosting account.

\

In a private reply.

\

I will check it help you.

\

Best Regards,

\

PenciDesign

\

Wings_Li started the conversation

Conversation Start

The test site got the following error:

http://xxxxx.com/index.php/2018/08/31/hello-world/

Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/xxxxx.com/wp-includes/post-template.php on line 284

Use other theme without this error

linux+nginx+mysql+php

PHP 7.2

wordpress 4.9.8

Want to join this conversation or access attachments? Sign in first.