close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error message on bottom of success page, even though error reporting is turned off: array(1) { ["languageID"]=> int(1) }

Thread began 9/14/2019 4:05 pm by Roxana | Last modified 9/17/2019 4:50 pm by Ray Borduin | 989 views | 10 replies |

Roxana

Error message on bottom of success page, even though error reporting is turned off: array(1) { ["languageID"]=> int(1) }

I added some code to the bottom of the page, so that the language setting would remain after the session was deleted with the load of the success page,

With error reporting on, this is the error code at the bottom of the page:
Notice: A session had already been started - ignoring session_start() in /Applications/MAMP/htdocs/SEGUFIX-SHOP_2019/checkout_quote_success_canada.php on line 516

Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /Applications/MAMP/htdocs/SEGUFIX-SHOP_2019/checkout_quote_success_canada.php on line 532

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /Applications/MAMP/htdocs/SEGUFIX-SHOP_2019/checkout_quote_success_canada.php:144) in /Applications/MAMP/htdocs/SEGUFIX-SHOP_2019/checkout_quote_success_canada.php on line 536
array(1) { ["languageID"]=> int(1) }

Sign in to reply to this post

Roxana

file in PM

Sign in to reply to this post

Ray BorduinWebAssist

The code on the bottom of the page is from some leftover debug code on line 540:
<?php var_dump($_SESSION);?>

just delete that line.

On line 516 you have:
session_start();

You can't start a session in the middle of the page, and you can't start a session that has already been started (it is started on line2). You probably just have to delete that line.

Actually I see you seem to be trying to reset the session entirely on the bottom of the page... I think you have to delete the session start on line 536 as well. Really I don't think lines 530-536 are necessary.

Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

I got rid of the code, and the language session remains like intended.

The mini cart is not deleted. At least not when the success page has loaded. When I switch to another page, it is empty.

Sign in to reply to this post

Ray BorduinWebAssist

If you want it deleted before the page loads then the code has to be on the top of the page, not the bottom.

Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

With the code on top of the page, it deletes all contents before, so instead of opening the success page with all order information, it opens the empty cart page.
I am not sure why it worked before, but the language session remained, the success page showed all the order number and the mini cart was empty with a zero amount..

Sign in to reply to this post

Roxana

Second page attached with this comment. It would not save two attachments with the same name.

Sign in to reply to this post

Ray BorduinWebAssist

It should probably be cleared below so you can show the cart contents above. Where is the mini cart coming from? I searched the page for "net amount" and I don't see it anywhere... maybe it was accounted for on the include that has the mini cart.

Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

Yes, the mini cart is in the navigation includes document. It is part of the template and above the content code. I would think, if I ended the session before the navigation include and after the content, it should work. But that doesn't work, because the navigation is above the content.

I am not sure how it was cleared before without erasing the success page. The only change I made was replace the 0,00 with

<?php echo WA_eCart_DisplayMoney($segufix, $segufix->TotalColumn("TotalPrice")); ?>

so that it would use the correct currency symbol when the cart was empty

Sign in to reply to this post

Ray BorduinWebAssist

Use:
<?php echo WA_eCart_DisplayMoney($segufix, 0); ?>

It sounds like it showed zero before because it was set to zero and it wasn't actually showing the cart total.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

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