Bug 1106349

Summary: Fail to create drupal7 due to "Call to undefined function json_encode()"
Product: OpenShift Online Reporter: weiwei jiang <wjiang>
Component: TemplatesAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: admiller, jokerman, mmccomas, tdawson, vvitek, wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-15 10:30:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1108017    
Bug Blocks:    

Description weiwei jiang 2014-06-09 07:13:47 UTC
Description of problem:
When create drupal7, both php-5.3 and php-5.4, it failed with "
PHP Fatal error:  Call to undefined function json_encode() in /var/lib/openshift/539594270df40f0dbf000697/app-root/runtime/dependencies/php/phplib/pear/pear/php/drush/includes/output.inc on line 708"


Version-Release number of selected component (if applicable):
devenv_4850

How reproducible:
always

Steps to Reproduce:
1.Create drupal7 via web with php-5.3 or php-5.4 
2.
3.

Actual results:

Download and install the latest stable version of Drupal

PHP Fatal error:  Call to undefined function json_encode() in /var/lib/openshift/539594270df40f0dbf000697/app-root/runtime/dependencies/php/phplib/pear/pear/php/drush/includes/output.inc on line 708
Drush command terminated abnormally due to an unrecoverable error.       [error]
Error: Call to undefined function json_encode() in
/var/lib/openshift/539594270df40f0dbf000697/app-root/runtime/dependencies/php/phplib/pear/pear/php/drush/includes/output.inc,
line 708
ERROR: Unable download and install Drupal.
An error occurred executing 'gear postreceive' (exit code: 7)
Error message: CLIENT_ERROR: Failed to execute action hook 'build' for 539594270df40f0dbf000697 application drupal

For more details about the problem, try running the command again with the '--trace' option.

Expected results:


Additional info:

Comment 1 Xiaoli Tian 2014-06-13 05:47:22 UTC
*** Bug 1108900 has been marked as a duplicate of this bug. ***

Comment 2 Vojtech Vitek 2014-06-16 10:45:15 UTC
This is most likely duplicate of Bug 1108017.

@Jakub, could you please verify & close?

Comment 3 Vojtech Vitek 2014-06-18 09:16:02 UTC
Should be Duplicate of bug 1108017. Moving ON_QA for verification.

Comment 4 weiwei jiang 2014-06-19 04:18:54 UTC
Checked on devenv_4890 with
|php version|mysql version|
|php-5.3|mysql-5.1|
|php-5.3|mysql-5.5|
|php-5.4|mysql-5.1|
|php-5.4|mysql-5.5|
for https://github.com/openshift/drupal-quickstart.git, 
All above scenario work well, so verify this issue.