Project

General

Profile

Actions

Bug #2473

closed

J1.6.3+: Author tab: article sef causes notice

Added by krileon over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
06 April 2011
Due date:
% Done:

100%

Estimated time:
3:00 h

Description

When SEF is enabled there appears to be an issue with constructing article URLs. This was not present during 1.6.0 and appears recent. Unsure if Joomla related or CB related. Issue is NOT present when NOT viewing profile.

Notice: Undefined index: view in D:\xampp\htdocs\cb\j16\components\com_content\router.php on line 49
Call Stack
  1. Time Memory Function Location
    1 0.0016 354832 {main}( ) ..\index.php:0
    2 0.2593 13927512 JSite->dispatch( ) ..\index.php:43
    3 0.2638 13981984 JComponentHelper::renderComponent( ) ..\application.php:188
    4 0.2760 14893688 require_once( 'D:\xampp\htdocs\cb\j16\components\com_comprofiler\comprofiler.php' ) ..\helper.php:152
    5 0.3131 18207936 userProfile( ) ..\comprofiler.php:284
    6 0.3244 18364136 HTML_comprofiler::userProfile( ) ..\comprofiler.php:670
    7 0.4736 32145200 CBuser->getProfileView( ) ..\comprofiler.html.php:433
    8 0.4742 32148768 cbTabs->getViewTabs( ) ..\plugin.foundation.php:1115
    9 0.4742 32148768 cbTabs->generateViewTabsContent( ) ..\comprofiler.class.php:3395
    10 0.4964 32485312 cbTabs->callTabPlugin( ) ..\comprofiler.class.php:3340
    11 0.4964 32485752 cbPluginHandler->call( ) ..\comprofiler.class.php:4112
    12 0.4964 32486344 call_user_func_array ( ) ..\plugin.class.php:582
    13 0.4964 32486400 getAuthorTab->getDisplayTab( ) ..\plugin.class.php:0
    14 0.5028 32580232 cbSef( ) ..\cb.authortab.php:109
    15 0.5028 32580344 CBframework->cbSef( ) ..\plugin.foundation.php:2865
    16 0.5028 32580664 call_user_func_array ( ) ..\plugin.foundation.php:2421
    17 0.5028 32580680 JRoute::
    ( ) ..\plugin.foundation.php:0
    18 0.5029 32580776 JRouterSite->build( ) ..\methods.php:48
    19 0.5029 32580776 JRouter->build( ) ..\router.php:84
    20 0.5031 32582528 JRouterSite->_buildSefRoute( ) ..\router.php:146
    21 0.5054 32658824 ContentBuildRoute( ) ..\router.php:310

https://www.joomlapolis.com/forum/153-professional-member-support/159975-sef-problem-with-your-profile?limit=6&start=6#160158


Files

2473.patch (1.24 KB) 2473.patch krileon, 06 April 2011 18:07
Actions #1

Updated by krileon over 13 years ago

Does not appear to be due to URL structure as the URL structures from CBs tab and Joomlas modules match.

Profile:
NON-SEF: index.php?option=com_content&view=article&id=68:test-blog&catid=19:joomla
SEF: index.php/component/content/article/19-sample-data-articles/joomla/68-test-blog

Module:
NON-SEF: index.php?option=com_content&view=article&id=68:test-blog&catid=19:joomla&Itemid=260
SEF: index.php/using-joomla/extensions/components/content-component/article-category-list/68-test-blog

SEF structures appears completely off, possible related to missing Itemid.

Actions #2

Updated by krileon over 13 years ago

  • File 2473.patch 2473.patch added
  • Status changed from New to Resolved
  • Assignee set to beat
  • % Done changed from 0 to 100

New method for constructing URLs was necessary for articles to be built correctly. Requires including Joomlas content component helper.

Actions #3

Updated by beat over 13 years ago

  • Target version set to CB 1.7
Actions #4

Updated by beat over 13 years ago

  • Estimated time set to 3:00 h
Actions #5

Updated by beat over 13 years ago

  • Subject changed from J1.6: article sef causes notice to J1.6.3+: Author tab: article sef causes notice
  • Status changed from Resolved to Closed

Fixed in r1493 as suggested in patch.

Thanks Kyle.

Actions

Also available in: Atom PDF