[Resolved]V2.0 +joomsef4-4.2.8 :bug when typing a false link

More
12 years 3 months ago - 12 years 3 months ago #27235 by akd01
Hi,

I'm using Joomsef 4.2.8 and Flexi 1368 on a fresh joomla 2.5.6(On a test server under Windows and i'm behind a proxy).
I tryed to type a wrong URL (aka something I know it should redirect to some 404 error).

I got a 404 error but with an error stack.
Tested with IE 8.0 and Firefox 14.0.1

I already got several times the HTTP_REFERER error when I was configuring joomsef (because I didn't got the right kind of menu items, got base article for example instead of flexi unique content), so I think you can drop this error (but I don't know for the others).
Maybe it's already fixed on the lastest svn, I only got the nightly downloadable for the website.
Code:
( ! ) Notice: Undefined offset: 0 in C:\UwAmp\www\administrator\components\com_flexicontent\models\parentclassitem.php on line 703 Call Stack # Time Memory Function Location 1 0.0004 345592 {main}( ) ..\index.php:0 2 0.2287 15937552 JSite->dispatch( ) ..\index.php:42 3 0.2306 15949064 JComponentHelper::renderComponent( ) ..\application.php:197 4 0.2368 15962288 JComponentHelper::executeComponent( ) ..\helper.php:351 5 0.2373 16046144 require_once( 'C:\UwAmp\www\components\com_flexicontent\flexicontent.php' ) ..\helper.php:383 6 0.2701 18908032 JController->execute( ) ..\flexicontent.php:83 7 0.2701 18908080 FlexicontentController->display( ) ..\controller.php:760 8 0.2702 18908112 JController->display( ) ..\controller.php:368 9 0.2866 20849120 FlexicontentViewItem->display( ) ..\controller.php:721 10 0.2875 20875104 ParentClassItem->getItem( ) ..\view.html.php:102 11 0.2876 20875232 ParentClassItem->_loadItem( ) ..\parentclassitem.php:229
Code:
( ! ) Notice: Undefined offset: 0 in C:\UwAmp\www\administrator\components\com_flexicontent\models\parentclassitem.php on line 704 Call Stack # Time Memory Function Location 1 0.0004 345592 {main}( ) ..\index.php:0 2 0.2287 15937552 JSite->dispatch( ) ..\index.php:42 3 0.2306 15949064 JComponentHelper::renderComponent( ) ..\application.php:197 4 0.2368 15962288 JComponentHelper::executeComponent( ) ..\helper.php:351 5 0.2373 16046144 require_once( 'C:\UwAmp\www\components\com_flexicontent\flexicontent.php' ) ..\helper.php:383 6 0.2701 18908032 JController->execute( ) ..\flexicontent.php:83 7 0.2701 18908080 FlexicontentController->display( ) ..\controller.php:760 8 0.2702 18908112 JController->display( ) ..\controller.php:368 9 0.2866 20849120 FlexicontentViewItem->display( ) ..\controller.php:721 10 0.2875 20875104 ParentClassItem->getItem( ) ..\view.html.php:102 11 0.2876 20875232 ParentClassItem->_loadItem( ) ..\parentclassitem.php:229
Code:
( ! ) Notice: Undefined index: HTTP_REFERER in C:\UwAmp\www\components\com_flexicontent\models\item.php on line 66 Call Stack # Time Memory Function Location 1 0.0004 345592 {main}( ) ..\index.php:0 2 0.2287 15937552 JSite->dispatch( ) ..\index.php:42 3 0.2306 15949064 JComponentHelper::renderComponent( ) ..\application.php:197 4 0.2368 15962288 JComponentHelper::executeComponent( ) ..\helper.php:351 5 0.2373 16046144 require_once( 'C:\UwAmp\www\components\com_flexicontent\flexicontent.php' ) ..\helper.php:383 6 0.2701 18908032 JController->execute( ) ..\flexicontent.php:83 7 0.2701 18908080 FlexicontentController->display( ) ..\controller.php:760 8 0.2702 18908112 JController->display( ) ..\controller.php:368 9 0.2866 20849120 FlexicontentViewItem->display( ) ..\controller.php:721 10 0.2875 20875104 ParentClassItem->getItem( ) ..\view.html.php:102 11 0.3385 20998968 FlexicontentModelItem->_check_viewing_access( ) ..\parentclassitem.php:237
Code:
( ! ) Warning: Invalid argument supplied for foreach() in C:\UwAmp\www\components\com_flexicontent\models\item.php on line 125 Call Stack # Time Memory Function Location 1 0.0004 345592 {main}( ) ..\index.php:0 2 0.2287 15937552 JSite->dispatch( ) ..\index.php:42 3 0.2306 15949064 JComponentHelper::renderComponent( ) ..\application.php:197 4 0.2368 15962288 JComponentHelper::executeComponent( ) ..\helper.php:351 5 0.2373 16046144 require_once( 'C:\UwAmp\www\components\com_flexicontent\flexicontent.php' ) ..\helper.php:383 6 0.2701 18908032 JController->execute( ) ..\flexicontent.php:83 7 0.2701 18908080 FlexicontentController->display( ) ..\controller.php:760 8 0.2702 18908112 JController->display( ) ..\controller.php:368 9 0.2866 20849120 FlexicontentViewItem->display( ) ..\controller.php:721 10 0.2875 20875104 ParentClassItem->getItem( ) ..\view.html.php:102 11 0.3385 20998968 FlexicontentModelItem->_check_viewing_access( ) ..\parentclassitem.php:237
Last edit: 12 years 3 months ago by akd01.

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

More
12 years 3 months ago #27236 by ggppdk
Yes this notice occurs when trying to find the creator of an item,

it is fixed in a later revision


-- 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 3 months ago #27252 by akd01
I tested with latest svn revision (1411 - installed over my 1368), I still have this error:
(anyway, it's already better...)
Code:
( ! ) Warning: Invalid argument supplied for foreach() in C:\UwAmp\www\components\com_flexicontent\models\item.php on line 125 Call Stack # Time Memory Function Location 1 0.0003 349280 {main}( ) ..\index.php:0 2 0.2345 15986424 JSite->dispatch( ) ..\index.php:42 3 0.2362 15999168 JComponentHelper::renderComponent( ) ..\application.php:197 4 0.2409 16012432 JComponentHelper::executeComponent( ) ..\helper.php:351 5 0.2416 16096640 require_once( 'C:\UwAmp\www\components\com_flexicontent\flexicontent.php' ) ..\helper.php:383 6 0.2735 19010784 JController->execute( ) ..\flexicontent.php:83 7 0.2735 19010832 FlexicontentController->display( ) ..\controller.php:760 8 0.2736 19010864 JController->display( ) ..\controller.php:395 9 0.2902 20978408 FlexicontentViewItem->display( ) ..\controller.php:721 10 0.2911 21004392 ParentClassItem->getItem( ) ..\view.html.php:103 11 0.3455 21134712 FlexicontentModelItem->_check_viewing_access( ) ..\parentclassitem.php:237

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

More
12 years 3 months ago #27260 by ggppdk
This code is inside the function that checks for viewing access, but it should be unreachable.

I tested with with both zero id and with a non-existent id and in both cases a 404 error is raised.

So i am guessing an existing id is being used

Also what is the current joomla menu item when this error occurs? is points to a FLEXIcontent item or to some other FLEXIcontent view?


-- 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 3 months ago #27320 by akd01
Hi,

This problem occurs on all my website page (but for now I mainly have flexicontent/unique content and flexicontent/category pages).

it seems to be an interaction problem with Joomsef, or maybe more a Joomsef error.
If I put in the 404 page config of Joomsef "404 page : front page" I don't have any error.

But if I choose "custom page" and fill the custom page field with data, then when I type a false link I got the error and the URL link is changed into this one :

http://localhost/site-content/item/52

I finally found a way to avoid the error by tweaking Joomsef 404 page config this way :

404 page : front page
Use Itemid for Default 404 Page : yes
Select Itemid : <any blank page> <- for example flexihiddenmenu/Site Content

So I think we can consider it as resolved.

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

More
12 years 3 months ago #27322 by ggppdk
I don't know how JoomSEF is producing its SEF URLs, or how it decides redirections,

Recently i read docs of SH404SEF, and the latest r1420 will work properly with SH404SEF.

Is your site local, can you make an online copy and send me a PM, to take a quick look at it.

NOTE: i don't promise to fix compatibility with JoomSEF, just to look at it.


-- 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.637 seconds
Save
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