Recent Topics

[2.4.6] PHP Fatal Error - Categories

started by on Apr 29, 2010 – Last touched: Apr 29, 2010

Apr 29, 2010 15:53    

The error is:

Fatal error: Call to a member function get_permanent_url() on a non-object in /home/mydomain/public_html/inc/skins/_skin.funcs.php on line 139

The URL string that creates the error is:

Code

http://www.mydomain.com/index.php?blog=1&cat=1

WHEN the category number is not valid. If the category ID is valid, you don't get the error.

I've tested it with Category URLs on "Use extra-path: category path" and also "Use param: cat ID" - the error occurs on both options.

I suspect that bots are trolling and setting off the error, but shouldn't it go to a 404 or similar, rather than creating a fatal error?

Apr 29, 2010 18:15

Check the "Make canonical" option under "Category pages" on the SEO tab
Or uncheck "Meta description" in the same section

Apr 29, 2010 18:28

sam2kb wrote:

Check the "Make canonical" option under "Category pages" on the SEO tab
Or uncheck "Meta description" in the same section

Already done.

I believe the code is enough different between the two versions for the fix you linked to not work in 2.4.6.

I'm not a php coder or I'd try to figure it out myself.

Dec 12, 2011 16:27

Thank you very much! I found this thread extremely helpful!


Form is loading...

powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.