Forums / Bug Reports / [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

[Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

Locked

Views: 19,312

Results 1 to 20 of 40
This thread is locked. New replies are disabled.
18 Mar 2007, 12:25 AM
#1
jerkynet avatar

jerkynet

New Zenner

Join Date:
Nov 2006
Posts:
94
Plugin Contributions:
0

[Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

My zen store typically just smokes right along, no problems...I noticed things were a little slow this afternoon, took a look at the store (I typically live in the admin, which BTW is fine), and CRAP....it is as if my templates are gone.

Flipped from my custom template to the classic default, same deal....been screwing around for a couple hours, just placed a call to my hosting company to see if they made some apache or php changes....

site is at http://www.jerkynet.com/store

All the flat sites on this host are fine, there are also some php sites (invision power board msg board) php/mysql driven sites, they are fine, my admin looks like it always does....

Anybody know what would cause this?
Dave

18 Mar 2007, 12:30 AM
#2
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

log in via FTP and see if your template is in the following directory:

store/includes/templates

If you see the folder.. go in it. If you see files.. check the "css" folder.. see if theres anything in there. If not.. load the backup you've got and it should fix it

18 Mar 2007, 12:34 AM
#3
jerkynet avatar

jerkynet

New Zenner

Join Date:
Nov 2006
Posts:
94
Plugin Contributions:
0

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

that was my first thought...css is there...as well in the default template dir, flipping to the default has the same look.

It really does feel like the css is missing, should be easy....but.....?

18 Mar 2007, 12:37 AM
#4
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

check the permissions on those folders. if your host has changed something (such as put in PHP suEXEC support).. you will need to change permissions around. other than that, nothing comes to mind.. sorry :(

18 Mar 2007, 12:41 AM
#5
jerkynet avatar

jerkynet

New Zenner

Join Date:
Nov 2006
Posts:
94
Plugin Contributions:
0

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

Just got a note back my hosting company, they upugraded to php5 but that was yesterday, claim nothing has changed today.....I assume php5 is no biggy with zen?

18 Mar 2007, 2:20 AM
#6
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

Just wanted to be sure your using 1.3.7. I found a note on another server company that actually downgraded back to php 4 to give their customers tie to upgrade all their scripts.

http://www.dreamhoststatus.com/2007/02/08/php5-downgrade-completeupgrade-scheduled-for-0219/

They just told their customers to upgrade to 1.3.7.

Also I understand that php5 dosn't use the globals on or off setting. I'm not sure how it works around it.

John Patrick
A Zen Cart Advocate!

18 Mar 2007, 6:03 AM
#7
jerkynet avatar

jerkynet

New Zenner

Join Date:
Nov 2006
Posts:
94
Plugin Contributions:
0

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

Hi guys....

Still hosed....anybody have some good suggestions for hosting company....these guys are history early next week!

Problem seems to have been born during / after them upgrading php to v5.2.1 The odd thing is the build date shows this happened 16:00 on 3/15....

The no css issue here started today 3/17 ~15:00 PT

Need to figure this mess out, is there anything that I can send from the php server report that would tell us what this idiot has turned off?

Dave

18 Mar 2007, 3:30 PM
#9
jerkynet avatar

jerkynet

New Zenner

Join Date:
Nov 2006
Posts:
94
Plugin Contributions:
0

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

OK....so eyeballs laying on my cheek....still no stylesheet loading....check me on this (a bit tired over here) after pounding the no-support desk at the hosting company, I get this response....

I looked at the Zen-Cart demo, and immediately under the base href line they have:

<link rel="stylesheet" type="text/css" href="includes/templates/ZCgreen/css/stylesheet.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ZCgreen/css/stylesheet_labels.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ZCgreen/css/stylesheet_messagestack.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ZCgreen/css/stylesheet_showcase.css" /> None of these links to the CSS sheets exist in your templates, which is why the CSS isn't loading.

================
My take is "duhhhh", we aren't loading due to some php change on thier end? or rights issues....OR is he on to something?

Any help appreciated!

History:
Well working zen 1.3.7 site
No changes made to site, admin, nuttin for a week or better
Yesterday 15:00 PDT, site stop loading css
Investigation with the host find they upgraded to php5 but that was 2 days prior

So, we are not asking to load CSS....what causes this?

I have three zen 1.37 sites all went css stupid at the same time

Help?!!?

18 Mar 2007, 4:03 PM
#10
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

IF these files were not found in your custom template they would revert back and be called from the template_default,

if you had 3 sites flake out at the same time it is most definitly a server issue,

Zen cart PCI compliant Hosting

18 Mar 2007, 4:05 PM
#11
jerkynet avatar

jerkynet

New Zenner

Join Date:
Nov 2006
Posts:
94
Plugin Contributions:
0

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

Merlin,

Thanks for the confirm.....with these idiots...I find if I am able to point them directly at the problem they will react.....

I am finding threads that zen 1.3.7 and php5 are fine.....also finding threads that php5 is less forgiving........

Assuming it is a php5 config issue they flipped on yesterday (two days after the php5 upgrade), any thoughts?

Dave

18 Mar 2007, 5:03 PM
#12
jerkynet avatar

jerkynet

New Zenner

Join Date:
Nov 2006
Posts:
94
Plugin Contributions:
0

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

Just installed a RAW, zero customization out of the box zen 1.3.7, as expected same result.

http://www.jerkynet.com/demo137/store

Pulling (what little I have left) hair out..........
Dave

18 Mar 2007, 5:51 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

On your "/store" site, you have understandably been toying with debug ideas etc. It also appears you've hard-coded a stylesheet reference, but it's not working ... because you made a typo. The "type" should be "text/css":```

<link rel="stylesheet" type=[B]"text/cass"[/B] href="http://jerkynet.com/store/includes/templates/jerkynet/css/stylesheet.css" /> ```

However, that's not the root cause of the problem. But, once you change that, you'll see that things do load properly.

Thus, since you've had to hard-code the stylesheet references manually, that means that the Zen Cart code that dynamically discovers and links stylesheets is unable to find the style*.css files in the css folder.
This is most likely a permissions issue whereby either:
a) PHP is not allowed to stat the css folder in order to "list" the files contained therein, and therefore can't create the output links
b) PHP or the webserver user (typically "nobody") doesn't have permission to read the files in the css folder
c) or some other issue.

For debugging purposes, let's turn on PHP error-reporting:

  1. Create a new file: /includes/local/configure.php
  2. In that file place only the following:```php
<?php define('STRICT_ERROR_REPORTING', true); ?>
3. Upload the file and try accessing your site. 
You'll see all kinds of warnings and errors. Hopefully one of them (where it builds the stylesheet links) will provide more hints.
You'll likely also get php halts because of "header already sent" messages -- these are a result of the php error/warning output and will go away once you delete this local/configure.php file after the rest is working again.

Also, what is your server's errorlog 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.

18 Mar 2007, 6:00 PM
#14
jerkynet avatar

jerkynet

New Zenner

Join Date:
Nov 2006
Posts:
94
Plugin Contributions:
0

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

Thanks for the reply....

OK, first of all, you had me going when you mentioned we have been editing.....believe it or not....actually found my hosting company idiot editing my files, told him to back off, and go worry about what they screwed up yesterday on php.

OK, here is the output of the error reporting from above...any clues? This is from the fresh 1.3.7 install, just put on half hour ago at
http://www.jerkynet.com/demo137/store

=========
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/dwellsin/public_html/jerkynet/demo137/store/includes/local/configure.php:4) in /home/dwellsin/public_html/jerkynet/demo137/store/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/dwellsin/public_html/jerkynet/demo137/store/includes/local/configure.php:4) in /home/dwellsin/public_html/jerkynet/demo137/store/includes/init_includes/init_templates.php on line 78

Notice: Use of undefined constant DOWN_FOR_MAINTENANCE_TYPE - assumed 'DOWN_FOR_MAINTENANCE_TYPE' in /home/dwellsin/public_html/jerkynet/demo137/store/includes/init_includes/init_customer_auth.php on line 25

Notice: Undefined variable: this_is_main_page in /home/dwellsin/public_html/jerkynet/demo137/store/includes/templates/template_default/common/tpl_main_page.php on line 51

  • Home
    Notice: Undefined index: customer_id in /home/dwellsin/public_html/jerkynet/demo137/store/includes/templates/template_default/common/tpl_header.php on line 48
18 Mar 2007, 6:04 PM
#15
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

I bet they upgraded to php5.2

I am pretty sure that Linda has posted a fix to a few of the 5.2 oopses

Zen cart PCI compliant Hosting

18 Mar 2007, 6:13 PM
#16
jerkynet avatar

jerkynet

New Zenner

Join Date:
Nov 2006
Posts:
94
Plugin Contributions:
0

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

Checked that yesterday, after I found the bug report on 5.2, they are on 5.2.1

BTW, this idiot just edited some files on my LIVE site, it is back, demo still broke, fresh install, etc.......

Can't raise them, trying to get a handle on what they are up to.

18 Mar 2007, 6:18 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

    • I should have mentioned to not have any blank lines after the closing ?> in the local/configure.php file
  1. But, it doesn't look like the PHP error reporting is helping reveal anything.

  2. What's in the server errorlog ?

  3. What happens if you rename the /includes/.htaccess to htaccess_off temporarily?

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

18 Mar 2007, 6:23 PM
#18
jerkynet avatar

jerkynet

New Zenner

Join Date:
Nov 2006
Posts:
94
Plugin Contributions:
0

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

  • Trying to get info on the server log....
  • renamed the .htaccess out last night, will mv it again now.

To give you an idea of what I am having to work with with this crew at the NOC....
Here is his last response....

Hello,

I'm guessing you already followed these steps on the demo137 site, it's showing warnings now. I tried similar steps before, and none of the errors related to template code as far as I can see.

I've tested the code that's failing outside of Zen, you can see the result here:

http://jerkynet.com/store/test.php

The same code inside the Zen template functions doesn't work, it doesn't list the CSS files, so they don't get included in the page.
This is why I don't think it's a server issue, if it was, the test script shouldn't work either.

I checked with Blake and no changes have been made since the PHP5 upgrade,

I have restored the change I made to your site,

Thanks,

Stewart

18 Mar 2007, 6:26 PM
#19
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

What are all the files in your /includes/templates/jerkynet/css folder ?
What are their permission settings (ie: 644, 755, etc) ?
What is their "ownership" ? (ie: are they owned by "jerkynet" or by "nobody" or by someone else?

What is the permission setting on the css folder itself ?

It's interesting that PHP seems to be allowed to read directory listings for *.php files, but not for *.css files ...

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

18 Mar 2007, 6:27 PM
#20
jerkynet avatar

jerkynet

New Zenner

Join Date:
Nov 2006
Posts:
94
Plugin Contributions:
0

Re: [Done v1.3.8] dir handles not closed, causes memory leak and won't load stylesheet

includes as well as admin .htaccess files have been mv'd out
This (and everything I am mentioning for now) relates to the demo fresh install site:
http://www.jerkynet.com/demo137/store

All sites acting the same.

The fellow at the hosting company did do a HARD code somewhere that got the template loading, then pulled it, so live site is back to hosed.

This is his logic that it isn't a server side issue........
dave