Forums

Very Weird URL and & problem

carvalhorj 19 Apr, 2012
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:

index.php?option=com_chronoconnectivity&view=connection&Itemid=4

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 &: into & on the browser bar completes the action with no problem whatsoever.

But...

How and where do you fix it???

Help would be greatly greatly greatly appreciated

Ricardo
carvalhorj 19 Apr, 2012
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

Array
(
[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 20 Apr, 2012
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....

Weird????
GreyHead 21 Apr, 2012
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.

Bob
carvalhorj 23 Apr, 2012
Hi Bob

Thanks for your reply.

Yes, the only version I ever had was CCv4 RC2

Cheers,
Max_admin 24 Apr, 2012
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.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.