LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-08-2011, 11:33 AM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 542

Rep: Reputation: 32
Firefox Content Encoding Error


Hi, am getting the following in my Apache error file...
Code:
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in [path]/includes/functions.php on line 3648
So I went ahead and set the following in my php.ini file as per PHP.
Code:
date.timezone = "America/Los_Angeles"
However, as soon as I did that and restarted Apache, Firefox displayed a page stating:
Code:
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
I have the following settings in my php.ini.
Code:
zlib.output_compression = Off
Any ideas how a date setting can change the compression setting?

Last edited by grob115; 01-08-2011 at 11:45 AM.
 
Old 01-08-2011, 12:02 PM   #2
grob115
Member
 
Registered: Oct 2005
Posts: 542

Original Poster
Rep: Reputation: 32
This is absolutely insane, I put the original version of it and it works now. When I diff the two files I get the following. "php.ini" works and "php.ini.backup" doesn't.
Code:
[root@test lib]# diff php.ini php.ini.backup
996c996
< ;date.timezone =
---
> ;date.timezone = "America/Los_Angeles"
1063c1063
< pdo_mysql.default_socket=
---
> pdo_mysql.default_socket=/var/lib/mysql/mysql.sock
1216c1216
< mysql.default_socket =
---
> mysql.default_socket = /var/lib/mysql/mysql.sock
 
Old 01-08-2011, 12:19 PM   #3
grob115
Member
 
Registered: Oct 2005
Posts: 542

Original Poster
Rep: Reputation: 32
Fixed! Don't know why but this is the reason.
Code:
>     echo "mysql_user: $mysql_user, password: $mysql_password, host: $host";
>     $link = mysql_connect("$host", "$mysql_user", "$mysql_password") or die ('I cannot connect to the PhotoPost database. [$php_errormsg]');
That "echo" line, once removed, solves the issue. If anyone knows how an "echo" can cause the problem with compression. Please let me know.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox Character Encoding Ingla Linux - General 4 10-13-2008 07:07 AM
Firefox character encoding Quakeboy02 Linux - Software 4 05-22-2008 01:51 PM
Firefox dynamic content problems, and how to uninstall Firefox in Ubuntu rose_bud4201 Linux - Software 1 11-05-2007 11:38 PM
firefox character encoding:help wetnose23 Slackware 3 05-28-2006 09:48 PM
Content-Encoding and gzip (zlib) jnusa Programming 0 01-19-2005 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration