close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Shopping cart empty after moving to a new web host

Thread began 10/19/2022 12:48 pm by Robert Crespo | Last modified 10/19/2022 5:27 pm by Ray Borduin | 228 views | 7 replies |

Robert Crespo

Shopping cart empty after moving to a new web host

Good afternoon,

I have a thorny issue with my shopping cart for my BuyAfricanViolets.com website. I migrated over to GoDaddy as my new web host. Of the four websites I transferred over, I only have issues with one of them, The functionality of the website appears OK so I am a little perplexed as to what is going on. Any help you can provide will be greatly appreciated.

Regards,
Robert Crespo

Sign in to reply to this post

Ray BorduinWebAssist

Usually this is an issue in the php.in with the session_save_path being set to a directory that either doesn't exist or doesn't have proper privileges. This is probably something your hosting provider would have to address for you.

If you create one page that has:
<?php
@session_start();
$_SESSION["test"] = "works";
?>

and then create another page with the code:
<?php
@session_start();
var_dump($_SESSION);
?>

Then visit both pages on your site. If sessions are working then the second page will have the "test"="works" session variable listed. If it isn't then you can use those pages to demonstrate the issue to your hosting provider so that they can fix it for you.

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

Robert Crespo

Ray,

Thank you for getting back to me. I had a feeling it was a session issue. Quick question: for me to test this properly, do you recommend that I add the first session code ( "works") to the details.php page that has an add to cart button and duplicate detail page that has the other session code?

Robert

Sign in to reply to this post

Ray BorduinWebAssist

I'd just create two new blank pages. That way if there is an issue your hosting provider can't mistakenly blame it on other code on the page.

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

Robert Crespo

Excellent suggestion. Let me get right on this.

Sign in to reply to this post

Robert Crespo

OK. For the works session, the page is blank. For the 'var dump' code, the page output is:

array(0) { }

What does this mean?

Sign in to reply to this post

Robert Crespo

I wanted to let you know that I fixed the issue. The user.ini was set to php3 instead of php4. I just copied a working user.ini file from another domain, and the cart is working 100%. Thank you for pointing me in the right direction Ray. A modest donation is coming your way. : )

Regards,
Robert

Sign in to reply to this post

Ray BorduinWebAssist

Thanks Robert. I appreciate it.

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

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