close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Blank products_detail page

Thread began 4/24/2015 8:13 am by joerg431091 | Last modified 4/28/2015 12:02 pm by Ray Borduin | 2769 views | 8 replies |

joerg431091

Blank products_detail page

Hi,

I tried to apply FedEx shipping calculation to an existing eCart object by using the checkout wizard. After finished, the checkout pages had been overwritten with the new version.

Now I have trouble with my products_detail.php page showing completely blank.

I added the error log to the page and get the following error:

Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /Applications/MAMP/htdocs/XXXXXX/Connections/XXX.php on line 9

Parse error: syntax error, unexpected ';' in /Applications/MAMP/htdocs/XXXXXX/WA_eCart/eCart1_PHP.php on line 120

I then changed the error reporting in the php.ini file of the MAMP folder to:

error_reporting = E_ALL & ~E_DEPRECATED

But I am still getting the same error message. The php.ini file that I changed is the one that is shown in the path of the phpInfo page.

What am I missing? Any thoughts are appreciated.

Thanks a lot,

Joerg

Sign in to reply to this post

Ray BorduinWebAssist

You probably need to remove the error log code you added to the page, since it is overwriting the php ini setting for the page and showing the deprecated message.

In terms of the error that is actually preventing the page from showing that is on the page referenced: WA_eCart/eCart1_PHP.php

and the line referenced: 120

I could look at that line and tell you what is wrong with it if you attached a copy of that page.

Sign in to reply to this post
Did this help? Tips are appreciated...

joerg431091

Hi Ray,

Thanks for your prompt response.

I will attach a copy of the eCart1_PHP.php page to this post.

The line 120 is: $totalShipping += ;//Result

Thanks again,

Joerg

Sign in to reply to this post

Ray BorduinWebAssist

It looks like there was a flat rate shipping rule applied with a blank value.

Update that line to:

$totalShipping += 0;//Result

That should solve the problem.

Sign in to reply to this post
Did this help? Tips are appreciated...

joerg431091

Hi Ray,

That took care of it. Thank you very much.

Best,

Joerg

Sign in to reply to this post

joerg431091

Hi Ray,

A follow up problem if you allow:

I received all testing information from FedEx (Account, Meter, etc) that I included during the setup with the checkout wizard.

I can't see any type of shipping information or option during checkout nor do I see any error messages etc. I could not find any tutorial or information about what I am supposed to see during checkout so am not sure about how to go forward.

I found an older post from Jason to troubleshoot (which was for eCart 5) and did include the following code in the confirm.php page:

<?php
@session_start();
     echo "<p>FedEX: <br />"; 
     echo "Full Request: ".(isset($_SESSION["eCart1_FedEx_FullRequest"])?htmlentities($_SESSION["eCart1_FedEx_FullRequest"]):"n/a")."<br />";  
     echo "Full Response: ".(isset($_SESSION["eCart1_FedEx_FullResponse"])?htmlentities($_SESSION["eCart1_FedEx_FullResponse"]):"n/a")."<br /></p>";  
?>

but still do not see anything.

Is there a tutorial or any other information available that explains how to include FedEx rate calculation for eCart 6 or can you point me in the right direction about how to do this?

Ultimately I like to present the customer with several shipping options that he/she can choose from.

Thanks again and best regards,

Joerg

Sign in to reply to this post

Ray BorduinWebAssist

The shipping server behavior should be applied on the confirm_cart.php page. The debug code you added should show the posted data, so it implies that the page never tried to get a fedex quote at all. If you provide a copy of the page I can take a look and see if I can spot a problem.

If you gave me a url to reproduce the problem and ftp access I could debug more thoroughly.

Sign in to reply to this post
Did this help? Tips are appreciated...

joerg431091

Hello Ray,

I will attach the confirm_cart.php page. I unfortunately do not have this online yet as I like to see how this functions before I change the current checkout of the site. But hopefully the page might help.

Thanks so much.

Joerg

Sign in to reply to this post

Ray BorduinWebAssist

It looks like it would work.

Try using this to see the debug information on a different page:

<?php
@session_start();
var_dump($_SESSION);
?>

then go through the checkout process until you see the payment fields. At that point you can open up the debug page in a separate window and it should tell you why fed ex is failing.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...