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 running the make command wondering if it is related to the namespace change? #81

Closed
laurabennett opened this issue Dec 15, 2022 · 10 comments

Comments

@laurabennett
Copy link

./craft notifications/make MemberAdded

PHP Warning 'yii\base\ErrorException' with message 'file_get_contents(/home/nhvegberry/webapps/nhvegberry-dev/vendor/percipiolondon/craft-notifications/src/notification.stub): Failed to open stream: No such file or directory'

in /home/nhvegberry/webapps/nhvegberry-dev/vendor/percipioglobal/craft-notifications/src/console/controllers/MakeController.php:122

Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError()
#1 /home/nhvegberry/webapps/nhvegberry-dev/vendor/percipioglobal/craft-notifications/src/console/controllers/MakeController.php(122): file_get_contents()
#2 /home/nhvegberry/webapps/nhvegberry-dev/vendor/percipioglobal/craft-notifications/src/console/controllers/MakeController.php(83): percipiolondon\notifications\console\controllers\MakeController->buildClass()
#3 [internal function]: percipiolondon\notifications\console\controllers\MakeController->actionIndex()
#4 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#5 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#6 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/console/Controller.php(180): yii\base\Controller->runAction()
#7 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/base/Module.php(552): yii\console\Controller->runAction()
#8 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction()
#9 /home/nhvegberry/webapps/nhvegberry-dev/vendor/craftcms/cms/src/console/Application.php(90): yii\console\Application->runAction()
#10 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction()
#11 /home/nhvegberry/webapps/nhvegberry-dev/vendor/craftcms/cms/src/console/Application.php(121): yii\console\Application->handleRequest()
#12 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/base/Application.php(384): craft\console\Application->handleRequest()
#13 /home/nhvegberry/webapps/nhvegberry-dev/craft(22): yii\base\Application->run()

@cookie10codes
Copy link
Contributor

Hi @laurabennett,

Can you provide me the details of your Craft install and plugin version? This can be found in Utilities -> System Report

@laurabennett
Copy link
Author

Craft Pro 4.3.5
Notifications 4.0.0

@cookie10codes
Copy link
Contributor

@laurabennett Thank you for returning.

Can you verify if the notirifaction.stub exists on the path you've send please? Everything seems to be normal and working on my end.

In which environment are you running your project from? I'm running my project inside of Docker

@laurabennett
Copy link
Author

For one thing it says its looking in dev/vendor/percipiolondon but my vendor directory only has percipoglobal. I see there is a 4.1.0 now, I'll see if that makes any difference.

@cookie10codes
Copy link
Contributor

That will be the issue, @laurabennett are you in the ability to re-install the plugin? if not, I'll check to create a migration within the plugin that does the namespace update for you

@laurabennett
Copy link
Author

I can reinstall but this is what is available in the Craft Plugin Store. Do I just change my composer.json file to
"percipiolondon/craft-notifications": "4.1.0" ?

ddev composer require percipioglobal/craft-notifications -w && ddev craft plugin/install notifications
composer require percipioglobal/craft-notifications -w && php craft plugin/install notifications

@cookie10codes
Copy link
Contributor

@laurabennett I see the mistake, I'm going to provide an update and release a version. I'll keep you posted when the update is there

cookie10codes pushed a commit that referenced this issue Dec 21, 2022
@cookie10codes
Copy link
Contributor

@laurabennett can you give 4.1.1 a spin please?

@laurabennett
Copy link
Author

Great, it works. Thank you!

@cookie10codes
Copy link
Contributor

Awesome! Thanks for your help @laurabennett, enjoy the plugin :-)!

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

2 participants