Page not found on categories

Hello, on sub category pages i get the 404 Not Found error.

There is no caching plugin on site and i try to reset permalinks.

And i get this error on some categories
" Notice : Trying to get property ‘hierarchical’ of non-object in /home/crvenikrizmakars/public_html/wp-content/themes/pro/cornerstone/includes/classes/Documents/Content.php on line 125"

Hi Zvonimir,

Thanks for reaching out.
I have checked and found that a dot has been added to the Category base inside the Settings > Permalink, and that is the reason behind your problem. I have removed it and now the category pages are showing up.

Thanks

Yes, i set dot beacause i dont want to show category in my links.

On page /programi/ i still get this error.
" Notice : Trying to get property ‘hierarchical’ of non-object in /home/crvenikrizmakars/public_html/wp-content/themes/pro/cornerstone/includes/classes/Documents/Content.php on line 125 "

Hi Zvonimir,

I have checked my local environment but didn’t find the Notice showing on your website. It might be something on your website which cause this. You can ignore the Notice by adding the define( ‘WP_DEBUG’, false ); into the wp-config.php. If you still want to investigate it, I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue
5.CSS/JS Customization
6.Disabling Cache
7.Disabling CDN

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of this helps, please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access to the secure note, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

1 Like

Hello @Luketina,

Please set your permalinks to the desired permalink URL and then revert back the “Category” base instead of having a dot or comma. Use the PHP code version given by the article.

Be advised that you are trying to achieve something that is beyond the theme. If the latest WordPress 6.2 no longer supports, or allows removing of the category base, you may need to contact the source of the code or the one who published the article.

Thank you for your understanding.

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