Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Strange problem with zen cart

    It might be related to the excess markup junk that MS editors insert when editing HTML content. The product you mentioned as not being editable contains typical MS markup tags:
    HTML Code:
    <p class="MsoNormal"><span lang="EN-GB" style="font-family: Arial;">Use these bright progressive jigsaw puzzles of
    favourite farmyard animal pictures and begin to count first numbers.<o:p /></span></p>
    
    <p class="MsoNormal"><span lang="EN-GB" style="font-family: Arial;"><o:p> </o:p></span></p>
    
    <p class="MsoNormal"><span lang="EN-GB" style="font-family: Arial;">Silver award winner.<o:p /></span></p>
    
    <p class="MsoNormal"><span lang="EN-GB" style="font-family: Arial;"><o:p> </o:p></span></p>
    
    <p class="MsoNormal"><span lang="EN-GB" style="font-family: Arial;">Links with Early Learning Goals in Knowledge and
    Understanding of the World; and Mathematical Development.<o:p /></span></p>
    
    <p class="MsoNormal"><span lang="EN-GB" style="font-family: Arial;"><o:p> </o:p></span></p>
    
    <p class="MsoNormal"><span lang="EN-GB" style="font-family: Arial;">Age: 2+<o:p /></span></p>
    
    <p class="MsoNormal"><span lang="EN-GB" style="font-family: Arial;">Size: 18x18cm<o:p /></span></p>
    
    <p class="MsoNormal"><span lang="EN-GB" style="font-family: Arial;">Pieces: 4, 6, 8 & 12<span> </span><o:p /></span></p>
    I wouldn't have expected those tags to cause a problem, and indeed, putting just that code in for a description on a test site causes no problems.

    When you compare against the other products you quoted, it's worth noting that the markup is much different. For example, the first "editable" product link you mentioned contains a very simple description by comparison:
    HTML Code:
    age 4+
    Are you using an HTML editor in your admin area, or do you have your editor preference set to "none" ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #12
    Join Date
    Jul 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Strange problem with zen cart

    Sorry to nudge you but any thoughts on this issue?

    What puzzels me is how the page can redirect when the page is not running only for certain items even if the code is termianted on line one.

    If I could work this out I can debug as normal to work out the problem - could it be a .htaccess or something?

  3. #13
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Strange problem with zen cart - Admin preview problems after Access db load

    I have no idea what's causing it.

    Try editing the /admin/includes/modules/product/preview_info.php and insert a die('HERE'); command somewhere.

    Then edit one of your problematic products.
    You should get a blank page with "HERE" on it.

    Then edit the file and move the DIE command further down.

    repeat until you find out at what stage/line the redirect happens.

    That might tell you what kind of displayed data is causing it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #14
    Join Date
    Jul 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Strange problem with zen cart - Admin preview problems after Access db load

    Quote Originally Posted by DrByte View Post
    I have no idea what's causing it.

    Try editing the /admin/includes/modules/product/preview_info.php and insert a die('HERE'); command somewhere.

    Then edit one of your problematic products.
    You should get a blank page with "HERE" on it.

    Then edit the file and move the DIE command further down.

    repeat until you find out at what stage/line the redirect happens.

    That might tell you what kind of displayed data is causing it.
    This is exactly what I want to do but as per above even if I put the die on the very first line it still redirects to the homepage.

    However I have checked in the page and the form action URL is fine before the send (and I can see in the status bar that it is redirecting)

    This is the bit I cannot get my head round and I am stuck. If I could terminate before the redirect or see where the redirect occures then I could trace the problem and work this out.

    I have tried rebuilding the DB totally in a new database to see if its something to do with that

  5. #15
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Strange problem with zen cart - Admin preview problems after Access db load

    I suppose the /admin/product.php file would be another place to use the same technique.
    You mentioned that file earlier. I'm not sure how much debugging you did in it, esp line-by-line.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #16
    Join Date
    Jul 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Strange problem with zen cart - Admin preview problems after Access db load

    Quote Originally Posted by DrByte View Post
    I suppose the /admin/product.php file would be another place to use the same technique.
    You mentioned that file earlier. I'm not sure how much debugging you did in it, esp line-by-line.
    actually this is where I started - on line one of product.php I terminated with a die statement but it made no difference to the redirecting.

    This is the thing - it must be the server causing the redirect rather then a script but how!! I have checked the configuationf or admin settings and cannot see any reason for this.

    This is why this problem is so strange

  7. #17
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Strange problem with zen cart - Admin preview problems after Access db load

    What's in your /.htaccess and /admin/.htaccess files ?
    Is there anything in your server's errorlog when this happens?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #18
    Join Date
    Jul 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Strange problem with zen cart - Admin preview problems after Access db load

    Quote Originally Posted by DrByte View Post
    What's in your /.htaccess and /admin/.htaccess files ?
    Is there anything in your server's errorlog when this happens?
    I dont think there is a .htaccess but if there is I dont know how to access it. It doesnt show on my FTP program (i know from previous work that they dont) so not sure how to check. Any ideas?

    Thanks

    Shalom

  9. #19
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Strange problem with zen cart - Admin preview problems after Access db load

    Most FTP programs have an option to either filter by certain filenames, so entering .htaccess in the filter window will usually reveal the files; or else they have a setting somewhere to hide/show "hidden" files (ie: those that start with a . )
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #20
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Strange problem with zen cart - Admin preview problems after Access db load

    This is a lengthy process, but it's where I'd recommend checking things out ... it may or may not reveal anything. It'd be good if you are able to include your .htaccess files in your download.
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Admin problem with charset in Zen Cart 1.39d
    By hrinfo in forum Addon Language Packs
    Replies: 0
    Last Post: 24 Jul 2010, 03:20 AM
  2. Replies: 12
    Last Post: 27 Feb 2010, 01:38 AM
  3. admin access after Zen Cart Installation
    By sunilab in forum Installing on a Windows Server
    Replies: 1
    Last Post: 2 Nov 2009, 06:06 AM
  4. Problems with Zen Cart after Provider moved my website to a new server
    By ingoito in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 27 Apr 2009, 09:28 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