Vanilla PS2 database error
I am new to PowerStore 2 so please bear with me on this question.
I created a vanilla PowerStore2 environment on my PC which will be used to see how the system "should" work for when I start modifying the code for our commercial store. This is the first PS2 store I have created.
MY CONFIGURATION and SETTINGS:
Using DW4, XAMPP 1.73, MySQL 5.3.1 under Windows 7.
Path to the PS2 files on my localhost is C:\xampp\htdocs\PowerStore2NoUpdates. All PS2 files are stored under the PowerStore2NoUpdates folder.
localhost.php file looks like this:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_PowerStore2NoUpdates = "localhost";
$database_PowerStore2NoUpdates = "psvanilladb";
$username_PowerStore2NoUpdates = "stevnmburns";
$password_PowerStore2NoUpdates = "XXXXXXXXXX";
$PowerStore2NoUpdates = mysql_pconnect($hostname_PowerStore2NoUpdates, $username_PowerStore2NoUpdates, $password_PowerStore2NoUpdates) or trigger_error(mysql_error(),E_USER_ERROR);
?>
I can successfully test the DB connection from within DW.
WA_Globals.php looks like this;
<?php
$WAGLOBAL_Root_URL = "http://localhost/htdocs/PowerStore2NoUpdates/" ;
...
$WAGLOBAL_localRoot = "/PowerStore2NoUpdates/";
$WAGLOBAL_remoteRoot = "/";
From an IE browser, when I enter "localhost" I get a redirected URL of xampp/ and I see the XAMPP congrats screen.
MY ERROR:
From within DW if I click on Live Code from the Index.php I see only the first third of the index page and I get the following two messages:
<b>Warning</b>: session_start() [<a href="function.session-start">function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\PowerStore2NoUpdates\index.php:3) in <b>C:\xampp\htdocs\PowerStore2NoUpdates\WA_eCart\WA_eCart_Definition_PHP.php</b> on line <b>479</b><br>
<br>
<b>Warning</b>: session_start() [<a href="function.session-start">function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\PowerStore2NoUpdates\index.php:3) in <b>C:\xampp\htdocs\PowerStore2NoUpdates\WA_eCart\WA_eCart_Definition_PHP.php</b> on line <b>479</b><br>
Finally, if I try to view the index.php via IE I again see only the top third of the page and I get the following messages:
Warning: mysql_select_db() expects parameter 2 to be resource, null given in C:\xampp\htdocs\PowerStore2NoUpdates\CSSMenuWriter\cssmw_home\menu.php on line 58
Warning: mysql_query() expects parameter 2 to be resource, null given in C:\xampp\htdocs\PowerStore2NoUpdates\CSSMenuWriter\cssmw_home\menu.php on line 60
I believe the answer is in my configurations as I am able to see the first third of the index page but the code seems to die when trying to determine the DB it should be connecting to in order to display the rest of the page.