Insert loses session information
I recently updated to version 2.1 and now when I use the wizard to create files. The insert file loses the session information before it gets to the detail page. Here are the files. Thanks.
I recently updated to version 2.1 and now when I use the wizard to create files. The insert file loses the session information before it gets to the detail page. Here are the files. Thanks.
try adding the following code at line 1 of the detail page:
<?php @session_start(); ?>
on the insert page, try changing line 67:
header("Location: ".$WA_redirectURL);
to:
session_commit();
header("Location: ".$WA_redirectURL);
if you continue to have a problem, add the following code just before the </body> to help troubleshoot:
<?php
echo("<pre>");
var_dump($_SESSION);
echo("</pre>"):
echo("SQL: ".$query_WADAgallery);
?>
this will write the session contents and the recordset to the page, post this back
That didn't help and the last bit of code just created a parse error.
this line:
echo("</pre>"):
should be:
echo("</pre>");
When I put in the corrected code on the details page this is what I got.
array(5) {
["blogID"]=>
int(0)
["WADA_Insert_blog"]=>
int(0)
["galleryImageinsert_gImagePicture"]=>
string(22) "thumb_1LauraHawley.jpg"
["galleryImage_gImageID"]=>
int(0)
["WADA_Insert_gallery"]=>
int(0)
}
SQL: SELECT galleryID, galleryName, galleryDescription, galleryActive FROM gallery WHERE galleryID = -1 OR ( -1= -1 AND galleryID= 0)
so the WADA_Insert_gallery value is being set to 0
in the database, what is the data type for the galleryID column? is it set to be the primary key? and to auto number?
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.