Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Dec 2006
    Location
    Austin, TX
    Posts
    6
    Plugin Contributions
    0

    Default Re: Intermittent Language Defines Stop Working

    I don't know for an absolute fact at what layer - the OS (SPARC Solaris 8), apache (1.3.39),. php (4.4.8), zen-cart (1.3.7), or somewhere in between - that this bug resides, so my apologies if I've posted in the wrong forum. I do know that the Solaris machine where this bug crops up is hosting many dozens of websites from the same apache config and, even as the zen-cart misbehavior begins, every other site, even every other PHP site and the few other sites using mod_frontpage or mod_perl, all function fine. As I said, even Zen-cart continues working except it seems to have forgotten how to interpret the define()'s (or it can't find them..).

    I have php configured to log to a file, at this time actually with error_report set tp E_ALL because I'm so perplexed by this whole thing. Regardless it doesn't log any errors when this behavior begins. Likewise apache logs no errors.

    I'm still very curious if anyone has seen anything similar at all to this behavior.

    thanks,
    --
    John

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

    Default Re: Intermittent Language Defines Stop Working

    Quote Originally Posted by jacdesigner View Post
    In regards to server setup:

    SUN OS (Solaris)
    MySQL 4.0.26
    Apache/1.3.37
    PHP 4.4.7 (Zend: 1.3.0)
    Quote Originally Posted by cachehit View Post
    the OS (SPARC Solaris 8), apache (1.3.39),. php (4.4.8), zen-cart (1.3.7)
    The only common thread I see there is Solaris. Unfortunately I don't have the budget to purchase and configure such a machine here for testing, let alone the resources to diagnose possible issues in using it as a webserver platform.

    I suppose the ideal troubleshooting approach would be to get PHP to log every attempt at doing a "require" or "include" operation, along with its success or failure, and of course which session ID the request was occurring in.

    But, since you've indicated that there have been no PHP errors logged when these problems happen, I suspect it's not a PHP-specific problem, and is actually happening at a higher level ... which technically means it wouldn't be a Zen Cart problem specifically. But, lest I sound like I'm pointing fingers and you get all defensive, I offer the following suggestions:

    - check the amount of RAM configured for PHP instances.

    - check the number of file handles that PHP (or actually Apache, since PHP is likely running as an apache module and therefore Apache is the owner of the PHP processes) is limited to using at a given time. How does that compare against Filesystem limits/settings? or disk quotas? Does raising that limit make any difference?

    - what happens if you change PHP to not be an Apache module, and instead run as a CGI application? (NOTE: I normally do NOT recommend that approach, as it usually creates a number of headaches and should not be done unless you have a good reason for doing it and know how to properly configure system permissions etc) .... you might try this during off-hours, since it will likely break most sites running PHP on your server until everyone changes permissions levels. Read up on the apache and/or php websites or maybe a site like webhostingtalk.com about configuring your server that way.

    - what is the server load at the time when it happens?

    - is there any way to narrow down the symptoms of all other factors that may be occurring at the time of failure? number of connections, number of open files, amount of ram allocated to various processes, maybe each process, whether any other PHP-based sites are affected by it, is there anything in .htaccess rules causing increased server load, etc etc.
    .

    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.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Re: defines not loading correctly all the time
    By Blastedtgirl in forum General Questions
    Replies: 1
    Last Post: 8 Apr 2011, 12:46 PM
  2. defines not loading correctly all the time
    By kamion in forum Bug Reports
    Replies: 13
    Last Post: 8 Apr 2011, 10:42 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