Buy Now
Sign in

Very Weird URL and & problem

carvalhorj , April 19 2012
carvalhorj 9
April 19 2012 #274994
Everyone, hi

I am getting a bit desperate as I can't, by the life of me, figure out how to solve this one:

I was able to track this issue to

com_chronoconnectivity/libraries/chronoconnection php

The code, on line 95 reads

$this->connection_url = 'index.php?option=com_chronoconnectivity&view='.JRequest::getVar('view', 'connection').'&Itemid='.JRequest::getVar('Itemid');

which seems to be to be fine, but when finally gets to the browser it has translated to:


and it fails with a

"Connection name can NOT be empty!" error.

It is obvious to me that the & is being translated to & because changing &amp: into & on the browser bar completes the action with no problem whatsoever.


How and where do you fix it???

Help would be greatly greatly greatly appreciated

carvalhorj 9
April 19 2012 #274995
One more thing:

having added

//set debug memory var
$this->debug['connection'] = 'index.php?option=com_chronoconnectivity&view='.JRequest::getVar('view', 'connection').'&Itemid='.JRequest::getVar('Itemid');

to line 104, returns

[Approx_Memory_Usage] => 1144672
[Approx_Time] => 0.048856973648071
[connection] => index.php?option=com_chronoconnectivity&view=connection&Itemid=4
[SQL] => Array

on the debugger (which is what also one would expect....)
carvalhorj 9
April 20 2012 #275612
Another thing:

substituting the "offending"line by

$this->connection_url = 'index.php?option=com_chronoconnectivity&chronoconnection='.$this->connection_name;//.'&task=list_data';

copied from line 80 same file still has a ampersand issue but at least completes the trasaction with no errors....

GreyHead 63.2
April 21 2012 #276322
Hi carvalhorj ,

Have you updated to the latest CCV4 RC2 ?

I suspect that this links back to the bug in RC1 where there was no 'Name' box in the Menu item creator. This would mean that using the URL with ITemID in it would give you a problem with the 'No name' error.

The & vs & shouldn't be a problem.

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
carvalhorj 9
April 23 2012 #277849
Hi Bob

Thanks for your reply.

Yes, the only version I ever had was CCv4 RC2

admin 25.4
April 24 2012 #278264
Hi carvalhorj,

Where do you get this issue ? frontend or backend ?

And could you please give me a scenario ?

Let me know about any special configs you have made into the connection itself.

If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!