Guest Posted August 16, 2006 Share Posted August 16, 2006 Everthing goes great during check out but when I click next i get this? Warning: paypal_wpp::paypal_init() [function.paypal-init]: open_basedir restriction in effect. File(/Services/Paypal/PayPal.php) is not within the allowed path(s): (/var/www/vhosts/tarojoenterprises.com/httpsdocs:/tmp) in /var/www/vhosts/tarojoenterprises.com/httpsdocs/osc/includes/modules/payment/paypal_wpp.php on line 304 Warning: paypal_wpp::paypal_init(Services/Paypal/PayPal.php) [function.paypal-init]: failed to open stream: Operation not permitted in /var/www/vhosts/tarojoenterprises.com/httpsdocs/osc/includes/modules/payment/paypal_wpp.php on line 304 Fatal error: paypal_wpp::paypal_init() [function.require]: Failed opening required 'Services/Paypal/PayPal.php' (include_path='.::/var/www/vhosts/tarojoenterprises.com/httpsdocs/osc/pear/') in /var/www/vhosts/tarojoenterprises.com/httpsdocs/osc/includes/modules/payment/paypal_wpp.php on line 304 Now this is the code for this file!!!! //Initialize the connection with PayPal function paypal_init() { global $customer_id, $customer_first_name; require_once ('Services/Paypal/paypal.php'); require_once ('Services/PayPal/Profile/Handler/Array.php'); require_once ('Services/PayPal/Profile/API.php'); $handler =& ProfileHandler_Array::getInstance(array( 'username' => MODULE_PAYMENT_PAYPAL_DP_API_USERNAME, 'certificateFile' => MODULE_PAYMENT_PAYPAL_DP_CERT_PATH, //This needs to be an absolute path i.e. /home/user/cert.txt 'subject' => '', 'environment' => MODULE_PAYMENT_PAYPAL_DP_SERVER)); $profile = APIProfile::getInstance(MODULE_PAYMENT_PAYPAL_DP_API_USERNAME, $handler); $profile->setAPIPassword(MODULE_PAYMENT_PAYPAL_DP_API_PASSWORD); $caller =& Services_PayPal::getCallerServices($profile); //Create a caller object. Ring ring, who's there? if (trim(MODULE_PAYMENT_PAYPAL_DP_PROXY) != '') { $caller->setOpt('curl', CURLOPT_PROXYTYPE, CURLPROXY_HTTP); $caller->setOpt('curl', CURLOPT_PROXY, MODULE_PAYMENT_PAYPAL_DP_PROXY); } $caller->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); $caller->setOpt('curl', CURLOPT_TIMEOUT, 180); $caller->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); if(Services_PayPal::isError($caller)) { if ($this->enableDebugging == '1') { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'PayPal Error Dump', "In function: paypal_init()\r\n\r\n" . var_dump($caller), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } $this->away_with_you(MODULE_PAYMENT_PAYPAL_DP_TEXT_GEN_ERROR . $caller->Errors->ShortMessage . '<br>' . $caller->Errors->LongMessage . ' (' . $caller->Errors->ErrorCode . ')', true); } else { return $caller; } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.