bhashkar007 / guest-entries-notification

A plugin to get notification when an entry is created.
MIT License
4 stars 4 forks source link

Not instantiable – yii\di\NotInstantiableException #10

Closed kevadamson closed 3 years ago

kevadamson commented 3 years ago

I get this error when clicking settings after installing:

Not instantiable – yii\di\NotInstantiableException
Failed to instantiate component or class "by\guestentriesnotification\assetbundles\guestentriesnotification\GuestEntriesNotificationAsset".
Caused by: ReflectionException
Class by\guestentriesnotification\assetbundles\guestentriesnotification\GuestEntriesNotificationAsset does not exist
in /home/.../.../.../vendor/yiisoft/yii2/di/Container.php at line 508
fdelaneau commented 3 years ago

Same problem here 😓 Craft 3.7.13 running on PHP 7.4.23 and MySQL 5.6.41

bhashkar007 commented 3 years ago

@fdelaneau @kevadamson Fixed the issue. Please try installing again. Thanks

fdelaneau commented 3 years ago

@bhashkar007 Thanks for the quick answer 👍

I updated to 1.0.1 but it didn't fix the problem for me 😓 I still get the exact same error at the line 508.

fdelaneau commented 3 years ago

Sorry, I didn't noticed the version number didn't change, so Composer could do the update. I’ll try a manual upgrade.

fdelaneau commented 3 years ago

And it works ! 🥳

bhashkar007 commented 3 years ago

Glad to know 👍

kevadamson commented 3 years ago

Sorry, I didn't noticed the version number didn't change, so Composer could do the update. I’ll try a manual upgrade.

How did you manually upgrade? I seem to be stuck on 1.0.1 ...

fdelaneau commented 3 years ago

How did you manually upgrade? I seem to be stuck on 1.0.1 ...

I donwloaded the zip file from GitHub then replaced the content of the folder guest-entries-notification in vendor/by on my server 😊

fdelaneau commented 3 years ago

It is to my knowledge the only way to upgrade until the author updates the composer file to change the plugin version number.

kevadamson commented 3 years ago

@bhashkar007 Just a heads up:

image

https://packagist.org/packages/by/guest-entries-notification

kevadamson commented 2 years ago

Hi. Can this get updated on packagist? I'd prefer not to be manually editing the vendor folder ...

kevadamson commented 2 years ago

@fdelaneau Not sure you are still using this plugin, but this is how to get the latest version using composer:

"require": {
    "by/guest-entries-notification": "1.0.2"
},
"repositories": [
    {
        "type": "package",
        "package": {
            "name": "by/guest-entries-notification",
            "version": "1.0.2",
            "source": {
                "url": "https://github.com/bhashkar007/guest-entries-notification.git",
                "type": "git",
                "reference": "v1.0.2"
            }
        }
    }
],
Stalex89 commented 2 years ago

The Craft Plugin Store still contains version 1.0.1 without a fix, is it possible to put the latest version there ? Thank you

Screenshot 2022-03-02 at 11 22 08

mark-chief commented 1 year ago

@bhashkar007 please can you allow this latest fixed version to be downloaded in the craft plugin store for craft 3? it's still 1.0.1

mark-chief commented 1 year ago

@bhashkar007 hey, is it possible to get this fixed in the Craft plugin store for craft 3 please? It's giving me big issues here. appreciate any help, thanks