-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Unknown "partial" tag when sending User mail templates #3341
Comments
Try |
Nope. In file
Commented this code and all works. This is strange |
Then you aren't running the latest OctoberCMS version
On Jan 7, 2018 21:59, "Artur Bekerov" <notifications@github.com> wrote:
Nope.
I found problem.
Fresh install octobercms + userplugin.
In file october\plugins\rainlab\user\views\mail\restore.htm selected code
not work. I think parser cant read tag partial in email template.
{% partial 'button' url=link type='positive' body %}
Restore password
{% endpartial %}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3341 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AG6vUAjk_fEkfTWhO4BtyHR-SjeCoGTPks5tIZKHgaJpZM4RVfxz>
.
|
I install it with Also i tryed on different website run |
@bekerov because if you are installing it via composer on PHP < 7 (a requirement of October) then composer will grab the last version that supported PHP < 7, Build 419 |
thanks. |
Because the plugins don't define PHP as a requirement since October already does and they require October to work |
Updated php to 7.2 version.
Tryed on 2 websites and same problem. For first website it breaks
Could you please help with it? |
If you install via composer then you need to update via composer. Replace composer.json with the current version from the repository and run composer update |
after replace composer.json and composer install same error :( |
when laravel/framework changed from 5.1.* to 5.5.* i got this error |
@bekerov the problem with the attribute filter does not exist is a plugin that is not Laravel 5.5 compatible, what is the full stack trace for that particular error? |
This would be happening if you have the Build 420+ version of https://github.com/octobercms/october/blob/master/modules/backend/views/mail/invite.htm but you don't have the changes in 18b9253#diff-fa443c75b14275af0e30b8973b50926d or they aren't taking affect for some reason. |
@LukeTowers this is my invite.htm subject = "Welcome to October CMS"
layout = "system"
==
Hi {{ name }},
A user account has been created for you.
Login: {{ login }}
Password: {{ password }}
After signing in you should change your password by clicking your name on the top right corner of the administration area.
You can use the following link to sign in:
{{ link }}
==
<p>Hi {{ name }},</p>
<p>A user account has been created for you.</p>
<p>
Login: {{ login }}<br />
Password: {{ password }}
</p>
<p>After signing in you should change your password by clicking your name on the top right corner of the administration area.</p>
<p>
You can use the following link to sign in:<br />
<a href="{{ link }}">{{ link }}</a>
</p> Should I update it by the one you sent? |
@ronogrimen what build number of October are you running? Did you install with the installer or via composer? |
|
@ronogrimen what does your composer.json look like? |
{
"name": "october/october",
"description": "October CMS",
"homepage": "http://octobercms.com",
"keywords": ["october", "cms", "octobercms", "laravel"],
"license": "MIT",
"authors": [
{
"name": "Alexey Bobkov",
"email": "aleksey.bobkov@gmail.com",
"role": "Co-founder"
},
{
"name": "Samuel Georges",
"email": "daftspunky@gmail.com",
"role": "Co-founder"
}
],
"support": {
"issues": "https://github.com/octobercms/october/issues",
"forum": "http://octobercms.com/forum/",
"docs": "http://octobercms.com/docs/",
"irc": "irc://irc.freenode.net/october",
"source": "https://github.com/octobercms/october"
},
"require": {
"php": ">=5.5.9",
"october/rain": "1.0.419",
"october/system": "1.0.419",
"october/backend": "1.0.419",
"october/cms": "1.0.419",
"laravel/framework": "5.1.*",
"wikimedia/composer-merge-plugin": "dev-master"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"phpunit/phpunit": "~4.0",
"phpunit/phpunit-selenium": "~1.2"
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php",
"tests/UiTestCase.php",
"tests/PluginTestCase.php"
]
},
"scripts": {
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd" :[
"php artisan october:install"
],
"post-autoload-dump" : [
"php artisan october:mirror public/"
]
},
"config": {
"preferred-install": "dist",
"platform": {
"php": "7.0.22"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"merge-plugin": {
"include": [
"plugins/*/*/composer.json"
],
"recurse": true,
"replace": false,
"merge-dev": false
}
}
} |
@ronogrimen you are very clearly not on build 432, you are on build 419: "october/rain": "1.0.419",
"october/system": "1.0.419",
"october/backend": "1.0.419", |
But in the backend its 432. What I need to do now? There's no update in the backend |
@ronogrimen every time you run the process that updates the build number all it does is poll the latest build number from the marketplace and set it as your current build. Because your composer version is locked to 419, it would update that number incorrectly. You will need to make sure that your environment is running PHP7 and then replace your composer.json with the version of composer.json currently on the github and then run composer update. |
I have a plugin which uses renatio Dynamic PDF and then mails after creation. However I am getting
I am on build 434 and all my plugins have been updated. |
@StrangerPings what server environment are you on? How did you install October? |
@LukeTowers Currently on a Cloudways LAMP stack. PHP 7.0, MySQL 5.6. I installed October via the php web installer. Let me know if I can provide anything else. |
@StrangerPings did you check to see what the state of your files (mentioned here: #3341 (comment)) are compared to the git repository's versions? |
I just had the same problem that was caused by a helper function I had included via composer. The function was using When further down the stack the email got sent, Twig did not call This left the |
I just moved the Twig parse call into it's own class and registered it via my plugin's boot method. It seems like it's still a problem if
public function registerMarkupTags()
{
// Register token parser permantently
$markupManager = MarkupManager::instance();
$markupManager->registerTokenParsers([
new MailPartialTokenParser,
]);
} Is there a way to force a reload of the twig environment in the MailManager? |
I have to correct my previous comment. After clearing all compiled views and the cache my frontend does not work anymore. Abviously the mail I'll see if I can find another solution. |
same +1 |
@Beaudinn please do not make "+1" comments. If you have nothing detailed or helpful to add to the conversation then just note your "+1" by reacting appropriately to an earlier comment in the thread. |
Sorry @LukeTowers |
@Beaudinn No problem, just for future reference 😉 |
I ended up registring my own Twig environment. This prevents all conflicts when using my helper. // Plugin.php
$this->app->singleton('custom.twig.environment', function ($app) {
$twig = new Twig_Environment(new TwigLoader, ['auto_reload' => true]);
$twig->addExtension(new TwigExtension);
return $twig;
}); |
I had the same problem and I used @tobias-kuendig solution. Thanks |
Expected behavior
When I want reset password I can't do it.
Actual behavior
I got 2 errors in logs when trying reset password:
Reproduce steps
Cant define steps because this error occured after some time
October build
i have old octobercms but tryed php artisan october:update and update octobercms and all plugins (user and blog)
I cant use website anymore, what should i do?
The text was updated successfully, but these errors were encountered: