Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Preview button error 400

    All of a sudden (of course) I noticed that on one of my sites some items do no display after hitting the preview button when modifying a product. Some preview fine, others return 400 error.

    Here is the difference between those that preview and those that dont at the end of the URL

    those that don't have:
    new_product_preview&page=1

    Those that do have :
    new_product_preview

    Why is this happening?

  2. #2
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: Preview button error 400

    Does a lack of responses indicate lack of interest or lack of knowlege?

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Preview button error 400

    I do not get that ...

    My URL contains the following when I click EDIT:
    /admin/product.php?page=1&product_type=1&cPath=68&pID=193&action=new_product
    and then when I click the PREVIEW:
    /admin/product.php?cPath=68&product_type=1&pID=193&action=new_product_preview&page=1
    What are you getting on the EDIT for the Product?

    What are you getting on the PREVIEW for the Product?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: Preview button error 400

    Here are the two URLs for preview:
    http://*****/product.php?cPath=14_1&...preview&page=1 (gives me error 400)
    http://*****/product.php?cPath=14_1&...preview&page=1 (gives me no error)

    They are identical, but one works and one doesnt, they are both in the same category. The only difference I see is one had a model number and the other doesnt.

    Here are the two EDIT urls and nice call:

    ***/product.php?cPath=14_1&product_type=1&pID=33&action=new_product
    ***/product.php?page=1&product_type=1&cPath=14_1&pID=1&action=new_product

    The bad boy has added some extra characters. How why what and when?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Preview button error 400

    Is products_id 1 the only Product that breaks like this?

    Based on the Edit URLs, I am surprised it is not products_id 33 with the error ...

    Are either of these Products Linked Products?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: Preview button error 400

    Q1: No, other products in other categories experience same sympton.

    Q2: Products are not linked.

    Product 1 is the one that doesnt update.

    Product 33 updates fine.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Preview button error 400

    There are more than one Product that does this ...

    If I edit your products in that Category, there are at least two, plus the duplicate that I made of one of the broken Products ...

    There is something in the Product Description causing this ... I did not spend a lot of time trying to figure out "what" is wrong with the description but I did notice that a "working" was in a Table and the broken products were not ...

    If I remove the Product Description from the duplicate Product that I made ... NOTE: the status is OFF on that Product ... then I get a normal page on the Preview ... if I leave the Product Description in it, then I get the error ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: Preview button error 400

    Its possible that i have remnants from product tabs that I used to use before I upgraded to 138a.

  9. #9
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: Preview button error 400

    Yup, all the code for tab lite was still in there. I havent taken it out yet, but I am sure thats the problem.

    I wonder if thats a bug that needs to be reported to the author.

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Preview button error 400

    I am afraid that I do not know ...

    It could just be something in the products_description that is some how triggering an error ... I haven't seen this type of issue before ...

    What is interesting is that I can take the products_description and put it in a clean v1.3.8 and not get that error that you are ...

    You do have extreamly long lines of HTML that are wrapping oddly, but I have not found any specific breaks that I can add to fix this, but you might try that so they HTML is not being broken in odd places such as between words ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. error 400 on preview in admin
    By pixelpadre in forum General Questions
    Replies: 5
    Last Post: 5 May 2011, 10:23 PM
  2. Preview button gives error message.
    By Kalcat in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Apr 2010, 07:46 PM
  3. '400 Bad Request' Error when trying to preview product
    By epools in forum General Questions
    Replies: 4
    Last Post: 14 Oct 2009, 09:00 PM
  4. Backup - Internal Server Error 400
    By tiger in forum General Questions
    Replies: 10
    Last Post: 6 Nov 2006, 01:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg