This seems to only be an issue if I run PhpGedView from VirtualMin, I get a date warnings:
You are required to use the date.timezone setting or the date_default_timezone_set() function.
Which I know all to well, fixed it by adding in the default date time zone to php.ini under [Date], but that only fixed half the warnings, which is very strange in itself, I add code to try to force it, like:
date_default_timezone_set(‘America/Los_Angeles’);
error_reporting(0);
and this did not help; note that I set error_reporting off, so I should not see any errors, but I still do, which is very strange behavior.
If I log in the warnings go away.
This is on CentOS 6.4
Now to get stranger, I was going to move this app from a sub domain of:
http://family.fleshmaster.org/
to
http://fleshmaster.org/
and it looks like the later is still using the code from the former, and I check the config files, its using a different database, and there is no code that hard codes the path.
Note both sites reference same code in sub domain:
We selected ‘America/New_York’ for ‘EDT/-4.0/DST’ instead in /home/fleshmaster/domains/family.fleshmaster.org/public_html/includes/authentication.php on line 310
So now I have two issues.
My question is, is there another php.ini for cli?
What else could cause this?
locate php.ini did not show any that I missed.
and what would cause this cross domain problem?
Php Info, note bottom of page I added some code to read the php.ini at run time:
http://fleshmaster.org/phpinfo.php
http://family.fleshmaster.org/phpinfo.php
phpinfo();
phpinfo(); function error_level_tostring($intval, $separator) { $errorlevels = array( 2047 => 'E_ALL', 1024 => 'E_USER_NOTICE', 512 => 'E_USER_WARNING', 256 => 'E_USER_ERROR', 128 => 'E_COMPILE_WARNING', 64 => 'E_COMPILE_ERROR', 32 => 'E_CORE_WARNING', 16 => 'E_CORE_ERROR', 8 => 'E_NOTICE', 4 => 'E_PARSE', 2 => 'E_WARNING', 1 => 'E_ERROR'); $result = ''; foreach($errorlevels as $number => $name) { if (($intval & $number) == $number) { $result .= ($result != '' ? $separator : '').$name .'
'; } } return $result; } if (date_default_timezone_get()) { echo 'date_default_timezone_get: ' . date_default_timezone_get() . '
'; } echo "
"; if (ini_get('date.timezone')) { echo 'date.timezone: ' . ini_get('date.timezone') . '
'; } echo "
"; if (ini_get('error_reporting')) { $er=ini_get('error_reporting'); echo 'error_reporting: ' . $er . '
'; echo error_level_tostring($er, ' '); } else { echo 'error_reporting: Off
'; } echo "
"; if (ini_get('display_errors')) { $er=ini_get('display_errors'); echo 'display_errors: ' . ini_get('display_errors') . '
'; } else { echo 'display_errors: Off
'; } echo "
"; echo 'Date: ' . date('l jS \of F Y h:i:s A') . '
';