WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error msg on pages with eShop add to cart (14 posts)

  1. starrlabs
    Member
    Posted 4 years ago #

    Hey WP wizards,
    Searched this forum extensively to find an answer and tried a few suggestions such as deactivating and reactivating plugins etc... yet error persists:

    Fatal error: Cannot use string offset as an array in /home/starr0/public_html/wp-content/plugins/eshop/eshop-add-cart.php on line 117

    Is it possible 3.0 did not fully install or install improperly? Pages do appear when eShop is deactivated, though we can't really sell anything when that happens, hahahah! Thanks for any an all help!

    http://www.starrlabs.com

  2. elfin
    Moderator
    Posted 4 years ago #

    try reinstalling the plugin. Easiest method is to delete the plugin and install a fresh copy.

    If that doesn't fix it, I'll have to do some checking, but I know I can't replicate the issue.

  3. starrlabs
    Member
    Posted 4 years ago #

    Hmmmm... OK, I'll try that out. In the meantime, I simply tried deactivating and reactivating the plugin again, and now it works on some pages but not here: http://www.starrlabs.com/products/ztars

    Thanks for the quick response.

  4. elfin
    Moderator
    Posted 4 years ago #

    Take a look at the product details section - can you create a screenshot of that portion and post a link to it, I might be able to spot if something is screwy.

  5. starrlabs
    Member
    Posted 4 years ago #

    Sorry for the confusion, but what 'product details section' are you referring to? And do you want a screenshot of code or the actual page once I figure out what we're talking about here?

  6. elfin
    Moderator
    Posted 4 years ago #

    sorry, on the edit page for that post/page.

    The product entry section, with all the product info.

  7. starrlabs
    Member
    Posted 4 years ago #

    Let me know if this is what you need. LINK I don't see a lot of info here. Seems to point to all our ztar pages and collate them into one long page... or somethin' like that.

  8. allstone
    Member
    Posted 4 years ago #

    I had a similar problem (identically, actually) though it wasn't just an update to 3.0 that caused it, but a movement of the database.

    If you go to the administrative backend and down to the eShop settings, and the "base" you'll get a page for of "foreach" errors too. At least I did.

    Anyway, I ended up just manually reentering all the prices for my products, and that did the trick.

    One thing that I see from your screenshot starrlabs is that the eShop fields are not there. Was this image while the eShop was activated?

  9. elfin
    Moderator
    Posted 4 years ago #

    yep the image doesn't include the product data section.

  10. starrlabs
    Member
    Posted 4 years ago #

    Yes, the screenshot was taken when the eShop was activated, but I agree that it doesn't really show much of anything...weird. Also, it only seems to happen on these 2 pages right now: http://www.starrlabs.com/products
    http://www.starrlabs.com/products/ztars

    I've re-entered prices on every page and that seemed to help shorter pages come back live.

    It is supposed to pull all of our individual ztar pages and collate them into one long ztar product page with pull down add-to-cart menus after each product. Kind of like what you see on this page:

    http://www.starrlabs.com/products/ztars/mini-z-series

    PS. I just took over this site and the original builder is nowhere to be found.

    Thanks for the help thus far!

  11. elfin
    Moderator
    Posted 4 years ago #

    Looks like things are working correctly now?

  12. starrlabs
    Member
    Posted 4 years ago #

    Yes indeed, all is good (at least workable)! I had to manually re-enter all of the eshop fields i.e. price, style, shipping, sku #'s, etc... Thanks for all the info and help!

  13. emailaya
    Member
    Posted 3 years ago #

    After adding a second item to the cart and wanting to proceed to Paypal I got this:
    Fatal error: Cannot use string offset as an array in /home/amos/public_html/wp-content/plugins/eshop/cart-functions.php on line 1024

    When trying to delete the second item from the cart, I got this:
    Fatal error: Cannot use string offset as an array in /home/amos/public_html/wp-content/plugins/eshop/cart-functions.php on line 2090

    Emptying the cart and re-adding the items back, "fixed" the problem but I wonder what caused this problem in the first place as I'm sure this problem will happen again.

    (I'm using version 6.2.8 with WP 3.1.2)
    Thanks

  14. elfin
    Moderator
    Posted 3 years ago #

    not connected to the issue from 10 months ago, please start a new thread.

Topic Closed

This topic has been closed to new replies.

About this Topic