NO REDIRECT - urgent help needed
I have put a straightforward add to cart button on a page - but the page will not redirect. Please can you take a look and see why this isn't working for me. The page can be found at:
help4health_products.php
I have put a straightforward add to cart button on a page - but the page will not redirect. Please can you take a look and see why this isn't working for me. The page can be found at:
help4health_products.php
could be a php error occurring causing the redirect to fail.
add the following code at line to turn on error reporting for troubleshooting purposes:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
let me know when that code has been added and i'll take a look.
also, if you could send a copy of the /help4health_products.php page in a zip archive so i can examine the code, that would be helpful.
I have turned error messaging on but nothing showing ... also I am attaching a zip of the file. I have struggled with this on another bit of the site and got round it with a bit of handcoding but I would like to get it to work how it should. Thanks for your prompt help on this.
I see a couple places where there are spaces outside of the php tags, spaces outside of the PH tags will cause the redirects to break.
the first place is a space before the first php tag at line 1. the code at line one starts with a blank space:
" <?php"
that blank space should not be there:
"<?php"
the second instance is a blank line at line 12.
lines 9 - 13 are:
<?php
$eCart1->GetContent();
?>
<?php require_once('Connections/help4health.php'); ?>
the blank line at line 12 should be removed:
<?php
$eCart1->GetContent();
?>
<?php require_once('Connections/help4health.php'); ?>
Hi - have removed the spaces and I am afraid it makes no difference! I would think if the spaces would make the redirect fail it would also make the addition to the basket fail too wouldn't it?
no, the spaces would not effect adding the item to the basket, it would only efect the redirect.
I have created a support ticket so we can look into this issue further.
To view and edit your support ticket, please log into your support history:
supporthistory.php
If anyone else is experiencing this same issue, please append to this thread.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.