Sirlefou1 / GRR2

GNU General Public License v2.0
6 stars 5 forks source link

Warning: putenv(): Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /var/www/vhosts/talent-it.com/httpdocs/VRS/include/config.inc.php on line 66 Notice: Undefined variable: locale_utf8 in /var/www/vhosts/talent-it.com/httpdocs/VRS/include/language.inc.php on line 332 #5

Closed briskg closed 10 years ago

briskg commented 10 years ago

Hi any idea on this error, never had this before

image

Sirlefou1 commented 10 years ago

for putenv() comment the line it's becquse of server security settings

for the undefined index fix in this commit https://github.com/Sirlefou1/GRR2/commit/fd093277f3fccb3ca6df6210b85b369a98d5e37c

change .= to = on line 332

Sirlefou1 commented 10 years ago

or change TZ by PHP_TZ

briskg commented 10 years ago

if ($unicode_encoding) { $locale_utf8 = $locale.".utf-8"; if (setlocale(LC_TIME,$locale_utf8) == TRUE) $ok = 'yes';

error:

Notice: Undefined variable: locale_utf8 in /var/www/vhosts/talent-it.com/httpdocs/VRS/include/language.inc.php on line 332

image

Sirlefou1 commented 10 years ago

can you add var_dump($locale);

on line 333 and show me the result

Sirlefou1 commented 10 years ago

Just one thing you need to keep in mind this project is under GNU GPL v2 You need to keep this GRR est une application PHP/MySql sous licence GPL, adaptée de MRBS.

  1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
briskg commented 10 years ago

Yes I will, it has not been released yet i'm still testing it in view of suitability.

Thanks You

Kal.

briskg commented 10 years ago

I've added the line above the output was

string(5) "en_US"

briskg commented 10 years ago

I changed it to en_gb and back to en_US now the error has stopped!

Don't know why but seems fixed now!