[FX.php List] eerie happenings

William Akey wcakey at hotmail.com
Mon Jul 17 15:20:03 MDT 2006


David,

I have noted that this error commonly pops up when there are some permissions that are set incorrectly. Check permissions on all files that are involved.

HTH

William
  ----- Original Message ----- 
  From: David Tinoco 
  To: fx.php_list at mail.iviking.org 
  Sent: Monday, July 17, 2006 1:47 PM
  Subject: [FX.php List] eerie happenings


  I have a basic shopping cart running with FX Cart and it has been working just fine. I tested it out again this morning and every time I do a search, I get this error now. I haven't changed anything that I know of. If anyone can help, I'd appreciate it!
   
  Thanks,
  David Tinoco
  davet15 at hotmail.com


  Fatal error: Cannot use object of type FX_Error as array in c:\Inetpub\wwwroot\search.php on line 27
   
  the code:
   
  <?php
  session_start();
  include_once($_SERVER['DOCUMENT_ROOT'] . "/FX/FX.php");
  include_once($_SERVER['DOCUMENT_ROOT'] . "/FX/server_data.php");
  $cats=new FX($serverIP,$webCompanionPort);
  $cats->SetDBData('Nutrina Catalog.fp7','Categories');
  $cats->SetDBPassword($webPW,$webUN);
  $cats->AddDBParam('Category','General');
  $catsResult=$cats->FMFind();
  $special=new FX($serverIP,$webCompanionPort);
  $special->SetDBData('Nutrina Catalog.fp7','Categories');
  $special->SetDBPassword($webPW,$webUN);
  $special->AddDBParam('Category','Special');
  $specialResult=$special->FMFind();
  if(isset($_POST['findbox'])){
  $search_term=$_POST['findbox'];
  $products=new FX($serverIP,$webCompanionPort);
  $products->SetDBData('Nutrina Catalog.fp7','Catalog');
  $products->SetDBPassword($webPW,$webUN);
  $products->AddDBParam('Search',$search_term);
  $productsResult=$products->FMFind();
  foreach($productsResult['data']as $key=>$productsData);   (this is line 27 in wordpad)
  $foundcount = $catsResult['foundCount'];
  $searchcount = $productsResult['foundCount'];
  }
  if(isset($_GET['category'])){
  $cat=$_GET['category'];
  $products=new FX($serverIP,$webCompanionPort);
  $products->SetDBData('Nutrina Catalog.fp7','Catalog');
  $products->SetDBPassword($webPW,$webUN);
  $products->AddDBParam('Search',$cat);
  $productsResult=$products->FMFind();
  foreach($productsResult['data']as $key=>$productsData);
  $foundcount = $catsResult['foundCount'];
  $searchcount = $productsResult['foundCount'];
  }
  if(isset($_GET['cat'])){
  $cat=$_GET['cat'];
  $products=new FX($serverIP,$webCompanionPort);
  $products->SetDBData('Nutrina Catalog.fp7','Catalog');
  $products->SetDBPassword($webPW,$webUN);
  $products->AddDBParam('Search',$cat);
  $productsResult=$products->FMFind();
  foreach($productsResult['data']as $key=>$productsData);
  $foundcount = $catsResult['foundCount'];
  $searchcount = $productsResult['foundCount'];
  }
  if(isset($_SESSION['ordno'])){
  $totals=new FX($serverIP,$webCompanionPort);
  $totals->SetDBData('Nutrina Catalog.fp7','TempOrders');
  $totals->SetDBPassword($webPW,$webUN);
  $totals->AddDBParam('k_Session ID',$_SESSION['ordno']);
  $totalsResult=$totals->FMFind();
  foreach($totalsResult['data']as $key=>$totalsData);
  $items=$totalsData['Items'][0];
  $total=$totalsData['Order_Total'][0];
  }else{
  $items='0';
  $total='0.00';
  }
   




------------------------------------------------------------------------------
  Be one of the first to try Windows Live Mail beta 


------------------------------------------------------------------------------


  _______________________________________________
  FX.php_List mailing list
  FX.php_List at mail.iviking.org
  http://www.iviking.org/mailman/listinfo/fx.php_list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060717/7975afa7/attachment.html


More information about the FX.php_List mailing list