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

Missing manifest path casues exceptions #34

Open
okolvik-avento opened this issue Dec 19, 2024 · 1 comment
Open

Missing manifest path casues exceptions #34

okolvik-avento opened this issue Dec 19, 2024 · 1 comment

Comments

@okolvik-avento
Copy link

The updated plugin (from 5.0.0 and forward) is missing manifestPath for the vite component, which causes an exception when registering the indicator asset in View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE.

This affects the front-end and certain parts of the backend.

Here's the full exception

ValueError: Path cannot be empty in /var/www/html/vendor/nystudio107/craft-plugin-vite/src/helpers/FileHelper.php:91
Stack trace:
#0 /var/www/html/vendor/nystudio107/craft-plugin-vite/src/helpers/FileHelper.php(91): file_get_contents('')
#1 [internal function]: nystudio107\pluginvite\helpers\FileHelper::nystudio107\pluginvite\helpers\{closure}(Object(craft\cache\FileCache))
#2 /var/www/html/vendor/yiisoft/yii2/caching/Cache.php(608): call_user_func(Object(Closure), Object(craft\cache\FileCache))
#3 /var/www/html/vendor/nystudio107/craft-plugin-vite/src/helpers/FileHelper.php(79): yii\caching\Cache->getOrSet('vite', Object(Closure), 1, Object(yii\caching\ChainedDependency))
#4 /var/www/html/vendor/nystudio107/craft-plugin-vite/src/helpers/ManifestHelper.php(53): nystudio107\pluginvite\helpers\FileHelper::fetch('', Array)
#5 /var/www/html/vendor/nystudio107/craft-plugin-vite/src/services/ViteService.php(280): nystudio107\pluginvite\helpers\ManifestHelper::fetchManifest('')
#6 /var/www/html/vendor/nystudio107/craft-plugin-vite/src/services/ViteService.php(162): nystudio107\pluginvite\services\ViteService->manifestRegister('src/js/indicato...', false, Array, Array)
#7 /var/www/html/vendor/craftpulse/craft-password-policy/src/PasswordPolicy.php(300): nystudio107\pluginvite\services\ViteService->register('src/js/indicato...', false)
#8 [internal function]: craftpulse\passwordpolicy\PasswordPolicy->craftpulse\passwordpolicy\{closure}(Object(craft\events\TemplateEvent))
#9 /var/www/html/vendor/yiisoft/yii2/base/Event.php(312): call_user_func(Object(Closure), Object(craft\events\TemplateEvent))
#10 /var/www/html/vendor/yiisoft/yii2/base/Component.php(650): yii\base\Event::trigger('craft\\web\\View', 'beforeRenderPag...', Object(craft\events\TemplateEvent))
#11 /var/www/html/vendor/craftcms/cms/src/web/View.php(2072): yii\base\Component->trigger('beforeRenderPag...', Object(craft\events\TemplateEvent))
#12 /var/www/html/vendor/craftcms/cms/src/web/View.php(582): craft\web\View->beforeRenderPageTemplate('homepage/_entry', Array, 'site')
#13 /var/www/html/vendor/craftcms/cms/src/web/TemplateResponseFormatter.php(57): craft\web\View->renderPageTemplate('homepage/_entry', Array, 'site')
#14 /var/www/html/vendor/yiisoft/yii2/web/Response.php(1109): craft\web\TemplateResponseFormatter->format(Object(craft\web\Response))
#15 /var/www/html/vendor/craftcms/cms/src/web/Response.php(341): yii\web\Response->prepare()
#16 /var/www/html/vendor/yiisoft/yii2/web/Response.php(340): craft\web\Response->prepare()
#17 /var/www/html/vendor/yiisoft/yii2/base/Application.php(390): yii\web\Response->send()
#18 /var/www/html/web/index.php(31): yii\base\Application->run()
#19 {main}
Copy link

linear bot commented Dec 19, 2024

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

1 participant