Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Errors on Linkpoint CardService Internatioanl


Recommended Posts

Posted

i went over the install 5 times. I can't figure out the errors.

 

Warning: exec() has been disabled for security reasons in /home/.gabbaisybian/rocketpc/rocketpc.com/catalog/includes/linkpoint/lpphp.php3 on line 156



Warning: Variable passed to reset() is not an array or object in /home/.gabbaisybian/rocketpc/rocketpc.com/catalog/includes/linkpoint/lpphp.php3 on line 185



Warning: Cannot add header information - headers already sent by (output started at /home/.gabbaisybian/rocketpc/rocketpc.com/catalog/includes/linkpoint/lpphp.php3:156) in /home/.gabbaisybian/rocketpc/rocketpc.com/catalog/includes/functions/general.php on line 29

 

I could really use some help here.

 

Thanks in advance

Posted

oh....FYI

 

This is a fresh install. No hacks or code mods at all.

 

this is lines 21 - 32 in the general.php

 

// Redirect to another page or site

 function tep_redirect($url) {

   if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page

     if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url

       $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL

     }

   }

 

   header('Location: ' . $url);

 

   tep_exit();

 }

 

This is lines 154 - 187 in the lpphp.php3

 

//send query to API

   $lpapi=$this->lpapi;

   exec("$lpapi $mycf $myfilename",$myresults,$retval);



   // delete temp file

   $delok=unlink($myfilename);

   // did we delete it OK?

   if($delok==0)

     {

  print "<br>WARNING!  Unable to delete temp file";

     }



   if($retval!=0)

     {

     $retarr["approved"]="ERROR";

     $retarr["error"]="Error executing LBIN!<br>n";

     return $retarr;

     }



   $mycount=count($myresults);

   $myindex=0;

   while($myindex < $mycount)

     {

     $myline=$myresults[$myindex];

     list($good,$junk)=split("rn",$myline);

     list($best,$junk)=split("n",$good);

     list ($execkey,$execval)=split('=',$best);

     $myindex++;

     $retarr["$execkey"]="$execval";

     }



   reset($retarr);

   return $retarr;

   }

Posted

If there is any other info that woudl be relevant someone please let me know

Posted

I had a few problems on install for Linkpoint that you can find in the archives.

 

The one thing I notice on your errors is the exec() function disabled for security reasons -- that sounds like a configuration problem with your server / hosting provider maybe.

 

I would suggest checking on the PHP configuration on the server maybe....

 

- hollowplanet

Posted

Hollow....thanks for your response. I will take that up with my isp.

 

Correct me if i'm wrong but that would be "safe mode" in the php.ini file.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...