Forums / General Questions / Define Pages Editior - Maximum File Size?

Define Pages Editior - Maximum File Size?

Views: 1,217

Results 1 to 14 of 14
26 Jun 2011, 4:35 PM
#1
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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.php?main_page=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.

26 Jun 2011, 4:45 PM
#2
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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.

26 Jun 2011, 10:16 PM
#3
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

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

26 Jun 2011, 10:26 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Define Pages Editior - Maximum File Size?

nigelt74:

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

27 Jun 2011, 6:49 AM
#5
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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.

27 Jun 2011, 8:22 AM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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

27 Jun 2011, 8:26 AM
#7
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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.

27 Jun 2011, 8:29 AM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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

27 Jun 2011, 8:32 AM
#9
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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.

27 Jun 2011, 9:28 PM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

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.

The learning is in the doing.

Potent Products

28 Jun 2011, 6:42 AM
#11
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Define Pages Editior - Maximum File Size?

Website Rob:

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.

Validation has always baffled me and I've never found time to figure out all the errors that it spews out at me. This is my own site, built and maintained by me and I'm a complete amateur. Everything I know about web building is self taught, picked up from forums and a lot of trial and error. So yeah, I do tend to get a lot of validation errors :) That being said though, so does eBay.

I'm 100% certain that anything older than Ie7 is going to make my site look like a scrambled dogs mess. Unfortunately, I have never found a reliable way to have ie6 on my PC os I just check ie7+, FF, Opera, Chrome and Safari.

I hear what you're saying about a pre-loader. That's a brilliant idea! I'll Google for a good HTML utility. Ideally, something that dark-greys out the background while the page is loading and then stops when the page reaches 100%. Is there such a thing?

Any pointers on how to use the PHP include to pull the html from a seperate file would be greatly appreciated.

28 Jun 2011, 6:50 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Define Pages Editior - Maximum File Size?

schoolboy:

What are your file upload limits on C-Panel?

Could this possibly also a reaction to file upload limits set in ZC?

limelites:

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.

29 Jun 2011, 9:48 AM
#13
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Define Pages Editior - Maximum File Size?

limelites:

Everything I know about web building is self taught, picked up from forums and a lot of trial and error.
I would say the majority of coders have learned the same, amateur or professional. :wink:

So yeah, I do tend to get a lot of validation errors :) That being said though, so does eBay.
eBay and similar large sites feel that Validation is not cost effective. They don`t realize how much money they are losing. Go to nike.com with Javascript turned off for an example of what I mean.

I hear what you're saying about a pre-loader. That's a brilliant idea! I'll Google for a good HTML utility. Ideally, something that dark-greys out the background while the page is loading and then stops when the page reaches 100%. Is there such a thing?
Pre-loaders can take a fair amount of time to learn but once you do, you can do anything you want with them.

Any pointers on how to use the PHP include to pull the html from a seperate file would be greatly appreciated.
Put all your Table code into a file, called imagesTable.txt or imagesTable.htm - makes no difference.
Upload to the same place as your 'define_coming_soon.php' file.
Add this code within your 'define_coming_soon.php' file:

<?php include'imagesTable.txt'; ?>

Note: you cannot have LI tags within TD tags so remove all of them.

The learning is in the doing.

Potent Products

29 Jun 2011, 3:36 PM
#14
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Define Pages Editior - Maximum File Size?

OK, I've split the file in two with a PHP include as described, thank you. Not sure how this helps but I did it anyway.

Can't take out the <Li> tags though. Doing so stops the hover image appearing where it's supposed to... Seems to work well with the <li> tags though.

I've had a scour on Google for a suitable pre-loader but most of it's over my head. Javascript is something that I find difficult to get to grips with. Anyone know of a good, reliable HTML pre-loader that's intelligent enough to know when the page has loaded and swithch off?