Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2006
    Posts
    2
    Plugin Contributions
    0

    Default [SERVER ISSUE] Problem with maxlength 0 in all text forms

    Hello all, I've got a problem that is somewhat urgent D:
    I've not had too much experience with zen cart yet, but having been forced to move a site with zen cart over to another server I've been learning pretty quick. I noticed the same problem I've been having is posted here, but alas I have not found a solution.

    The problem in a bit more detail is that none of the text fields in the various forms throughout the site have a correct maxlength attribute. For instance:
    Code:
    <input name="email_address" size="1" maxlength="0" type="text">
    I am using:
    Zen Cart 1.2.6
    Database Patch Level: 1.2.6
    PHP Version 5.0.4
    HTTP Server: Apache/2.0.51 (Fedora)
    Database: MySQL 4.1.21
    Server OS: Linux 2.6.10-1.771_FC2smp
    Our server is also running Fedora Core 2... sigh... I know...

    with:
    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
    with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies
    with Zend Optimizer v3.0.1, Copyright (c) 1998-2006, by Zend Technologies

    Does someone have any more experience with this problem? Tried searching for other solutions... haven't found one yet.

  2. #2
    Join Date
    Dec 2006
    Posts
    2
    Plugin Contributions
    0

    Default Re: Problem with maxlength 0 in all text forms

    Well, in any case we've found a solution (temporarily?) for this issue. Doing a disgusting hack on the form functions in includes/functions/html_output.php and admin/includes/functions/html_output.php to have an additional over-riding maxlength property.

    If anyone could post where this bugged maxlength = 0 property is actually coming from it would be helpful, thanks!

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

    Default Re: Problem with maxlength 0 in all text forms

    Quote Originally Posted by method3 View Post
    If anyone could post where this bugged maxlength = 0 property is actually coming from it would be helpful, thanks!
    It's coming from your database server.

    Zen Cart asks the database what the field length is, and uses that information.
    If your MySQL is configured to not disclose that information, then 0 is the returned value.
    If your MySQL connector for PHP (the software on the server that lets PHP and MySQL talk to each other) is an older version or mismatched version, then this problem typically occurs.
    .

    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.

 

 

Similar Threads

  1. Strange Problem With Forms
    By apease11 in forum Installing on a Windows Server
    Replies: 2
    Last Post: 21 Sep 2010, 02:14 AM
  2. Problem with forms. What's missing?
    By sjk1000 in forum General Questions
    Replies: 1
    Last Post: 16 Feb 2009, 08:56 PM
  3. Layout problem with forms
    By Natural Tone in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 9 Feb 2009, 05:00 AM
  4. Replies: 3
    Last Post: 4 Sep 2007, 01:06 PM
  5. How to change maxlength? All maxlength set to 1
    By libracorn in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 16 Sep 2006, 06:08 AM

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