I just updated to version 0.10.12 on Ubuntu 15.10. After that I got 1 error and 2 simple messages (recommendations) because of the new phpcheck.yml file.
Error 1
[ERROR] The extension curl is missing.
Messages 1
The extension sqlite3 is recommended to install.
Message 2
The configuration date.timezone was missing and overwritten with America/Tijuana.
~/.console/phpcheck.yml file but still no luck. My server has date.timezone set so I cannot understand why it cannot find it.I think these should be added on the documentation somehow. Thank a lot!
My server has date.timezone set so I cannot understand why it cannot find it.
Have also set date.timezone in your CLI php.ini?
It's also in php.ini.
I meant there are usually at minimum two php.ini-s: one for libapache2-mod-php5 and another for CLI.
I also had that issue with date.timezone, but once I edited php.ini, it was resolved.
I install as the php5-fpm and nginx, setup the data timezone on fpm/php.ini is not working, the drupal command runs as the php CLI,
Need add the timezone on /etc/php5/cli/php.ini
You can try php -i | grep php.ini to check where the php.ini is loaded from.
This issue demonstrates how less the error message is informing in detail which timezone setting it talks about, since there are many options in a server enviroment. For new Drupal 8 users it is even not sure if it is about a Drupal specific, PHP specific, Apache specific or Server specific timezone in this message. Error messages like _this_ usually use _example/paths_ to demonstrate where the error occures, which gives hints about what timezone setting is meant. Sadly even the php.ini code comments are missing timezone examples to show which formatting the timezone setting should use.
For those who don't know: e.g. vim /etc/php5/cli/php.ini :
date.timezone = US/Central
or
date.timezone = Europe/Berlin
Sadly installing _php5-sqlite_ (which is the only option under php5 here) doesn't remove the message _missing sqlite3_ on Debian 9. Installing php-sqlite3 installs the complete php7 stack which troubles with Drush.
@diqidoq You can avoid warning message to keep appearing by executing:
drupal settings:set checked "true"
I will add a configuration to customize if warning messages are show.
drupal settings:set checked "true"
@jmolivas Didn't knew that. Perfect.
@jmolivas++ _for adding a configuration to customize if warning messages are shown_. Thanks for chiming in so fast.
can I add? I have installed PHP7 with nginx on Ubuntu 14.04 (x64) and the location for date.timezone is /etc/php/7.0/cli
@fndtn357 you have the same issue? can you share what is your error/warning.
I had the same warning. Installed the appropriate mods and later read about
being able to ignore them. I didn't expect it because I am using nginx and
php7.0-fpm
On May 7, 2016 11:12 AM, "Jesus Manuel Olivas" [email protected]
wrote:
@fndtn357 https://github.com/fndtn357 you have the same issue? can you
share what is your error/warning.—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/hechoendrupal/DrupalConsole/issues/1959#issuecomment-217643454
I'm sorry I didn't read well before answering. I don't remember exactly
what it said, except it was a yellow (not red) highlighted bar with a
warning that I did not have them installed.
_James R Stone_
_Drupal site-builder/developer/consultant_Office: 216-635-9247
[email protected]
This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain private, confidential, and/or
privileged information. Any unauthorized review, use, disclosure, or
distribution is prohibited. If you are not the intended recipient,
employee, or agent responsible for delivering this message, please contact
the sender by reply e-mail and destroy all copies of the original e-mail
message.
On Sat, May 7, 2016 at 11:41 AM, James R Stone [email protected] wrote:
I had the same warning. Installed the appropriate mods and later read
about being able to ignore them. I didn't expect it because I am using
nginx and php7.0-fpm
On May 7, 2016 11:12 AM, "Jesus Manuel Olivas" [email protected]
wrote:@fndtn357 https://github.com/fndtn357 you have the same issue? can you
share what is your error/warning.—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/hechoendrupal/DrupalConsole/issues/1959#issuecomment-217643454
Messages 1
The extension sqlite3 is recommended to install.
Same message. I also had to go into different folders to relieve the waning about time zones. php7.0-fpm and cli under Php7.0
Because drupal console is using the cli instance of PHP, check that your /etc/php5/cli/php.ini file has the timezone set...your path may vary depending on your OS.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
sudo apt-get install php5-sqlite
sudo apt-get install php5-curl
sudo vi /etc/php5/cli/php.ini
uncomment and set
date.timezone =
to solve the problem ..
@theodorosploumis we could close this issue?
Most helpful comment
@diqidoq You can avoid warning message to keep appearing by executing: