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

Get the following error when I try to install your yii2-pluto extension with composer #32

Open
lloyd966 opened this issue Feb 8, 2021 · 9 comments

Comments

@lloyd966
Copy link

lloyd966 commented Feb 8, 2021

I get the following error when I try to install your yii2-pluto extension with composer

[InvalidArgumentException]
Package sjaakp/yii2-pluto has a requirement incompatable with your PHP version, PHP extensions and Composer version

I am running the latest version of Yii2 (ie: 2.0.40 (December 23, 2020) using the Yii2 Basic Template on Windows 10 using Wampserver 3.2.3 with
PHP 7.3.21 and MYSQL 8.0.21.

Any suggestions on how I can get this install with Composer would be greatly appreciated.

Thanking you in advance for your kind cooperation, I look forward to your response.

Regards,

Lloyd

@lloyd966
Copy link
Author

lloyd966 commented Feb 9, 2021

Can someone please help me out. I really need to get this installed and working

Thank you

@sjaakp
Copy link
Owner

sjaakp commented Feb 9, 2021 via email

@lloyd966
Copy link
Author

lloyd966 commented Feb 10, 2021

Unfortunately I am still getting the same error with composer. If you could get this to work, I would really appreciate it.

Otherwise I will try to manually install the the extension. I realize that I need to unpack the zip file and place the contents in the correct directory. I am not sure if the directory should be

vendor/sjaakp/yii2-pluto/ or vendor/sjaakp/pluto/

Please confirm which is the correct directory path.

Thank you

Lloyd

@lloyd966
Copy link
Author

Any update on my problem

Thank you

Lloyd

@lloyd966
Copy link
Author

Sorry to bother you again, but I really need your help to get this extension installed and running. Can you please reply to my questions concerning installing your extension with composer, and what directory should I should be installing the extension, if I
go ahead and install it manually.

Thank you, I really appreciate any help you can give me.

Lloyd

@sjaakp
Copy link
Owner

sjaakp commented Feb 14, 2021 via email

@lloyd966
Copy link
Author

I was able to install with composer using the following command:

composer require sjaakp/yii2-pluto --ignore-platform-reqs

I followed the readme instructions and made the changes to my the config files.

After running migrate, I ran Yii Pluto, but get an error as follows:

PHP Parse Error 'yii\base\ErrorException' with message 'syntax error, unexpected ';''
in D:\wamp64\www\yii2-app-basic\vendor\sjaakp\yii2-pluto\Module.php:174

Any Ideas?

Lloyd

@rossaddison
Copy link
Contributor

rossaddison commented Mar 1, 2021

I experienced a similar error ';' a while ago unfortunately did not document it. Pluto was not the error. Sorry I cannot help. One of those annoying errors. I seem to recall it being a php error. I can confirm that Pluto is running fine on php 7.4.9. I know Yii2 had an issue with 7.4.1.

@rossaddison
Copy link
Contributor

Have you managed to resolve your issue? My window cleaning app rossaddison\yii2-h2h-core is running fine on:
php 7.4.9
mysql 5.7.31
yii2-advanced template derived.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants