Forums

[Plugin: eShop] Error: Warning: session_destroy() (16 posts)

  1. mborin
    Member
    Posted 1 year ago #

    I get an error message when I try to empty shopping cart.

    Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session

    Any idea how to fix this?

  2. elfin
    Member
    Posted 1 year ago #

    Which version of eshop, and which version of Wordpress do you have?

    No-one has reported this error before, so tracking it down may take a while.

  3. mborin
    Member
    Posted 1 year ago #

    I have eshop 2.5.4

  4. mborin
    Member
    Posted 1 year ago #

    Also, when I put something in the shopping cart the shopping cart link does not appear in the side bar. When I try to update the cart I also get another error.

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/eshop/cart.php on line 86

  5. elfin
    Member
    Posted 1 year ago #

    Hmm, just tested this locally and things still seem to work OK.

    Open cart.php and comment out, or remove line 14 session_destroy();

    That would be a quick fix, and you may have to remember to do this on each update.

    That shouldn't affect anything else, but I would strongly suggest a test via paypals sandbox to ensure that side works without errors.

  6. elfin
    Member
    Posted 1 year ago #

    Just saw your other message.

    Can you re-upload all files, in case of any errors, and check again.

    However it sounds like there is a problem with session handling on your server. Might be worth asking on their support forums to see if anyone else has similar problems.

  7. mborin
    Member
    Posted 1 year ago #

    When I first installed this plugin it worked perfect. But after a few times of testing it started acting up. So I am sure the files are ok when I first uploaded. Currently the shopping cart is not being filled even though I am taken to the shopping cart url after clicking on Ad To Cart.

  8. mborin
    Member
    Posted 1 year ago #

    Here's something strange... when I disable the plugin all the links to the shopping cart appear in the side bar. When I activate it again it seems to work. I'll update if any more surprises come up.

  9. elfin
    Member
    Posted 1 year ago #

    the links get hidden by the plugin.

    Strange that there was a problem that disappeared - did you perhaps install another plugin?

  10. mborin
    Member
    Posted 1 year ago #

    Problem happened again. I am upgrading to the latest version. Will let you know how it goes.

  11. mborin
    Member
    Posted 1 year ago #

    Upgraded but problem is still there. The only other issue now is that my site loads slower on each page. When I disable the plugin it's back to loading fast.

  12. mborin
    Member
    Posted 1 year ago #

    I,m getting an error when I go to the downloads page:

    copy(/home/relogica/public_html/wp/wp-content/uploads/../eshop_downloads/.htpasswd) [function.copy]: failed to open stream: No such file or directory in /home/relogica/public_html/wp/wp-content/plugins/eshop/cart-functions.php on line 873

    Warning: copy(/home/relogica/public_html/wp/wp-content/uploads/../eshop_downloads/.htaccess) [function.copy]: failed to open stream: No such file or directory in /home/relogica/public_html/wp/wp-content/plugins/eshop/cart-functions.php on

  13. mborin
    Member
    Posted 1 year ago #

    Inside eShopBase settings I click on the link to eShop Base Products (wp-admin/options-general.php?page=eshop_base.php) I get the following error:

    Cannot load eshop_base.php.

  14. elfin
    Member
    Posted 1 year ago #

    The last one is a mistake, which I've fixed for the next update.

    the files not copying, looks like a possible problem with the chmod setting of your wp-content directory.

    What other plugins do you have installed?

  15. mborin
    Member
    Posted 1 year ago #

    Ok found the problem. Plugin WassUp was causing all this.

  16. elfin
    Member
    Posted 1 year ago #

    Looks like there may be a clash between the 2 plugins then, if I get chance I'll look into it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags