ERROR when loading the data in Chronoconnectivity

jmarian1 24 Aug, 2011
Hi Bob/All,

It seems that I can still use the ChronoConnectivity while using the CFv4. Everything seems to be working fine as in I can search for data, all data are loaded except for one thing and that is the error below (undefined variable):

Notice: Undefined variable: j in /home/auworg5/public_html/components/com_chronoconnectivity/libraries/connection.php(246) : eval()'d code on line 7
>
Designation Number 	Agency Name
Notice: Undefined variable: j in /home/auworg5/public_html/components/com_chronoconnectivity/libraries/connection.php(303) : eval()'d code on line 4
>
Notice: Undefined variable: j in /home/auworg5/public_html/components/com_chronoconnectivity/libraries/connection.php(303) : eval()'d code on line 8

I don't have problem using this in our CFv2 version but when I installed the v3,the error show. Now I am using v4 but I still believe I can use the ChronoConnectivity and the error is somewhere in my header and body portion. I don't know why it says that my "i" variable is undefined. Please. Thanks!
Header:
<table style="text-align: left; width: 100%;font-color: #0000A0; font-size: 14px;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
<tr<?php if ($i % 2) echo ' style="background-color: #EBEBEB;"';?>>
      <td style="width: 3%;"><b><u>Designation Number</u></b></td>
      <td style="width: 15%;"><b><u>Agency Name</u></b></td>
          </tr>
</tbody>
</table>

Body:
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    
    <tr<?php if ($i % 2) echo ' style="background-color: #EBEBEB;"';?>>
      <td style="width: 4.3%;text-align:center;">{Designation_Number}</td>
      <td style="width: 15%;">{Designation_Name}</td>
          </tr>
<?php $i++ ?>
  </tbody>
</table>
GreyHead 25 Aug, 2011
Hi jmarian,

The Notice messages talk about $j being undefined but that isn't used in the snippets that you posted, $i is though. It looks as though you are using this to handle CSS row coloring.

If you set your Site Global Error Reporting to System Default or None then these messages will be hidden.

To clean up the message add this to the Header box at the beginning:
<?php
global $i;
$i = 0;
?>
and this to the Body box:
<?php
global $i;
?>


Bob

PS ChronoConnectivity works OK with CFv4 on Joomla! 1.5 to a point. The built in edit and delete links probably won't work but can be replaced with direct links to the form. On Joomla! 1.6/1.7 there are probably even more problems to reaolve.
jmarian1 25 Aug, 2011
Hi Bob. That works the error on top of the page. Thanks a lot. However, in the bottom of the page, I have this another message that I don't know why it is showing: "echo $MyConnection->gethash1();". I didn't see that yesterday as I am testing the page. Anyway, I don't think the footer code has something to do with this. You can see this error at https://www.auw.org/test.auw.org/index.php?option=com_chronoconnectivity&connectionname=SearchDesignationList. Thanks again for your help.
GreyHead 25 Aug, 2011
Hi jamarian1,

Please check through the Where, Header, & Footer boxed and make sure that it isn't a line of debug code tucked in there somewhere. It's not familiar from my digging around in the CC code -- though it is definitely related to CC.

Bob
jmarian1 30 Aug, 2011
Hi Bob,

Thanks for the help however I checked everywhere and I didn't see any code that write the message "echo $MyConnection->gethash1();" in the bottom of my page. Is there any other way we can check that out?
GreyHead 30 Aug, 2011
Hi jmarian1,

I know where it's coming from now - just not sure why it's showing up. It's a part of Max's validation code.

By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.

Bob
jmarian1 31 Aug, 2011
Hi Bob, thanks for your help. Just PM you. Hope you get it.
GreyHead 01 Sep, 2011
Hi jamrian1.

Fixed I think; it loos as though some changes had been made to the ChronoConnectivity files; I've un-changed them.

It's possible that they were made because the files are being flagged in a security warning. If you get flags raised then let me know.

Bob
This topic is locked and no more replies can be posted.