Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Define Pages Editior - Maximum File Size?

    When pasting HTML into the define pages editor in the admin panel, is there a maximum file size that it will accept?

    I want to extend our coming soon gallery:

    http://www.silkblooms.co.uk/index.ph...ge=coming_soon

    I'm at row 31 at the moment but want to increase to 100 rows as it's proving a very, very popular way for our customers to choose new designs.

    when I paste the HTML in with 100 rows, it appears to save but in actual fact saves as blank. When I go back in to edit, there's nothing there.

    I'm assuming there's a maximum file size? Does anyone know what that is and if there's a way to override it? I don't really want to extend it to a second and third and fourth page.

  2. #2
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Define Pages Editior - Maximum File Size?

    OK, I've found a way round this, just basically download, edit and re-upload the /includes/languages/english/html_includes/CUSTOM/define_coming_soon.php file. It works when I do it like this.

  3. #3
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Define Pages Editior - Maximum File Size?

    Because your code is buggy, its probably trying to protect you from yourself

    have a look at the source of your page

    </div>
    </td>
    </tr>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" id="table6" width="776">
    <tr>
    <td></div><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    You've got a doctype declatration in the middle of the page

    Your define pages should only have the body code,

    when you are putting code in for the define pages you should only be putting in the code that is between the body tags (don't include the body tags), zencart takes care of all the rest, you seem to have placed an entire webpage in your define page, this will stuff you site up and will cause issues for crawler and some browsers
    Webzings Design
    Semi retired from Web Design

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Define Pages Editior - Maximum File Size?

    Quote Originally Posted by nigelt74 View Post
    when you are putting code in for the define pages you should only be putting in the code that is between the body tags (don't include the body tags), zencart takes care of all the rest...
    Well spotted Nigel... This is quite a common mistake people make when using external HTML editors to create content.

    Technically, there should be NO LIMIT, because the content in defined pages is being stored in a FILE and not in the database (as are EZPages)
    20 years a Zencart User

  5. #5
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Define Pages Editior - Maximum File Size?

    Taking out the body tags and the doctype declaration doesn't help. I just took them out, uploaded the file via FTP and it works. However, copy and paste the contents of the file into the define pages editor and it empties the file, creating a blank file at 0bytes.

    Using the exact same file, with the exact same code, it does upload via the define page editor, so long as there are not 100 rows in the gallery. When there are only 50 rows in the html code, it uploads (same body tags and doctype declaration). This seems to point to the size of the file being the issue, not the tags.

    Not to worry though, uploading the file vai FTP works perfectly.

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Define Pages Editior - Maximum File Size?

    Try opening the file via FTP, and then pasting your HTML content in there. if that works (whch it should), then you have a php issue somewhere.
    20 years a Zencart User

  7. #7
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Define Pages Editior - Maximum File Size?

    yeah uploading via FTP does work. It's just not accepting larger fikles via the define pages editor. Not a big problem as I can just upload via FTP.

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Define Pages Editior - Maximum File Size?

    What are your file upload limits on C-Panel?

    Could this possibly also a reaction to file upload limits set in ZC?
    20 years a Zencart User

  9. #9
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Define Pages Editior - Maximum File Size?

    CPanel can't be the problem if it lets me upload massive files via FTP.

    Definitely seem like an upload limit that's set somewhere in ZC.

  10. #10
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Define Pages Editior - Maximum File Size?

    Always a good idea to Validate your code. Also, I would put your image code in a separate file and use a PHP include plus pre-loader code; will make things go faster.

    As it stands right now, many Browsers will lock up or not properly display the page.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Maximum file size
    By jenpen in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 29 May 2015, 05:41 AM
  2. Replies: 8
    Last Post: 22 May 2010, 04:47 PM
  3. Restrict Maximum Image upload file size ?
    By greentrees in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 14 May 2009, 03:37 AM
  4. Maximum file size for uploads
    By benjames in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 22 Oct 2006, 08:18 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