Results 1 to 10 of 14

Hybrid View

  1. #1
    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

  2. #2
    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.

  3. #3
    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

  4. #4
    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.

  5. #5
    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

  6. #6
    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.

  7. #7
    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.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Define Pages Editior - Maximum File Size?

    Quote Originally Posted by schoolboy View Post
    What are your file upload limits on C-Panel?

    Could this possibly also a reaction to file upload limits set in ZC?
    Quote Originally Posted by limelites View Post
    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.
    No, it's not a ZC limitation. But if the content you're pasting is greater than your server's PHP setting for max_post_size then I'm not surprised that it's croaking.
    .

    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. 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