htmlburger / wpemerge

A modern, MVC-powered WordPress as a CMS workflow. 🚀
https://wpemerge.com/
GNU General Public License v2.0
452 stars 38 forks source link

Can't install with composer using PHP 7.4 #19

Closed gui-com-pt closed 4 years ago

gui-com-pt commented 4 years ago

Version

Expected behavior

Install the theme using the composer without any error.

Actual behavior

I'm receiving the following error:

Installing htmlburger/wpemerge-theme (0.15.1)
  - Installing htmlburger/wpemerge-theme (0.15.1): Downloading (100%)         
Created project in cargaexport-wp-theme
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 19 installs, 0 updates, 0 removals
  - Installing composer/installers (v1.7.0): Loading from cache
  - Installing squizlabs/php_codesniffer (3.5.3): Downloading (100%)         
  - Installing dealerdirect/phpcodesniffer-composer-installer (v0.5.0): Downloading (100%)         
  - Installing ralouphie/getallheaders (2.0.5): Loading from cache
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing guzzlehttp/psr7 (1.6.1): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing pimple/pimple (v3.2.3): Loading from cache
  - Installing htmlburger/wpemerge (0.15.0): Loading from cache
  - Installing htmlburger/wpemerge-theme-core (0.15.0): Downloading (100%)         
  - Installing htmlburger/carbon-pagination (v1.1.6): Downloading (100%)         
  - Installing symfony/process (v3.4.36): Downloading (100%)         
  - Installing psr/log (1.1.2): Loading from cache
  - Installing symfony/debug (v3.4.36): Downloading (100%)         
  - Installing symfony/polyfill-mbstring (v1.13.1): Loading from cache
  - Installing symfony/console (v3.4.36): Downloading (100%)         
  - Installing htmlburger/wpemerge-cli (0.15.0): Downloading (100%)         
  - Installing filp/whoops (2.5.0): Loading from cache
  - Installing wp-coding-standards/wpcs (2.2.0): Downloading (100%)         
guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
filp/whoops suggests installing symfony/var-dumper (Pretty print complex values better with var-dumper available)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
Writing lock file

Generating autoload files
PHP CodeSniffer Config installed_paths set to ../../wp-coding-standards/wpcs
> WPEmerge\Cli\App::createConfigJson
Script WPEmerge\Cli\App::createConfigJson handling the post-create-project-cmd event terminated with an exception

  [ErrorException]                                    
  Trying to access array offset on value of type int  

Steps to reproduce

  1. sudo update-alternatives --config php
  2. select PHP 7.4
  3. cd wp-content/themes
  4. composer create-project htmlburger/wpemerge-theme my-wp-theme

Comments

I haven't found any issue related to PHP 7.4 so i'm creating this one. I was able to install the theme with PHP 7.3

atanas-dev commented 4 years ago

Thank you for the report @gui-com-pt !

This looks like a dependency issue but I will look into it.

atanas-dev commented 4 years ago

The issue has been fixed in master - for more information and a work-around please refer to https://github.com/htmlburger/wpemerge-theme/issues/43#issuecomment-617930863.