-
-
Notifications
You must be signed in to change notification settings - Fork 647
My DrupalVM has started using 7.2b1 for Drush, on which it fails #1498
Comments
UPDATE: As a workaround, I'm able to run drush like this |
@svenbergryen - It seems the problem is that maybe one of the PHP packages that's being installed is not PHP 5.6-specific, therefore it triggers an install of the beta version of PHP 7.2? By default, Drupal VM would only install 7.1; can you show what config.yml changes you have to make sure 5.6 is installed? Especially any extra packages (php or otherwise)? Also, hi! |
Hi! :) I might at some point have had this in the config.yml:
(I wasn't aware it was supposed to be Is there a way to get out of it now that I've managed to get 7.2 into the box, or should I just destroy it? Another workaround was to do a Here's my current config.yml:
|
Yeah, if you can, it's probably best to just do a |
Going to close this for now—please let me know if the issue persists after destroying and rebuilding the VM. |
Hello from the future — this can also happen if |
I can confirm I am having this problem too - same error (PHP Fatal error: Uncaught Error: Call to undefined function cache_get() in /client/includes/module.inc:754) on an ubuntu 16.04 vps server at digital ocean running php7.2. I installed drush 8.1.10 using composer and "out of the box" it gave me this error on a clean drupal 7.56 install. I also have no idea what version of php drush is actually using from the command line or how to go about fixing it. It would be nice if the drush guys could address this and offer a solution. |
You can begin to look at solving this with some of the following:
This information will provide context for replication, but it should make the problem very obvious. |
ok, to be fair i've noticed that I have issues with different versions of php extensions on my server (some are 7.0 and some 7.2). I will resolve those and retest drush and report back |
@geerlingguy, is there a way to downgrade PHP without a destroy? |
@lramarojaona - Yeah, just update |
@geerlingguy, thank you for your answer, but that I know, I'm always playing with this as I have projects that need different PHP versions. |
I just encountered this problem. Turns out that it was due to the php-mysql extension being missing for the PHP CLI, which was running PHP 7.3 instead of PHP 7.1 as I had configured it. #1964 |
Issue Type
Your Environment
Your OS
Full console output
When running just
drush
, I get many lines with the following notice:Running a specific drush command inside a drupal site gives me this:
Summary
After provisioning my DrupalVM today, Drush started failing on me. On further inspection, it seems to be running on php
7.2.0beta1
. (Build date Jul 27 2017 11:58:52). I didn't do anything in particular to get this installed, so I'm wondering if others will see this issue as well. Maybe it was running perfectly fine on php7.1 before?I was able to determine that PHP-FPM still runs off
/usr/sbin/php-fpm5.6
, but I couldn't find any cli v5.6. I was thinking of doing something likeDRUSH_PHP=/path/to/php-cli drush
, but no cli seems to be available any longer.The text was updated successfully, but these errors were encountered: