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

mvc: Macro 'base_dialog_header' is already defined on PHP 7.0 #1245

Closed
fichtner opened this issue Oct 31, 2016 · 13 comments
Closed

mvc: Macro 'base_dialog_header' is already defined on PHP 7.0 #1245

fichtner opened this issue Oct 31, 2016 · 13 comments
Assignees
Labels
bug Production bug
Milestone

Comments

@fichtner
Copy link
Member

Suboptimal workaround introduced for a problem exclusive to PHP 7.0 is 8f194f4 .

Maybe there is some underlying bug that doesn't visibly trigger on PHP 5.6 or we just need to find a better way to keep the former readability intact.

Thanks!

@fichtner fichtner added the bug Production bug label Oct 31, 2016
@fichtner fichtner added this to the 17.1 milestone Oct 31, 2016
@fichtner
Copy link
Member Author

This resurfaced now, we should just avoid the macro here...

https://forum.opnsense.org/index.php?topic=4860.0
6d7d2dc

@fichtner fichtner reopened this Mar 24, 2017
@fichtner
Copy link
Member Author

or alternatively make it a full template to be included

@AdSchellevis
Copy link
Member

new phalcon version?

@fichtner
Copy link
Member Author

could be, although we should really go with the flow here, php 7.0 scoping and phalcon will likely not get better when nobody cares as it would seem ;(

@fichtner
Copy link
Member Author

I saw this just once while testing a few minutes ago, after that the thing works as normal. I've prodded the 3.0.4 phalcon release for over two weeks....

@fichtner
Copy link
Member Author

Sorry for pinging this all the time, small valuable addition: the reporter said this happened for him on a fresh 17.1 install as well today, so it may be circumstantial race condition we could not possibly fix or report upstream

@AdSchellevis
Copy link
Member

really a bummer, the volt templates seem to get more broken on every release.... scope issues, macro issues, ....
Let's revert and hope it won't get worse...

@fichtner
Copy link
Member Author

Agree. I'll get confirmation from the reporter, then try to fix this a bit more pretty

@fichtner fichtner self-assigned this Mar 24, 2017
@fichtner
Copy link
Member Author

created a ticket just for reference... phalcon/cphalcon#12744

@AdSchellevis
Copy link
Member

thanks!

@fichtner
Copy link
Member Author

Ok, that's the one phalcon/cphalcon#12648

@sergeyklay
Copy link

Fixed phalcon/cphalcon#12782

@fichtner
Copy link
Member Author

fichtner commented Apr 9, 2017

@sergeyklay many thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Production bug
Development

No branches or pull requests

3 participants