Error or?

Oneeye_Viking 29 Mar, 2010
Hi

I get this when i try to show table jos_users:

Notice: Undefined variable: i in /var/www/web175/web/components/com_chronoconnectivity/libraries/connection.php(303) : eval()'d code on line 3
>

Regards Erik
GreyHead 29 Mar, 2010
Hi Erik,

It's probably from line 3 of the Body code - you perhaps have $i in there?

Bob
Oneeye_Viking 29 Mar, 2010
Hi

There is not a $i in the code.

/Erik

<body  class="backgroundlevel-high bodylevel-high cssstyle-style4 font-family-lucida font-size-is-default col12">
				<div id="rt-top">
			<div class="rt-container">
				<div id="rt-top2">
					<div class="rt-grid-6 rt-alpha">
                        <div class="rt-block">
				<div class="module-surround">
						                					<div class="module-content">
	                	<form action="http://www.fremfitness.dk/index.php?option=com_comprofiler&task=logout" method="post" id="mod_login_logoutform" style="margin:0px;">
<span id="mod_login_greeting">Hi, Erik Hostrup</span> <input type="submit" name="Submit" class="button" value="Logout" />
<input type="hidden" name="op2" value="logout" />
<input type="hidden" name="lang" value="danish" />
<input type="hidden" name="return" value="B:aHR0cDovL3d3dy5mcmVtZml0bmVzcy5kay9pbmRleC5waHA/b3B0aW9uPWNvbV9jb250ZW50JmFtcDt2aWV3PWZyb250cGFnZSZhbXA7SXRlbWlkPTE=" />
<input type="hidden" name="message" value="0" />
<input type="hidden" name="cbsecuritym3" value="cbm_5e5230ca_105cd542_fab72560af482ebeb22fcc96d8e502b8" />
<input type="hidden" name="jc3346b711d65dcc537ac82f9e39690c2" value="1" />
</form>					</div>
				</div>
            </div>
        	
</div>
<div class="rt-grid-6 rt-omega">
                        <div class="rt-block">
				<div class="module-surround">
						                					<div class="module-content">
	                	<form action="index.php" method="post">
	<div class="search">
		<input name="searchword" id="mod_search_searchword" maxlength="20" alt="Søg" class="inputbox" type="text" size="20" value="søg…"  onblur="if(this.value=='') this.value='søg…';" onfocus="if(this.value=='søg…') this.value='';" />	</div>
	<input type="hidden" name="task"   value="search" />
	<input type="hidden" name="option" value="com_search" />
	<input type="hidden" name="Itemid" value="67" />
</form>					</div>
				</div>
            </div>
        	
</div>
					<div class="clear"></div>
				</div>
			</div>
		</div>
						<div id="rt-header">
			<div class="rt-container">
				<div id="rt-header2">
					<div id="rt-header3">
						<div id="rt-header4">
							<div class="rt-grid-4 rt-alpha">
    			<div class="rt-block">
    	    	<a href="http://www.fremfitness.dk/" id="rt-logo"></a>
    		</div>
	    

</div>
<div class="rt-grid-8 rt-omega">
                        <div class="rt-block">
				<div class="module-surround">
						                					<div class="module-content">
	                	<ul class="menu"><li class="item1"><a href="http://www.fremfitness.dk/"><span>Forside</span></a></li><li class="parent item55"><a><span>Om Frem Fitness</span></a><ul><li class="item56"><a href="/index.php?option=com_content&view=article&id=5&Itemid=56"><span>Bestyrelsen</span></a></li><li class="item57"><a href="/index.php?option=com_content&view=article&id=47&Itemid=57"><span>Nyt medlem</span></a></li><li class="item58"><a href="/index.php?option=com_content&view=article&id=48&Itemid=58"><span>Ordensregler</span></a></li><li class="item59"><a href="/index.php?option=com_content&view=article&id=49&Itemid=59"><span>Junior Fitness</span></a></li><li class="item60"><a href="/index.php?option=com_content&view=article&id=50&Itemid=60"><span>Indoor Cycling</span></a></li><li class="item61"><a href="/index.php?option=com_content&view=article&id=51&Itemid=61"><span>Boldtræning</span></a></li><li class="item65"><a href="/index.php?option=com_acajoom&Itemid=65"><span>Nyhedsbreve</span></a></li><li class="item77"><a href="http://frem-skoerping.dk/"><span>IF Frem Skørping</span></a></li><li class="item82"><a href="/index.php?option=com_kunena&Itemid=82"><span>Forum</span></a></li><li class="item83"><a href="/index.php?option=com_phocagallery&view=category&id=1&Itemid=83"><span>Galleri</span></a></li></ul></li><li class="parent item74"><a><span>Nyheder</span></a><ul><li class="item75"><a href="/index.php?option=com_content&view=category&id=38&Itemid=75"><span>Nyheder</span></a></li><li class="item76"><a href="/index.php?option=com_content&view=archive&Itemid=76"><span>Arkiv</span></a></li></ul></li><li class="parent item62"><a><span>Booking</span></a><ul><li class="item28"><a href="/index.php?option=com_seminar&Itemid=28"><span>Holdoversigt</span></a></li><li class="item64"><a href="/index.php?option=com_comprofiler&Itemid=64"><span>Dine detaljer</span></a></li><li class="item69"><a><span>Forny kontingent</span></a></li><li class="item70"><a href="/index.php?option=com_content&view=article&id=53&Itemid=70"><span>Indmeldelse</span></a></li></ul></li><li class="item53"><a href="/index.php?option=com_contact&view=contact&id=1&Itemid=53"><span>Kontakt os</span></a></li><li class="parent active item66"><a><span>Personale</span></a><ul><li class="item15"><a href="/administrator/"><span>Administrator</span></a></li><li id="current" class="active item67"><a href="/index.php?option=com_chronoconnectivity&Itemid=67"><span>Ret "Gyldig til"</span></a></li><li class="item68"><a href="/index.php?option=com_uddeim&Itemid=68"><span>Send beskeder</span></a></li><li class="item73"><a href="/index.php?option=com_contentsubmit&view=article&layout=bycategory&id=38&Itemid=73"><span>Tilføj nyhed</span></a></li><li class="item78"><a href="/index.php?option=com_comprofiler&task=userslist&listid=4&Itemid=78"><span>Medlemmer</span></a></li><li class="item79"><a href="/index.php?option=com_sql2excel&view=category&Itemid=79"><span>Download</span></a></li><li class="item80"><a href="https://ssl.ditonlinebetalingssystem.dk/admin/ " target="_blank"><span>Hæv betalinger</span></a></li><li class="item84"><a href="/index.php?option=com_phocagallery&view=user&Itemid=84"><span>Tilføj billeder</span></a></li><li class="item85"><a href="/index.php?option=com_chronoconnectivity&Itemid=85"><span>Ret adgang</span></a></li></ul></li></ul>					</div>
				</div>
            </div>
        	
</div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</div>
								<div id="rt-feature">
			<div class="rt-container">
				<div class="rt-grid-12 rt-alpha rt-omega">
    		<div class="clear"></div>
		
		

</div>
				<div class="clear"></div>
			</div>
		</div>
								<div id="rt-main-surround">
											              <div id="rt-main" class="mb12">
                <div class="rt-container">
                    <div class="rt-grid-12 ">
                                                <div class="rt-block">
                                                        <div id="rt-mainbody">
                                	<h1>Ret "Gyldig til"</h1>   
		
		<br />
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr>
      <td style="font-weight: bold; width: 10%;">#</td>
      <td style="font-weight: bold; width: 10%;">Navn</td>
      <td style="font-weight: bold; width: 15%;">Gyldig til</td>
      <td style="font-weight: bold; width: 15%;">Nøgle</td>
    </tr>
  </tbody>
</table>
<div class="clr" style="border-bottom: 3px solid #222; padding: 3px; margin-bottom: 10px;"></div><table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr<br />
<b>Notice</b>:  Undefined variable: i in <b>/var/www/web175/web/components/com_chronoconnectivity/libraries/connection.php(303) : eval()'d code</b> on line <b>3</b><br />
>
      <td style="width: 10%;"><a href="/index.php?option=com_chronoconnectivity&connectionname=Ret_Gyldig_til&task=editrecord&cids=63&Itemid=67">Ret</a> 63</td>
      <td style="width: 10%;">Erik Hostrup</td>
      <td style="width: 15%;">2010-04-07</td>
      <td style="width: 15%;">1</td>
    </tr>
  </tbody>
</table>
<br />
<b>Notice</b>:  Undefined variable: i in <b>/var/www/web175/web/components/com_chronoconnectivity/libraries/connection.php(303) : eval()'d code</b> on line <b>11</b><br />
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr style="background-color: #EBEBEB;">
      <td style="width: 10%;"><a href="/index.php?option=com_chronoconnectivity&connectionname=Ret_Gyldig_til&task=editrecord&cids=79&Itemid=67">Ret</a> 79</td>
      <td style="width: 10%;">Lea Hostrup</td>
      <td style="width: 15%;">2010-03-18</td>
      <td style="width: 15%;">0</td>
    </tr>
  </tbody>
</table>
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr>
      <td style="width: 10%;"><a href="/index.php?option=com_chronoconnectivity&connectionname=Ret_Gyldig_til&task=editrecord&cids=80&Itemid=67">Ret</a> 80</td>
      <td style="width: 10%;">Peter</td>
      <td style="width: 15%;">0000-00-00</td>
      <td style="width: 15%;">0</td>
    </tr>
  </tbody>
</table>
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr style="background-color: #EBEBEB;">
      <td style="width: 10%;"><a href="/index.php?option=com_chronoconnectivity&connectionname=Ret_Gyldig_til&task=editrecord&cids=81&Itemid=67">Ret</a> 81</td>
      <td style="width: 10%;">hans</td>
      <td style="width: 15%;">0000-00-00</td>
      <td style="width: 15%;">1</td>
    </tr>
  </tbody>
</table>
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr>
      <td style="width: 10%;"><a href="/index.php?option=com_chronoconnectivity&connectionname=Ret_Gyldig_til&task=editrecord&cids=82&Itemid=67">Ret</a> 82</td>
      <td style="width: 10%;">Mikael</td>
      <td style="width: 15%;">2010-03-27</td>
      <td style="width: 15%;">1</td>
    </tr>
  </tbody>
</table>
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr style="background-color: #EBEBEB;">
      <td style="width: 10%;"><a href="/index.php?option=com_chronoconnectivity&connectionname=Ret_Gyldig_til&task=editrecord&cids=83&Itemid=67">Ret</a> 83</td>
      <td style="width: 10%;">kattie Hostrup</td>
      <td style="width: 15%;">0000-00-00</td>
      <td style="width: 15%;">1</td>
    </tr>
  </tbody>
</table>
<div class="clr" style="border-bottom: 3px solid #222; padding: 3px; margin-bottom: 10px;"></div>
    <script type="text/javascript">
    window.addEvent('domready', function() {
       var limit_select = $('limit').options;
       if ( !limit_select ) return;
       for ( var i = 0; i < limit_select.length; i++ ) {
            if ( limit_select[i].value == 0 ) {
               limit_select[i].value = 250;
               limit_select[i].innerHTML = '250';
            }
       }
    });
    </script>
<div align="center"><div class="list-footer">

<div class="limit">Display Num<select name="limit" id="limit" class="inputbox" size="1" onchange="this.form.submit()"><option value="5" >5</option><option value="10" >10</option><option value="15" >15</option><option value="20" >20</option><option value="25"  selected="selected">25</option><option value="30" >30</option><option value="50" >50</option><option value="100" >100</option><option value="0" >Alle</option></select></div>
<div class="counter"></div>
<input type="hidden" name="limitstart" value="0" />
</div></div>
<br />        <!-- Don't remove or edit the following 3 lines if you didn't buy a ChronoConnectivity subscription --> 
        <div class="chronoform">
        <a href="http://www.chronoengine.com">Powered By ChronoConnectivity - ChronoEngine.com</a>
        </div>
        <!-- Don't remove or edit the above 3 lines if you didn't buy a ChronoConnectivity subscription -->
                            </div>
                                                    </div>
                                            </div>
                                        <div class="clear"></div>
                </div>
            </div>
								</div>
		<div class="clear"></div>
						<div id="rt-bottomtab">
			<div class="rt-container">
						<div class="clear"></div>
		<div class="rt-block">
			<div class="bottomtab"><span class="bottomtab2">Info</span></div>
		</div>
		

				<div class="clear"></div>
			</div>
		</div>
						<div id="rt-bottom">
			<div class="rt-container">
				<div class="rt-grid-3 rt-alpha">
                        <div class="rt-block">
				<div class="module-surround">
						                					<div class="module-title">
	                	<h2 class="title">Åbningstider</h2>
					</div>
	                					<div class="module-content">
	                	<table cellspacing="0" cellpadding="0" border="0" width="174" style="height: 135px;">
<tbody style="text-align: left;">
<tr style="text-align: left;">
<td style="text-align: left;">Søndag</td>
<td style="text-align: right;">5:30 - 22:00</td>
</tr>
<tr style="text-align: left;">
<td style="text-align: left;">Mandag</td>
<td style="text-align: right;">5:30 - 22:00</td>
</tr>
<tr style="text-align: left;">
<td style="text-align: left;">Tirsdag</td>
<td style="text-align: right;">5:30 - 22:00</td>
</tr>
<tr style="text-align: left;">
<td style="text-align: left;">Onsdag</td>
<td style="text-align: right;">5:30 - 22:00</td>
</tr>
<tr style="text-align: left;">
<td style="text-align: left;">Torsdag</td>
<td style="text-align: right;">5:30 - 22:00</td>
</tr>
<tr style="text-align: left;">
<td style="text-align: left;">Fredag</td>
<td style="text-align: right;">5:30 - 20:00</td>
</tr>
<tr style="text-align: left;">
<td style="text-align: left;">Lørdag</td>
<td style="text-align: right;">5:30 - 20:00</td>
</tr>
</tbody>
</table>
<br />					</div>
				</div>
            </div>
        	
</div>
<div class="rt-grid-3">
                        <div class="rt-block">
				<div class="module-surround">
						                					<div class="module-title">
	                	<h2 class="title">Priser</h2>
					</div>
	                					<div class="module-content">
	                	<table style="height: 78px;" border="0" cellpadding="0" cellspacing="0" width="202">
<tbody style="text-align: left;">
<tr style="text-align: left;">
<td style="text-align: left;">3 måneder
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</td>
<td style="text-align: right;">500,-</td>
</tr>
<tr style="text-align: left;">
<td style="text-align: left;">6 måneder</td>
<td style="text-align: right;">900,-</td>
</tr>
<tr style="text-align: left;">
<td style="text-align: left;">9 måneder 
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</td>
<td style="text-align: right;">1200,-</td>
</tr>
<tr style="text-align: left;">
<td style="text-align: left;">12 måneder</td>
<td style="text-align: right;">1500,-</td>
</tr>
</tbody>
</table>
<br /> Alle priser er eksklusiv brikgebyr på 50 kr.					</div>
				</div>
            </div>
        	
</div>
<div class="rt-grid-3">
                        <div class="rt-block">
				<div class="module-surround">
						                					<div class="module-title">
	                	<h2 class="title">Adresse</h2>
					</div>
	                					<div class="module-content">
	                	<p>Skørping Idrætscenter</p>
<p>Himmerlandsvej 61</p>
<p>9520 Skørping</p>					</div>
				</div>
            </div>
        	
</div>
<div class="rt-grid-3 rt-omega">
                        <div class="rt-block">
				<div class="module-surround">
						                					<div class="module-title">
	                	<h2 class="title">Seneste nyheder</h2>
					</div>
	                					<div class="module-content">
	                	
<div class="boite_news" style="clear: both; ">
	<span style="font-weight: bold; font-size: 105%;"><a href="/index.php?option=com_content&view=article&id=56&catid=38&Itemid=75" title="møde">møde</a></span> 	<span style="font-size: 75%;">
				</span>
		<div style="padding-top: 5px;">lsjdæflkdsf asdæflsa fd ...</div>				<div style="clear:both;"><hr size="1" color="#c3c3c3"/></div></div>


<div class="boite_news" style="clear: both; ">
	<span style="font-weight: bold; font-size: 105%;"><a href="/index.php?option=com_content&view=article&id=55&catid=38&Itemid=75" title="test 2">test 2</a></span> 	<span style="font-size: 75%;">
				</span>
		<div style="padding-top: 5px;">Frem fitness er et foreningsbaseret ...</div>				<div style="clear:both;"><hr size="1" color="#c3c3c3"/></div></div>

					</div>
				</div>
            </div>
        	
</div>
				<div class="clear"></div>
			</div>
		</div>
								<div id="rt-copyright">
			<div class="rt-container">
				<div class="rt-grid-12 rt-alpha rt-omega">
                        <div class="rt-block">
				<div class="module-surround">
						                					<div class="module-content">
	                	<p> </p>
<div id="ja-footer" class="wrap">
<div class="main clearfix">
<div class="ja-footnav"></div>
<div class="inner">
<div class="ja-copyright">
<p>© Frem Fitness 2010. All rights reserved. <a href="http://www.azurex.dk" title="Billig webdesigner"><span style="color: #ca0006;">AzureX.dk</span></a></p>
</div>
</div>
</div>
</div>					</div>
				</div>
            </div>
        	
</div>
				<div class="clear"></div>
			</div>
		</div>
					</body>
GreyHead 29 Mar, 2010
Hi Erik,

Nothing amiss there on line 3. Must be one of the other 'parts' - that line in the connection.php is part of a loop that evaluates all of the CC 'parts'.

Bob
Oneeye_Viking 29 Mar, 2010
Hi

Sorry for my english :-(

I don't get what to look for.

/Erik
GreyHead 29 Mar, 2010
Hi Erik,

In line 3 of the Header (or maybe the Footer) code box there is something triggering ther error.

Bob
GreyHead 30 Mar, 2010
Hi Erik,

There's a $i in the body section there
    <tr<?php if ($i % 2) echo ' style="background-color: #EBEBEB;"';?>>
What do you actually have in your ChronoConnectivity boxes?

Bob
Oneeye_Viking 30 Mar, 2010
The result in the boxes are fine, it's from comprofiler.

The error comes after the first line, the rest is ok.

Erik
GreyHead 30 Mar, 2010
Hi Erik,

I'm sorry I don't understand. Are you saying that this is a Community Builder error?

If it's a ChronoConnectivity error and you copied the code from the other thread then the problem is most likely with the line I posted.

Bob
Oneeye_Viking 30 Mar, 2010
No, it is connectivity, it's just a table from CB i show.
Oneeye_Viking 30 Sep, 2010
Hi again

Now i get this error:

# Navn Adgang Blokeret

Notice: Undefined variable: i in /var/www/web175/web/components/com_chronoconnectivity/libraries/connection.php(303) : eval()'d code on line 3
>
Ret 63 Erik Hostrup Author 0
Notice: Undefined variable: i in /var/www/web175/web/components/com_chronoconnectivity/libraries/connection.php(303) : eval()'d code on line 11
Ret 108 Kurt Holm Administrator 0
Ret 88 Marianne Arvedsen Super Administrator 0
Ret 86 Frem Fitness Super Administrator 0

Any Ideas?

Regards Erik
GreyHead 30 Sep, 2010
Hi Erik,

"Name Access Blocked" ???? Sounds like a problem with permissions??

Bob

PS The notices will probably go away if you set Error Reporting to Sysem Default in the site Global Configuration settings.
GreyHead 01 Oct, 2010
Hi Erik,

Oh !

In that case either initialise $i before it is called in the if statement or set the Error Reporting to system default.

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