20 years a Zencart User
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.
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
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.
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
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.
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.
.
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.