404 error message

Hello when i put an wrong url i got the 404 page but it also shows the following message:
Warning : count(): Parameter must be an array or an object that implements Countable in /home/customer/www/aquantum.gr/public_html/wp-includes/post-template.php on line 317

the website is https://www.aquantum.gr
an example of wrong url https://www.aquantum.gr/wrongurl

Hello Stella,

Thanks for writing in!

You are seeing a PHP warning message. it may have came from the theme or one of the plugins. Usually a warning message appear when a variable is null or not yet initialize. You can get rid of this message by disable the debud mode. You can do this by opening wp-config.php and adding

define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

When you revisit the 404 page, you should no longer be seeing any warning message. Meanwhile, I noticed that you are using a custom 404 extension. Please make sure that you are up to date. If nothing is helping, provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/docs/getting-support

Regards.

I added the values you told me but it did not correct the problem so i removed them (of course i purged caches)
I added a secure note for you to see the matter

Hello Stella,

We have investigated the issue. We’re sorry for the inconvenience this has cause you. We have confirmed this is a known bug and fixed will be coming on the next release.

Thank you for understanding.

Ok thank you

You are most welcome!

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