Jump to content
  • 0

FluxCP Warning


Petey Pablo

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

Warning: date() [function.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 'UTC' for 'UTC/0.0/no DST' instead in/home/dangerou/public_html/cp/index.php on line 183

Warning: date() [function.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 'UTC' for 'UTC/0.0/no DST' instead in/home/dangerou/public_html/cp/lib/Flux/LogFile.php on line 74

Warning: date() [function.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 'UTC' for 'UTC/0.0/no DST' instead in/home/dangerou/public_html/cp/lib/Flux/LogFile.php on line 74

help me here. Thanks

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi WillSuranol,

You will need to edit '/config/application.php', and declare the timezone.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

@Asura

which part at the application.php? and how to set timezone for philippines. Thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

I think Timezone for Philippines is Asia/Manila

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

@Asura

which part at the application.php? and how to set timezone for philippines. Thanks

Hi WillSuranol,

It should have been obvious; as FluxCP is designed fairly straightforward. If you took the effort to look, you should have seen the following line;

'DateDefaultTimezone' => null, // The default timezone, consult the PHP manual for valid timezones: http://php.net/timezones (null for defaut system TZ)

In order to set it to PHT, you would put:

'DateDefaultTimezone' => 'Asia/Manila', // The default timezone, consult the PHP manual for valid timezones: http://php.net/timezones (null for defaut system TZ)

For other times, you can see within the comment; the link to guide you to proper values for the Timezone: http://php.net/timezones

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

@Asura

Fixed! Timezone warning.

Next problem. See the errors below

Critical Error

An error was encountered during the lifetime of the application.

This could be due to a variety of problems, such as a bug in the application.

However, normally it is caused by misconfiguration.

Exception Details

Error: PDOException

Message: SQLSTATE[HY000] [1130] Host '198.105.222.91' is not allowed to connect to this MySQL server

File: /home/dangerou/public_html/cp/lib/Flux/Connection.php:81 File Line Function/Method /home/dangerou/public_html/cp/lib/Flux/Connection.php 81 PDO::__construct() /home/dangerou/public_html/cp/lib/Flux/Connection.php 94 Flux_Connection::connect() /home/dangerou/public_html/cp/lib/Flux/Connection.php 159 Flux_Connection::getConnection() /home/dangerou/public_html/cp/modules/install/index.php 17 Flux_Connection::getStatement() /home/dangerou/public_html/cp/lib/Flux/Template.php 337 include() /home/dangerou/public_html/cp/lib/Flux/Dispatcher.php 168 Flux_Template::render() /home/dangerou/public_html/cp/index.php 177 Flux_Dispatcher::dispatch()

Exception Trace As String

#0 /home/dangerou/public_html/cp/lib/Flux/Connection.php(81): PDO->__construct(*hidden*)

#1 /home/dangerou/public_html/cp/lib/Flux/Connection.php(94): Flux_Connection->connect(Object(Flux_Config))

#2 /home/dangerou/public_html/cp/lib/Flux/Connection.php(159): Flux_Connection->getConnection()

#3 /home/dangerou/public_html/cp/modules/install/index.php(17): Flux_Connection->getStatement('SELECT VERSION(...')

#4 /home/dangerou/public_html/cp/lib/Flux/Template.php(337): include('/home/dangerou/...')

#5 /home/dangerou/public_html/cp/lib/Flux/Dispatcher.php(168): Flux_Template->render()

#6 /home/dangerou/public_html/cp/index.php(177): Flux_Dispatcher->dispatch(Array)

#7 {main}

Edited by WillSuranol
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

@Asura

Fixed! Timezone warning.

Next problem. See the errors below

Critical Error

An error was encountered during the lifetime of the application.

This could be due to a variety of problems, such as a bug in the application.

However, normally it is caused by misconfiguration.

Exception Details

Error: PDOException

Message: SQLSTATE[HY000] [1130] Host '198.105.222.91' is not allowed to connect to this MySQL server

File: /home/dangerou/public_html/cp/lib/Flux/Connection.php:81 File Line Function/Method /home/dangerou/public_html/cp/lib/Flux/Connection.php 81 PDO::__construct() /home/dangerou/public_html/cp/lib/Flux/Connection.php 94 Flux_Connection::connect() /home/dangerou/public_html/cp/lib/Flux/Connection.php 159 Flux_Connection::getConnection() /home/dangerou/public_html/cp/modules/install/index.php 17 Flux_Connection::getStatement() /home/dangerou/public_html/cp/lib/Flux/Template.php 337 include() /home/dangerou/public_html/cp/lib/Flux/Dispatcher.php 168 Flux_Template::render() /home/dangerou/public_html/cp/index.php 177 Flux_Dispatcher::dispatch()

Exception Trace As String

#0 /home/dangerou/public_html/cp/lib/Flux/Connection.php(81): PDO->__construct(*hidden*)

#1 /home/dangerou/public_html/cp/lib/Flux/Connection.php(94): Flux_Connection->connect(Object(Flux_Config))

#2 /home/dangerou/public_html/cp/lib/Flux/Connection.php(159): Flux_Connection->getConnection()

#3 /home/dangerou/public_html/cp/modules/install/index.php(17): Flux_Connection->getStatement('SELECT VERSION(...')

#4 /home/dangerou/public_html/cp/lib/Flux/Template.php(337): include('/home/dangerou/...')

#5 /home/dangerou/public_html/cp/lib/Flux/Dispatcher.php(168): Flux_Template->render()

#6 /home/dangerou/public_html/cp/index.php(177): Flux_Dispatcher->dispatch(Array)

#7 {main}

read it..

is not allowed to connect to this MySQL server

that is your problem. make sure your sql information is correct INCLUDING ip which should normally always be 127.0.0.1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi WillSuranol,

This error is caused by insufficient privileges on your RO server's MySQL. The MySQL account that you have provided in '/config/servers.php' is probably locked down in access for localhost only.

You will need to create a new MySQL user within phpMyAdmin or terminal, and set the new account's host as '198.105.222.91'; also, you need to make sure that this new account has the proper permissions to use your Athena SQL database.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

Hi WillSuranol,

This error is caused by insufficient privileges on your RO server's MySQL. The MySQL account that you have provided in '/config/servers.php' is probably locked down in access for localhost only.

You will need to create a new MySQL user within phpMyAdmin or terminal, and set the new account's host as '198.105.222.91'; also, you need to make sure that this new account has the proper permissions to use your Athena SQL database.

technically for security it should remain localhost, there is really never a reason to allow a remote host, he changes the hostIP to 127.0.0.1 and if the database is setup right he should have no issues connecting to it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

since your database is in the same host with your emulator it would be localhost /no1

Link to comment
Share on other sites

×
×
  • Create New...