Jump to content

Product not found This product is no longer available. after upgrade


TheCamoHut

Recommended Posts

OK a few weeks ago I upgraded from PS 1.4 to now 1.6.1.15 using the one click upgrade module.

 

I now have noticed you can not add to cart from catalog pages you have to click into the item.

 

when you click "Add to Cart" from the home page you get the message "Product not found This product is no longer available." but if you click onto the item where you see the product descriptions you can add to cart from there.

 

I've looked around from some topics similar but no fix.

 

TheCamoHut.com is my site

 

post-678342-0-35085600-1501178938_thumb.jpg

post-678342-0-86867800-1501178951_thumb.jpg

Link to comment
Share on other sites

When you click Add from the home page, the following is sent to the server via javascript.  As you can see, the id_product field is empty.  I don't know your store or what happened during the upgrade, but perhaps the blockcart module needs to be reset, or perhaps you have overrides or customizations that are interferring

  1. controller:
    cart
  2. add:
    1
  3. ajax:
    true
  4. qty:
    1
  5. id_product:
  6. token:
    706741ca1e4a4070dd21980d80ee2f2b
Link to comment
Share on other sites

As per my investigation, I can add a product to cart when opening the product detail page first.

I cannot do so, when I try to add a product from the main page or a category page.

I tried to run some basic analysis but the problem is:

 

Your page LOADS FOREVER. Example: Each of your CSS loaded 8 times until I stopped the page from loading after more than 60 seconds. There must be a majore issue with your site.

 

See my screenshot with developer tools. If shows some CSS files. Overall the network tools showed 690 items loaded until I stopped loading. For me it looks like your module hooks are executed repeatedly.

 

Check if you can disable and re-enable all modules.

 

 

post-760015-0-03077000-1501446385_thumb.jpg

Edited by Scully (see edit history)
Link to comment
Share on other sites

I've already established that the issue is that the id_product is missing when you try to add from the home page.  So when you click add to cart, the product is not being sent to the server, and therefore the server does not know which product to add.

 

Why that is happening needs to be researched, there is really now way I can tell you from here without digging into your code and module positions to see why. 

 

It could be an override or custom module that you have installed from before the upgrade that is interfering, or it could be some customization that you have made

Link to comment
Share on other sites

The missing id_product is correct. But the real problems of this shop go far beyone the id_product or the following error with add to cart.

The real problem is that the site is loading in an ENDLESS LOOP.

My firefox crashed after appx. loading 3 minutes and way over 1'000 ressources.

 

Other browsers might take longer until crash. But the main statement is the same. The shop isn't usable for endusers at this stage.

Once the endless loop is solved, the id_product issue might be gone as well.

Link to comment
Share on other sites

  • 2 years later...

Hi,

I have identified an similar bug when using one page checkout. Likely caused when upgrading from 1.4.8 to 1.6.1.4.

Bug: 
1) If trying to add additional product quantity on checkout page....
2) Or loading checkout page, and trying to continue shopping.....

Will both render in a "This product is no longer available". 

The problem will then persist for all products until browser cache is deleted. 

Details can  be sent in pm and compensation will be given to anyone that is able to resolve this swiftly, since it is a live webshop.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...