Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Our Products

Tips and Tricks HQ Forum » WP eStore Forum

PHP Session Error? But PHP confirmed working!

(15 posts) (6 voices)
  • Started 1 year ago by frsn
  • Latest reply from Wagsy
  • Possible Solutions (Related Topics):
    1. WP eStore not working with my theme
    2. eStore - Squeeze form with free download not working (nothing in error logs)
    3. PHP PayPal Session error (cart empty) on redirect - Plugin conflict
    4. Shopping Cart PHP Sessions error

Tags:

  • php session error
12Next »
  1. frsn
    Member

    Hi,

    When I try to check out from my shop by clicking the Paypal button, I get the following message:

    "Either your shopping cart is empty or the PHP Session on your server is not working correctly. Please check this article"

    I tried browsing to another page with an item in my cart, and it stayed there, so I know my PHP is working. I also tried implementing a fix recommended in another thread: change "define('WP_ESTORE_SAVE_SESSION_TO_COOKIE', false);" to "define('WP_ESTORE_SAVE_SESSION_TO_COOKIE', true);" but it's still not working!

    Any idea what could be going wrong?

    FYI, when I go into the Wordpress editor for "wp-cart-for-digital-products/wp_eStore1.php" WP tells me it is (inactive). Could this be the problem? If so, how do I fix it?

    Here's my Shop page:

    [http://www.knightshillpublishing.com/?page_id=257]

    Thanks a million for any help!

    Posted 1 year ago #
  2. amin007
    Key Master

    Your site is not setup correctly so its not resolving the domain name for the WordPress plugins URL constant. When you click the checkout button your site is going to the following URL?

    http://0338e98.netsolhost.com/blog1/wp-content/plugins/...........

    Take a look at the domain name.

    Posted 1 year ago #
  3. frsn
    Member

    Thank you for your reply! So do you think I messed up when I moved my wordpress to a new directory?

    Everything is supposed to be at [http://www.knightshillpublishing.com now] That other URL is the original one I got from my host.

    Posted 1 year ago #
  4. amin007
    Key Master

    Your hosting provider should be able to look at this and help you but essentially you should never see things like the following in the URL when browsing live sites:

    http://0338e98.netsolhost.com/blog1/....

    Ask your hosting provider why the following address doesn't resolve the domain name and shows the doming name there?

    http://0338e98.netsolhost.com/blog1/?p=328
    Posted 1 year ago #
  5. frsn
    Member

    My hosting provider sucks. I found out that the error was that my .htaccess file was not overwriting the weird URL (original server URL) with my domain name. This helpful person on the internet gave the solution:

    [http://www.blog.web6.org/wordpress-permalinks-404/]

    Basically I pasted

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    into my .htaccess file instead of what was there. Now the shopping cart works and all my URLs are my domain name.

    Thank you so much for your help! I totally appreciate that you always provide support to your customers.

    Posted 1 year ago #
  6. Shelagh
    Member

    I have just installed eStore and the affiliate programme on my blog, and whilst it has taken all day, the videos made it all straightforward.
    I had to update the php verstion via the hosting company,to version 5, to update to Wordpress 3.2.

    But now I'm getting the same problem as others, that the product does not add to the shopping cart.

    I've seen various fixes on here; what are the best things to try now (and be gentle, please - I have am very low techhie level.. Site is [www.spiritualmarketing-blog.com]

    and the store (just one product) [http://spiritualmarketing-blog.com/store/]

    Posted 1 year ago #
  7. Ivy
    Administrator

    @Shelagh, I tested the PHP session on your site and it is not working properly. Please see the following forum post as it will tell you how to test and fix this issue:

    http://www.tipsandtricks-hq.com/forum/topic/php-session-not-working-correctly

    Posted 1 year ago #
  8. Shelagh
    Member

    Thank you very much.The hosting company did indeed find a problem and now when I Add the product and go to Paypal, it works.

    But there are 2 shopping cart icons showing; one top left has a green tick and says Items in cart; one bottom right has a red cross and says shopping cart empty.

    If I add another item, it shows 2 items, updates the amount, but there is still this Cart emty icon on the right.

    It goes through to Payoal OK.

    Is this another hosting issue, or something I can fix?

    Shelagh

    Posted 1 year ago #
  9. Ivy
    Administrator

    The cart with the red x is to empty out (delete) the shopping cart. It does not mean the cart is empty. Your customers can use this if they have made a mistake and want to start over.

    Posted 1 year ago #
  10. Shelagh
    Member

    Duh! See how it works now!

    I'm so happy to have it working properly!

    Posted 1 year ago #

RSS feed for this topic

12Next »

Reply »

You must log in to post.

Tips and Tricks HQ  | WordPress Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin