Closed MorphBonehunter closed 4 years ago
Are you using Grav 1.6?
Yes, the grav version is 1.6.21, the email plugin version is 3.0.6.
I have same problem, @MorphBonehunter Have you found a solution?
Same issue for Grav 1.6.21 and 'Static site generator' plugin.
It looks like its Grav core problem, and it's not related to any of plugins.
How can the problem be corrected?
If I go to system/src/Grav/Common/Twig
at line 211 and if I edit theme
to themes
, it works.
'theme_dir' => $locator->findResource('theme://'),
'theme_url' => $this->grav['base_url'] . '/' . $locator->findResource('theme://', false),
The problem is theme://
it is written in singular instead of plurial.
I’ll take a look at this today.
Exact same problem here
In case of a different plugin with same error: 'Static site generator' on Grav 1.6.21 there was easy workaround -> downgrade to 1.6.20. In Grav 1.6.21 there's some inconsistency in documentation/vendors.
Can you confirm that downgrade to 1.6.20 also work in this case and its not plugin issue?
Grav 1.6.21 - Email 3.0.6 (tried 3.0.5, same result) Though it works with Grav 1.6.20 (Email 3.0.6)
Backtrace (edited) :
In UniformResourceLocator.php line 435:
[InvalidArgumentException]
Invalid resource theme://
Exception trace:
() at /vendor/rockettheme/toolbox/ResourceLocator/src/UniformResourceLocator.php:435
RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator->find() at /vendor/rockettheme/toolbox/ResourceLocator/src/UniformResourceLocator.php:403
RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator->findCached() at /vendor/rockettheme/toolbox/ResourceLocator/src/UniformResourceLocator.php:290
RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator->findResource() at /system/src/Grav/Common/Twig/Twig.php:91
Grav\Common\Twig\Twig->init() at /user/plugins/email/classes/Utils.php:33
Grav\Plugin\Email\Utils::sendEmail() at /user/plugins/email/cli/TestEmailCommand.php:91
Grav\Plugin\Console\TestEmailCommand->serve() at /system/src/Grav/Console/ConsoleCommand.php:41
Grav\Console\ConsoleCommand->execute() at /vendor/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /vendor/symfony/console/Application.php:917
Symfony\Component\Console\Application->doRunCommand() at /vendor/symfony/console/Application.php:269
Symfony\Component\Console\Application->doRun() at /vendor/symfony/console/Application.php:145
Symfony\Component\Console\Application->run() at /bin/plugin:152
The issue is caused by this change (see CLI): https://github.com/getgrav/grav/blob/1.7/UPGRADE-1.7.md#cli-1
Here is the change itself https://github.com/getgrav/grav/commit/48170d2fa01cdeab8d60d0dd6cd563ba9316970b
So.. Basically the reason why this (and some other plugins) CLI commands broke is because of Grav initialization was broken in older versions and they were initializing theme too early, causing issues which could not be fixed without breaking some of the CLI commands.
Confirm that the issue is fixed with 3.0.7:
Message sent successfully!
I've run 2 (very) small websites with grav and today i tried to enable/configure the email plugin in the admin panel on both of the installations. But every time i try to test the Plugin i got the following error (i obfuscate the settings a little bit):
Both sites use the Quark theme and i have no clue what the problem could be.