Forums / General Questions / Problem....

Problem....

Locked

Started by g0d4lm1ty on 17 Aug 2007, 5:37 AM · Views: 786

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
17 Aug 2007, 5:37 AM
#1
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Problem....

ok... so my hosting company had a major problem with their database... they fixed it.. reloaded my last autosave data file... which is more recent than my save... and there were no installs or upgrades since this save... anyway... since then.. when i try to access my admin i get this

Warning: putenv(): Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /home/poison67/public_html/yourlingerieparty/admin/includes/extra_configures/time_offset.php on line 8

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/poison67/public_html/yourlingerieparty/admin/includes/extra_configures/time_offset.php:8) in /home/poison67/public_html/yourlingerieparty/includes/functions/sessions.php on line 102

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/poison67/public_html/yourlingerieparty/admin/includes/extra_configures/time_offset.php:8) in /home/poison67/public_html/yourlingerieparty/includes/functions/sessions.php on line 102

Warning: Cannot modify header information - headers already sent by (output started at /home/poison67/public_html/yourlingerieparty/admin/includes/extra_configures/time_offset.php:8) in /home/poison67/public_html/yourlingerieparty/admin/includes/init_includes/init_templates.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/poison67/public_html/yourlingerieparty/admin/includes/extra_configures/time_offset.php:8) in /home/poison67/public_html/yourlingerieparty/admin/includes/functions/general.php on line 34**

they say is is a code issue... but I never had this problem before this....

ANY IDEAS???
**

17 Aug 2007, 6:12 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Problem....

g0d4lm1ty:

ok... so my hosting company had a major problem with their database... they fixed it..

... since then.. when i try to access my admin i get this

putenv(): Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list

they say is is a code issue... but I never had this problem before this....I suspect it's your time-zone mod that's exposing this issue.

And, ya - it's a code issue ... but only insomuch as "code" is exposing a server configuration issue. Don't let them pin it on you.

Sounds like they had more than just a "database" problem. Perhaps they even changed their PHP configuration or even upgraded/re-installed it while fixing other problems ... and forgot about their safe-mode configuration limitations.

This is the issue you should be telling them they need to resolve:

g0d4lm1ty:

putenv(): Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed listSuggested approaches:

  • get them to turn safe mode OFF -- most hosts do NOT need to run PHP in safe mode unless they've got a weak security setup
  • get them to fix their "allowed list" of environment variables you're allowed to set
  • or maybe get them to go back to their earlier configuration ... if they can remember what it was.
  • or you can remove the time-zone-offset mod from your site.

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