Forums / General Questions / HTML Cut-Off in middle of tags

HTML Cut-Off in middle of tags

Started by mkirkpatrick on 28 Nov 2011, 10:26 PM · Views: 660

Results 1 to 8 of 8
28 Nov 2011, 10:26 PM
#1
mkirkpatrick avatar

mkirkpatrick

New Zenner

Join Date:
Nov 2011
Posts:
4
Plugin Contributions:
0

HTML Cut-Off in middle of tags

I am running into a problem where the page being sent from the server is cut short. It is not a consistent page length. Some page are cutting shirt after 20,000 characters and others after 48000 characters. I have enabled PHP errors, none to report. I have enabled warnings, still nothing. Everything appears to be clean except the pages just cut short right in the middle HTML, text, etc... If you go to the 2 pages I listed below and view the source you will see what I am talking about. I have no idea where to go from here.

Please take a look at the pages here:
https://www.lkscareerconnections.com/shop/index.php?main_page=login

and

https://www.lkscareerconnections.com/shop/index.php?main_page=advanced_search

Any insight into what may be causing this would be greatly appreciated. Thanks in advance.

29 Nov 2011, 1:00 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: HTML Cut-Off in middle of tags

What is your hosting company saying?

.
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 Nov 2011, 2:27 PM
#3
mkirkpatrick avatar

mkirkpatrick

New Zenner

Join Date:
Nov 2011
Posts:
4
Plugin Contributions:
0

Re: HTML Cut-Off in middle of tags

All I know is that PHP was updated and the site no longer works. Updated to the latest version of Zen Cart and still no dice.

I suspect it is a PHP.ini setting that is hosed up. Don't know which one(s) need tweaked to move forward.

Ideas???

29 Nov 2011, 5:02 PM
#5
mkirkpatrick avatar

mkirkpatrick

New Zenner

Join Date:
Nov 2011
Posts:
4
Plugin Contributions:
0

Re: HTML Cut-Off in middle of tags

It is not a character limitation. It will cut off at 20,000 characters on one page, 80,000 characters on another page, or 200,000 characters on a different page.

Raw html, no problems. I placed a page with 2,000,000 characters. No problem. Standard PHP, I echo out a string containing 2,000,000 characters, no problem.

Any other suggestions?

29 Nov 2011, 6:50 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: HTML Cut-Off in middle of tags

Might be a PHP memory limit problem, ie: the new PHP configuration has too low a setting (the default used to be pretty low) ,and it's running out of memory while processing the output.

Again, you should be talking to your hosting company or whoever is the server administration expert about the problems they've caused by doing the upgrade.

.
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 Nov 2011, 8:26 PM
#7
mkirkpatrick avatar

mkirkpatrick

New Zenner

Join Date:
Nov 2011
Posts:
4
Plugin Contributions:
0

Re: HTML Cut-Off in middle of tags

It apparently is not a memory problem.
Granted PHP 512 meg of max memory.

Unfortunately the server administrator has no ideas on how to fix as well. I know that the server was hardened for PCI compliance. It is server 2008 and not using Fast CGI since there are a lot of legacy PHP sites.

PHP is not logging any errors. None in System logs, nowhere. Turned on error reporting, no errors come out. I even created a simple divide by zero error to test the errors. I also created a syntax error to make sure it shows u too. Those tests work perfectly.

For a little bit there, it almost looked like a possible database issue. I repaired all the tables to make sure that is not the cause. IS is in the process of getting a copy of the site up and running on the test server to see if it exhibits the same problems.

29 Nov 2011, 10:56 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: HTML Cut-Off in middle of tags

mkirkpatrick:

All I know is that PHP was updated and the site no longer works.
Sounds like your host has some challenging things to figure out.

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