Forums

Connection's name not present!

studiocardo 19 Dec, 2014
Hi Bob

I have a CC v5 connection (list and item view) that worked flawlessly until I upgraded to Community Builder 2.0. Since there is no longer a joe_user table, I modified Model2 (tile = User) to have it point to jos_comprofiler instead. There are other minor changes like changing User.username to User.firstname and User.lastname since username is a field that no longer exists. Model1 is where the main data reside.

The resultant list retrieves data and displays the data correctly just fine, however, when I click on the linkable, it returns the following error message:

Connection's name not present!

Everything looks legit… Any advice on where to start looking?

Thank you for your help as always.
SH
GreyHead 19 Dec, 2014
Hi SH,

No real idea - what is the URL that you see from the 'linkable'

There is still a #__user table in Joomla! 3 only the prefix has changed.

Bob
studiocardo 20 Dec, 2014
Hi Bob

I don't think the __user table is the issue here, although I am surprised to see how big of a difference it is b/n 3.2.3 and 3.3.6 (see attachment). But that's Joomla for you.

I changed the php code in the view action to simply "<p>Hi</p>" just to narrow the search. And it has no effect.

For the release site with Joomla 3.3.6, the url of the linkable is: "component/com_chronoconnectivity5/act,view/ccname,SPNSSv4/cont,lists/&gcb=13", where 13 is just the example user_id.

For the dev site with Joomla 3.2.3, the url of the linkable is:

"index.php/en/spnss-scores?cont=lists&ccname=SPNSSv3&act=view&gcb=1"

The only differences between the SPNSS v3 and v4 are the source of user info (i.e., jos_users vs. joe_comprofiler) used in Model2 and the associated field names.

At this point, I am inclined to think there is a compatibility b/n CC v5 and Joomla 3.3.6. Could you verify that on your side?

Thanks for your help!
SH
GreyHead 20 Dec, 2014
1 Likes
Hi SH,

I just built a test listing linking to the #__users table and that seems to work OK.

I get this url
/index.php/component/chronoconnectivity5/?cont=lists&ccname=test_view_item&act=view&gcb=473

And this debug code works to display the user name
<p>Hi</p>
<?php
$user_id = JRequest::getVar('gcb', '', 'get');
echo'<div>$user_id: '.print_r($user_id, true).'</div>';
$user = JFactory::getUser($user_id);
echo'<div>$user->name: '.print_r($user->name, true).'</div>';
?>


Using Joomla! 3.3.6 and CC v5.0 RC4

Bob
studiocardo 20 Dec, 2014
1 Likes
Hi Bob

Thanks is very helpful. Thank you.

I was afraid that problem was caused by sh404SEF and by looking at the way the URL was formatted, I should have known better. And that indeed turned out to be the case. So I excluded CC from sh404SEF, and it appears to be functioning again.

Thx again!
SH
This topic is locked and no more replies can be posted.