close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Urgent: Site not returning from Paypal

Thread began 1/24/2012 4:13 am by laura_ellis427550 | Last modified 1/24/2012 11:41 am by laura_ellis427550 | 1357 views | 6 replies |

laura_ellis427550

Urgent: Site not returning from Paypal

I have a site that successfully goes from the cart page to the Paypal website and allows you to enter the relevant details. However, pressing continue on Paypal brings up a blank page rather than re-directing back the customers site to confirm the order. The URL displayed on the blank page is:

pp_confirm.php?token=EC-41203608VT257821J&PayerID=XHBN2ZG76K6XN

Can anyone tell me what is wrong? This is urgent as no-one can currently complete a purchase online.

Regards,

Laura

Sign in to reply to this post

Ian S

Hi Laura,

To try and find a problem you would need to paste the code of your page rather than just the link, as posting the link just shows the front end of the site and not the underlying problematic code.

It might also be worth looking to make sure there is no whitespace in the pp_confirm.php page, between PHP tags as this is sometimes a cause of the dreaded white screen.

Cheers
Ian

Sign in to reply to this post

Jason ByrnesWebAssist

a blank php page means that a php error is occurring but error reporting is turned off.

add the following code at line 1 to turn error reporting on:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>




once we know the error, we will be able to determine where to look for the cause.

Sign in to reply to this post

laura_ellis427550

Thanks Jason - getting the following error


Fatal error: Call to undefined function getsqlvaluestring() in /home/sites/ecotale.co.uk/public_html/pp_confirm.php on line 24

Sign in to reply to this post

laura_ellis427550

I sent that last reply too early. Code on line 24 is

$query_rsDetail = sprintf("SELECT stock - (SELECT coalesce(sum(DetailQuantity),0) as soldStock from orders INNER JOIN orderdetails ON OrderID = DetailOrderID WHERE DetailProductID = ProductID AND OrderDate > stock_update) as newStock FROM products WHERE productID = %s", GetSQLValueString($colname_rsDetail, "int"));

This was added when I was entering an inventory control section to the site and was done in conjunction with one of the Webassist tech guys. As I needed help to implement it, I don't know how to work out what's going wrong.

Sign in to reply to this post

Jason ByrnesWebAssist

add the following code block at line 1 of the pp_confirm.php page


php:
<?php

if (!function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  if (
PHP_VERSION 6) {
    
$theValue get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  
$theValue function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch (
$theType) {
    case 
"text":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;    
    case 
"long":
    case 
"int":
      
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case 
"double":
      
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case 
"date":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;
    case 
"defined":
      
$theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue;
      break;
  }
  return 
$theValue;
}
}
?>
Sign in to reply to this post

laura_ellis427550

Thank you Jason - all working fine now.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...