GuMgUmOk Posted June 27, 2008 Share Posted June 27, 2008 Hi , after setup ultimate seo module a have a problem with my infobox Notice: Undefined variable: _sid in /home/user/domains/user.com/public_html/includes/classes/seo.class.php on line 761 my infobox: <?php /* $Id: currencies.php,v 1.16 2003/02/12 20:27:31 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License ZGBasic, osCommerce altyapisi kullanilarak gelistirilmistir.. ZadagandoR zadagandor2041@hotmail.com */ ?> <? error_reporting(E_ALL); function tcmb($bakilacak,$site){ $dosya = @fopen($site, "r"); if ($dosya) { $geldi = false; while(!feof($dosya)) { $satir = fgets($dosya,512); $code = substr($satir, 0, 3); if (($code == $bakilacak) && ($geldi == false)) { $geldi = true; $sonuc = split("[[:space:]]+" , $satir); $doviz[1] = substr($sonuc[4], 0, 9); $doviz[2] = substr($sonuc[5], 0, 9); $doviz[3] = substr($sonuc[6], 0, 9); $doviz[4] = substr($sonuc[7], 0, 9); } } // while return $doviz; } // if($dosya) }// function $usd_doviz = tcmb('USD','http://www.tcmb.gov.tr/kurlar/today.html'); $eur_doviz = tcmb('EUR','http://www.tcmb.gov.tr/kurlar/today.html'); $gbp_doviz = tcmb('GBP','http://www.tcmb.gov.tr/kurlar/today.html'); ?> <!-- currencies //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_DOVIZ_BOX); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, true), 'get'), 'align' => 'center', 'text' => '<table><tr><td> </td><td class="main" align="center"><b>Alış</b></td><td class="main" align="center"><b>Satış</b></td></tr><tr><td><img src="images/infobox/dolar.gif" width="24" height="24" border="0"></td><td class="main">' . $usd_doviz[1] . '</td><td class="main">' . $usd_doviz[2] . '</td></tr><tr><td><img src="images/infobox/euro.gif" width="24" height="24" border="0"></td><td class="main">' . $eur_doviz[1] . '</td><td class="main">' . $eur_doviz[2] . '</td></tr></table>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- currencies_eof //--> Pls help me.. Link to comment Share on other sites More sharing options...
lindsayanng Posted June 27, 2008 Share Posted June 27, 2008 it doesnt seem like the error has anything to do with your info box.. what makes you think that?? It says right in the error that the problem is in the seo.class.php on line 761.. can you post that code.. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
GuMgUmOk Posted June 27, 2008 Author Share Posted June 27, 2008 function add_sid( $link, $add_session_id, $connection, $separator ){ global $request_type; // global variable if ( ($add_session_id) && ($this->attributes['SESSION_STARTED']) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if ($this->not_null($this->attributes['SID'])) { $_sid = $this->attributes['SID']; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = $this->SessionName() . '=' . $this->SessionID(); } } } switch(true){ case (!isset($_SESSION['customer_id']) && defined('ENABLE_PAGE_CACHE') && ENABLE_PAGE_CACHE == 'true' && class_exists('page_cache')): $return = $link . $separator . '<osCsid>'; break; case ($this->not_null($_sid)): $return = $link . $separator . tep_output_string($_sid); break; default: $return = $link; break; } # end switch return $return; } # end function Link to comment Share on other sites More sharing options...
lindsayanng Posted June 27, 2008 Share Posted June 27, 2008 umm.. i have NO IDEA which one is line 761 A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
GuMgUmOk Posted June 27, 2008 Author Share Posted June 27, 2008 Sorry.. foregoing code line 746...769 line 761,762,763 case ($this->not_null($_sid)): $return = $link . $separator . tep_output_string($_sid); break; Link to comment Share on other sites More sharing options...
lindsayanng Posted June 27, 2008 Share Posted June 27, 2008 i believe it is a common bug with installing that on a server that runs php5. I wish i coudl help you more.. someone else might be able to A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
voided Posted September 26, 2008 Share Posted September 26, 2008 those are just php notices (doesn't mean anything is borked) turn off php notices (look in includes/application_top.php) change error_reporting(E_ALL); to error_reporting(E_ALL & ~E_NOTICE); That's the default setting... if it doesn't work you might need to contact your web host and make him change it Designrfix.com | Graphic Design Inspiration & Web Design Resources - @designrfix Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.