Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running on a PHP version that is less than 7.1.0 #72

Closed
G17creative opened this issue Nov 26, 2019 · 4 comments
Closed

Error when running on a PHP version that is less than 7.1.0 #72

G17creative opened this issue Nov 26, 2019 · 4 comments
Assignees
Labels
Bug Report Something isn't working

Comments

@G17creative
Copy link

Error: Could not delete /var/www/clients/client1/web393/web/vendor/angellco/spoon/composer.json: unlink(/var/www/clients/client1/web393/web/vendor/angellco/spoon/composer.json): Permission denied

Composer output: Package "craftcms/vue-asset" listed for update is not installed. Ignoring.
Package "danielstjules/stringy" listed for update is not installed. Ignoring.
Loading composer repositories with package information
Updating dependencies
Package operations: 0 installs, 1 update, 0 removals

  • Updating angellco/spoon (3.3.7 => 3.4.0):
@G17creative
Copy link
Author

After updating the vendor folder permissions and running the update again we're getting a new error:

Status: Internal Server Error

Response:

Exception 'ParseError' with message 'syntax error, unexpected '?''

in /var/www/clients/client1/web393/web/vendor/angellco/spoon/src/services/BlockTypes.php:70

Stack trace:
#0 /var/www/clients/client1/web393/web/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/client...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('angellco\spoon\...')
#2 [internal function]: spl_autoload_call('angellco\spoon\...')
#3 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/di/Container.php(447): ReflectionClass->__construct('angellco\spoon\...')
#4 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/di/Container.php(374): yii\di\Container->getDependencies('angellco\spoon\...')
#5 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/di/Container.php(159): yii\di\Container->build('angellco\spoon\...', Array, Array)
#6 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/BaseYii.php(345): yii\di\Container->get('angellco\spoon\...', Array)
#7 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/di/ServiceLocator.php(137): yii\BaseYii::createObject('angellco\spoon\...')
#8 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/base/Module.php(745): yii\di\ServiceLocator->get('blockTypes', false)
#9 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/di/ServiceLocator.php(74): yii\base\Module->get('blockTypes')
#10 /var/www/clients/client1/web393/web/vendor/angellco/spoon/src/Spoon.php(103): yii\di\ServiceLocator->__get('blockTypes')
#11 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/base/BaseObject.php(109): angellco\spoon\Spoon->init()
#12 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/base/Module.php(158): yii\base\BaseObject->__construct(Array)
#13 /var/www/clients/client1/web393/web/vendor/craftcms/cms/src/base/Plugin.php(130): yii\base\Module->__construct('spoon', Object(craft\web\Application), Array)
#14 [internal function]: craft\base\Plugin->__construct('spoon', Object(craft\web\Application), Array)
#15 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/di/Container.php(400): ReflectionClass->newInstanceArgs(Array)
#16 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/di/Container.php(159): yii\di\Container->build('angellco\spoon\...', Array, Array)
#17 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/BaseYii.php(351): yii\di\Container->get('angellco\spoon\...', Array, Array)
#18 /var/www/clients/client1/web393/web/vendor/craftcms/cms/src/services/Plugins.php(897): yii\BaseYii::createObject(Array, Array)
#19 /var/www/clients/client1/web393/web/vendor/craftcms/cms/src/services/Plugins.php(230): craft\services\Plugins->createPlugin('spoon', Array)
#20 /var/www/clients/client1/web393/web/vendor/craftcms/cms/src/base/ApplicationTrait.php(1375): craft\services\Plugins->loadPlugins()
#21 /var/www/clients/client1/web393/web/vendor/craftcms/cms/src/web/Application.php(112): craft\web\Application->_postInit()
#22 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/base/BaseObject.php(109): craft\web\Application->init()
#23 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/base/Application.php(206): yii\base\BaseObject->__construct(Array)
#24 /var/www/clients/client1/web393/web/vendor/craftcms/cms/src/web/Application.php(100): yii\base\Application->__construct(Array)
#25 [internal function]: craft\web\Application->__construct(Array)
#26 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/di/Container.php(400): ReflectionClass->newInstanceArgs(Array)
#27 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/di/Container.php(159): yii\di\Container->build('craft\web\Appli...', Array, Array)
#28 /var/www/clients/client1/web393/web/vendor/yiisoft/yii2/BaseYii.php(351): yii\di\Container->get('craft\web\Appli...', Array, Array)
#29 /var/www/clients/client1/web393/web/vendor/craftcms/cms/bootstrap/bootstrap.php(244): yii\BaseYii::createObject(Array)
#30 /var/www/clients/client1/web393/web/vendor/craftcms/cms/bootstrap/web.php(52): require('/var/www/client...')
#31 /var/www/clients/client1/web393/web/index.php(23): require('/var/www/client...')
#32 {main}

@joshangell
Copy link
Contributor

Hi @G17creative - I’m guessing you’re running a version of PHP lower than 7.1.0? Is that correct?

@G17creative
Copy link
Author

Hi @joshangell, thanks for getting back. That's correct, it's just 7.0.33

@joshangell
Copy link
Contributor

Aha OK then - you will need to be on at least PHP 7.1.0, see here for reasons why: https://www.php.net/manual/en/functions.returning-values.php#functions.returning-values.type-declaration

I will leave this open for now until I force that requirement in the README and with composer.

@joshangell joshangell self-assigned this Nov 26, 2019
@joshangell joshangell changed the title Update to 3.4.0 error Update to 3.4.0 error when running on a PHP version that is less than 7.1.0 Nov 26, 2019
@joshangell joshangell changed the title Update to 3.4.0 error when running on a PHP version that is less than 7.1.0 Error when running on a PHP version that is less than 7.1.0 Nov 26, 2019
@joshangell joshangell added the Bug Report Something isn't working label Nov 26, 2019
@joshangell joshangell pinned this issue Dec 2, 2019
joshangell added a commit that referenced this issue Dec 4, 2019
- Bumped the PHP requirement to >= 7.1 ([#72](#72))

- Fixed a couple of bad references to the `uid` field on a Solspace Calendar model ([#73](#73))
- Fixed the collapsed / expanded reflow issues ([#58](#58) & [#67](#67)) - hat tip to [@jsunsawyer](https://github.com/jsunsawyer) for pinpointing the specific circumstances that cause this to pop up

* tag '3.4.1':
  Finish up 3.4.1
@joshangell joshangell unpinned this issue Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants