-
Notifications
You must be signed in to change notification settings - Fork 714
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
"Too many shorthand attributes" error message after migrated to smarty 5 #949
Comments
The problem is caused by this call having 4 parameters... Somewhere while refactoring, I set Also, Smarty5 does not seem to support passing parameters by reference anymore, as this code fragment does (the |
…nction with more than 3 parameters in an expression Fixes #949
@rodriguezny #953 should have fixed the 'too many shorthand attributes' error. Can you verify against smarty dev-master? |
Ok, let me verify against smarty dev-master. Thanks! |
Thanks @wisskid for the fix, I installed smarty dev-master, it works fine, the issue no longer exists. |
After migrated our project(Tiki Wiki CMS Groupware => https://tiki.org/HomePage to smarty 5, I have the following error thrown in the template https://gitlab.com/tikiwiki/tiki/-/blob/master/templates/examples/search/related_tracker_items.tpl on line 5.
Error: Syntax error in template "file:examples/search/related_tracker_items.tpl" on line 5 "{if preg_match_all('/(.+?)\:([^\v]+)$/mis', $relationValue, $matches, 2)}" too many shorthand attributes
Any idea of the mistake in my code ?
I explored some issues reported in previous years about the same error message "too many shorthand attribute" but none of them helped me, they are not similar to mine expect that they are both related to the use of the {if}{/if} block.
Below is the entire content of my template
The text was updated successfully, but these errors were encountered: