close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error on confirm page

Thread began 12/23/2009 4:21 pm by bac4571381904 | Last modified 12/29/2009 8:18 pm by Eric Mittman | 834 views | 4 replies |

bac4571381904

Error on confirm page

This website was working fin then i changed something and i got this error then i changed it back and still got this error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/goldne5/public_html/confirm.php on line 301

Sign in to reply to this post

bac4571381904

In the store order summary table i had this variable for for Order ID $_SESSION["eCart1_OrderID"] and my page worked then I changed something and now the page doesnt work and now i have to remove that variable and leave the spot blank and my page will work but my download page no longer works because i am going to sell digital files
here is line 301:

$WA_fieldValuesStr = WA_eCDB_ConvertNumber("$_SESSION[\"eCart1_OrderID\"]") . "|" . "".session_id() ."" . "|" . WA_eCDB_ConvertNumber("".$eCart1->GrandTotal() ."");

Sign in to reply to this post

Jason ByrnesWebAssist

line 301 should be:

php:
$WA_fieldValuesStr = WA_eCDB_ConvertNumber($_SESSION['eCart1_OrderID]') . "|" . "".session_id()  ."" . "|" . WA_eCDB_ConvertNumber("".$eCart1->GrandTotal()  ."");
Sign in to reply to this post

bac4571381904

Didn't work. the server behavior disappeared. This is from the backup file i created of the website folder. This site worked 2 days ago when i tested it and i made no changes to this file. But for some reason it does not work now.
The orderID field in the store order summary table had this variable: $_SESSION["eCart1_OrderID"] and this worked i was able to buy something then it would take me to a download page to download the file. I don't know why it doesnt work now. Once i got the site to work i copied the whole site folder to make a backup of it. And today when i couldnt get the site to work i deleted my website from the web server and uploaded the backup folder of the website that was working And i get this error message for some reason:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/goldne5/public_html/confirm.php on line 301

This is line 301 from the confirm.php page

$WA_fieldValuesStr = WA_eCDB_ConvertNumber("$_SESSION[\"eCart1_OrderID\"]") . "|" . "".session_id() ."" . "|" . WA_eCDB_ConvertNumber("".$eCart1->GrandTotal() ."");

Sign in to reply to this post

Eric Mittman

I think that I may be working on you with this issue in a ticket, if so there is no need to respond to this thread. If not, please explain a little more about the problem you are experiencing and what you have updated the code to be like. The code that you posted in your last example might produce the same error you were having earlier, you should use the code example that Jason posted to get past this error.

Sign in to reply to this post

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