Skip to content

"Too many shorthand attributes" error message after migrated to smarty 5 #949

@rodriguezny

Description

@rodriguezny

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
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions