Getting 500 errors for non existent pages instead of 404

More
12 years 6 months ago #33369 by ggppdk
This message is generated by Joomla.

Also this url will not reach FC code, because Joomla will never Roue it to FC

-- you see the first parts of the url are the menu items aliases which either
1. do not exist OR
2. they are not of current language


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #33391 by SteP
Yes, its true that the url does not exist any more, because part of it has been changed: I have renamed a FC category from 'catalogo-libri-per-generi' to 'catalogo-per-generi', so it's correct that URL can't be found. What I can't understand is why it gives back a 500 error instead of a 404 one. Does this error involve FC? Or does it depend on Joomla itself? Understanding that could help me to restrict the investigation field...

_________________________________________
MMC Edizioni - www.mmcedizioni.it
Website Developer & Graphics

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #33398 by ggppdk
I visit the url you provided and i see that the first part of the URL is flexicontent menu item

So this URL does reach the FLEXIcontent parse URL code, and the problem will occur when url has menu items nested to be 3 or more and they no longer exist.

In FLEXIcontent file that parses SEF URLs:
components/com_flexicontent/router.php

Find at the end of the file this code:
Code:
// 6. *** OTHER explicit view, when Segments Length GREATER that 2 *** if($count > 2) { // COMPATIBILITY with old code of router.php $vars['view'] = $segments[0]; // $segments[1] is id with new code, with old bookmaked SEF URLs is ??? ... $vars['id'] = $segments[2]; return $vars; }
and replace with :
Code:
// 6. *** OTHER explicit view, when Segments Length GREATER that 2 *** if($count > 2) { // COMPATIBILITY with old code of router.php $flexi_view_paths = glob( JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'views'.DS.'[a-zA-Z_0-9]*', GLOB_ONLYDIR); foreach ($flexi_view_paths as $flexi_view_path) { $flexi_view = basename($flexi_view_path); if ($flexi_view == '.' || $flexi_view == '..') continue; $flexi_views[$flexi_view] = 1; } $explicit_view = $segments[0]; if ( !isset( $flexi_views[$explicit_view]) ) { $msg = "The request content or the requested view '$explicit_view' was not found"; JError::raiseError(404, $msg); // Cannot throw exception here since it will not be caught } $vars['view'] = $segments[0]; // Compatibility with old bookmaked SEF URLs ??? ... $vars['id'] = $segments[2]; return $vars; }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #33399 by SteP
GREAT!!! Solved.
And YES, I confirm that using your component has been the better choose I made in the past 10 years of sites building :)
Thank you again for your responsive help, faster & more effective than a lot of other pay-for components.
I would like to see a way to contribute by donations very soon... we are a very small company, and can't contribute with a high amount, but such a kind of professionality should be also appreciated in other way then simply saying "thank you" :)
All the best

_________________________________________
MMC Edizioni - www.mmcedizioni.it
Website Developer & Graphics

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #33403 by micker
;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #36194 by SteP
I reopen this tread, because the latest rc build r1676 seems to have a strange behaviour when falling on a non existant webpage: instead of following the normal 'error 404' way, i get a 'strange' blog-style page, containing ALL the items I have in my website.Take a look here:
www.mmcedizioni.it/it/catalogo-l ... eneri.html
This is NOT correct... could you please address me to get it working again? PM me if you need more info
Regards

ps: it also seems to ignore the Redirect Joomla function...

_________________________________________
MMC Edizioni - www.mmcedizioni.it
Website Developer & Graphics

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.298 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save