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

Comments

Projects
None yet
4 participants
@kowach

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

This comment has been minimized.

Show comment
Hide comment
@sergeyklay

sergeyklay Jan 3, 2018

Member

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

Member

sergeyklay commented Jan 3, 2018

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 closed this Jan 3, 2018

sergeyklay added a commit that referenced this issue Jan 8, 2018

@fendorio

This comment has been minimized.

Show comment
Hide comment
@fendorio

fendorio Mar 12, 2018

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..

fendorio commented Mar 12, 2018

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

This comment has been minimized.

Show comment
Hide comment
@SMillerDev

SMillerDev Mar 12, 2018

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

SMillerDev commented Mar 12, 2018

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