Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 42
  1. #21
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Quotes have issues affecting my product images

    Yes, I did notice.
    I'm continuing discussion in this thread, because it contains relevant history, rather than a new post.

    Using the very same product name and description as yourself, I cannot reproduce the problem on my own test servers (one of them using PHP v4.4.5 and MySQL 4.2.11-standard-log ... which makes configuration very similar to yours).

    Your server's addslashes() function appears to be converting single-quotes to two single-quotes instead of a backslash and a single-quote.

    There is a growing trend towards using '' instead of \' (considered to be "more portable" across database-engine choices, and safer in multi-byte server configurations), but that usually only happens by using the database-provided scripts for escaping content being prepared for insertion into the database.

    I've been researching to find out whether/where addslashes() has been altered to produce '' instead of \' but haven't found it.

    Hence the question about your PHP version.
    .

    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. #22
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Quotes have issues affecting my product images

    Can you upload the techsupp.php file (you can find it in the zc_install folder of your Zen Cart files) to your server? (into your "cart" folder is fine), and post a link to it?

    Specifically, I want to look at your magic_quotes settings for _runtime and _sybase.

    Apparently having magic_quotes_sybase enabled will cause the use of single-quotes for escaping instead of backslashes.
    .

    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.

  3. #23
    Join Date
    Jul 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Quotes have issues affecting my product images

    Here is the link:
    http://www.aaau.com/cart/techsupp.php

    Strangely though, it gives me a 500 Internal Server Error and I'm not sure why. The logs mention nothing.

  4. #24
    Join Date
    Jul 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Quotes have issues affecting my product images

    Nevermind, found the logs.
    Code:
    [11-Jun-2007 14:48:21] PHP Warning:  session_start(): Cannot send session cookie - headers already sent by (output started at public_html/cart/techsupp.php:51) in public_html/cart/includes/functions/sessions.php on line 108
    [11-Jun-2007 14:48:21] PHP Warning:  session_start(): Cannot send session cache limiter - headers already sent (output started at public_html/cart/techsupp.php:51) in public_html/cart/includes/functions/sessions.php on line 108
    [11-Jun-2007 14:48:21] PHP Warning:  Cannot modify header information - headers already sent by (output started at public_html/cart/techsupp.php:51) in public_html/cart/includes/init_includes/init_templates.php on line 78
    [11-Jun-2007 14:48:29] PHP Warning:  session_start(): Cannot send session cookie - headers already sent by (output started at public_html/cart/techsupp.php:51) in public_html/cart/includes/functions/sessions.php on line 108
    [11-Jun-2007 14:48:29] PHP Warning:  session_start(): Cannot send session cache limiter - headers already sent (output started at public_html/cart/techsupp.php:51) in public_html/cart/includes/functions/sessions.php on line 108
    [11-Jun-2007 14:48:29] PHP Warning:  Cannot modify header information - headers already sent by (output started at public_html/cart/techsupp.php:51) in public_html/cart/includes/init_includes/init_templates.php on line 78

  5. #25
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Quotes have issues affecting my product images

    The 500 error is probably some mod-security issue.

    Try this:
    - recreate the zc_install folder
    - upload the zc_install/.htaccess file
    - upload the zc_install/techsupp.php file

    The .htaccess should work around the mod_security bit, and using the subfolder keeps the effect isolated to the zc_install folder.
    .

    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. #26
    Join Date
    Jul 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Quotes have issues affecting my product images

    http://www.aaau.com/cart/zc_install/techsupp.php

    Still getting the same error. And yes, .htaccess is uploaded.

  7. #27
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Quotes have issues affecting my product images

    Puzzling.

    Alternate approach...
    Login into your admin
    Choose Tools->Server Info

    Search down the screen for magic_quotes and post what you find for the different variations.
    .

    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. #28
    Join Date
    Jul 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Quotes have issues affecting my product images

    (First on/off is Local, second is Master)
    magic_quotes_gpc On On
    magic_quotes_runtime Off Off
    magic_quotes_sybase On On

  9. #29
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Quotes have issues affecting my product images

    Quote Originally Posted by HDG View Post
    (First on/off is Local, second is Master)
    magic_quotes_gpc On On
    magic_quotes_runtime Off Off
    magic_quotes_sybase On On
    Hmmm ... as I suspected.

    Quote Originally Posted by PHP
    If magic_quotes_sybase is on, a single-quote is escaped with a single-quote instead of a backslash if magic_quotes_gpc or magic_quotes_runtime are enabled.
    Now to come up with a workaround for you ...
    .

    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. #30
    Join Date
    Jul 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Quotes have issues affecting my product images

    I have access to change those, but I don't think I should. We have many clients on the server, some of which are not mine.

    mysql_real_escape_string() wouldn't solve this, would it?

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. v139h Price by Attribute issue affecting all products when one attribute is out of stock.
    By NCRS 1962 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Dec 2012, 02:11 AM
  2. Issue with resizing window affecting layout
    By tabitha in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Nov 2009, 08:00 PM
  3. Replies: 1
    Last Post: 11 Jun 2007, 07:13 PM
  4. Credit Note issue page?
    By Stevis2002 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 27 May 2006, 09:43 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR