cart.php preview on local server
I have installed Ecart 5. When I click on the ecart cart button it redirects me to the correct page cart.php. However the page is blank.
I have installed Ecart 5. When I click on the ecart cart button it redirects me to the correct page cart.php. However the page is blank.
when a page displays blank, it means a php error is occurring, but error reporting is turned of in the php.ini file.
to enable error reporting, add the following code at line 1 of your page:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
What does this mean?
//WA eCart Include require_once("../WA_eCart/store1_PHP.php"); ?>
Notice: Undefined variable: store1 in /Applications/MAMP/htdocs/Pages/c01.php on line 10
Fatal error: Call to a member function GetContent() on a non-object in /Applications/MAMP/htdocs/Pages/c01.php on line 10
this error usually occurs if the Cart object and the Database connection have been with the same name.
You must use unique names for you application objects like connection, recordset or cart object.
please send a copy of your page so I can examine the code.
the file you have sent is not the same as the one generating the error message.
The error massage is saying:
Notice: Undefined variable: store1 in /Applications/MAMP/htdocs/Pages/c01.php on line 10
however line 10 in the file you sent is
if (!function_exists("GetSQLValueString")) {
there is no variable named "store1" on line 10.
I need to see the copy of the file that is causing the error you are reporting.
It was the same file without this code in front
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
I attached it again with the code
right, so when you added in this code:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
you deleted the next opening php tag. Line 1 - 7:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
//WA eCart Include
require_once("../WA_eCart/store1_PHP.php");
?>
should be:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
<?php
//WA eCart Include
require_once("../WA_eCart/store1_PHP.php");
?>
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.