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

Unknown filter type: default - phalcon_3.3.0 #13244

Closed
kowach opened this issue Jan 2, 2018 · 3 comments
Closed

Unknown filter type: default - phalcon_3.3.0 #13244

kowach opened this issue Jan 2, 2018 · 3 comments
Labels
duplicate Duplicate issue. The duplicate issue is referenced in the comments

Comments

@kowach
Copy link

kowach commented Jan 2, 2018

After update from 3.2.4-1 => 3.3.0-1 "default" filter is not recognized any more.

Unknown filter type in .volt at line (x) => {{ myvar|default('some var') }}

OS: Ubuntu Mate 16.04
PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )

Package: php7.0-phalcon
Version: 3.3.0-1
Build Date: Dec 24 2017 10:57:53

Full exception:

Unknown filter type in /../index.volt on line 8
#0 [internal function]: Phalcon\Mvc\View\Engine\Volt\Compiler->resolveFilter(Array, '$preparedParams')
#1 [internal function]: Phalcon\Mvc\View\Engine\Volt\Compiler->expression(Array)
#2 [internal function]: Phalcon\Mvc\View\Engine\Volt\Compiler->expression(Array)
#3 [internal function]: Phalcon\Mvc\View\Engine\Volt\Compiler->compileEcho(Array)
#4 [internal function]: Phalcon\Mvc\View\Engine\Volt\Compiler->_statementList(Array, false)
#5 [internal function]: Phalcon\Mvc\View\Engine\Volt\Compiler->_compileSource('<script>\n    "u...', false)
#6 [internal function]: Phalcon\Mvc\View\Engine\Volt\Compiler->compileFile('/var/.../...', '/.../...', false)
#7 [internal function]: Phalcon\Mvc\View\Engine\Volt\Compiler->compile('/var/../...')
#8 [internal function]: Phalcon\Mvc\View\Engine\Volt->render('/.../...', Array, true)
#9 [internal function]: Phalcon\Mvc\View->_engineRender(Array, 'default/index', true, true, NULL)
#10 [internal function]: Phalcon\Mvc\View->render('mailer', 'index')
#11 /var/.../index.php(43): Phalcon\Mvc\Application->handle()
#12 {main}

index.volt (at line 8)

{{ preparedParams|default([])|json_encode }}
sergeyklay added a commit that referenced this issue Jan 3, 2018
@sergeyklay
Copy link
Contributor

Fixed in the 3.3.x branch. Feel free to open a new issue if the problem appears again. Thank you for the report, and for helping us make Phalcon better.

Refs: #13242

@sergeyklay sergeyklay added duplicate Duplicate issue. The duplicate issue is referenced in the comments Volt labels Jan 3, 2018
sergeyklay added a commit that referenced this issue Jan 8, 2018
@fendorio
Copy link

Anyone know who is responsible for managing Phalcon releases on homebrew? Currently the latest version available is 3.3.0, which of course, contains this bug..

@SMillerDev
Copy link

Homebrew doesn't have the concept of people managing releases. Everyone is welcome to submit a pull request to include a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate issue. The duplicate issue is referenced in the comments
Projects
None yet
Development

No branches or pull requests

4 participants