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
Eval.EnableZendZorting/hhvm.enable_zend_zorting needed for some magento extensions #3202
Comments
It might be helpful if you can include some error logs! |
Instead of using that module, use |
@danslo out of interest what is the related ini setting for it, as the documentation on the wiki is out of date. Thanks |
@craigcarnell There isn't one (yet). Add it to your config.hdf. |
@danslo OK. I've stopped using config.hdf! :) |
Depending on which API was used, we might automatically have one - in which case, it'll be hhvm.enable_zend_sorting |
@fredemmott Thanks - I recently setup the admin server for hhvm but I don't see where I can get a list of all current ini settings applied - is this something that could be done? Thanks |
https://github.com/facebook/hhvm/wiki/INI%20Settings is the most complete list. ini_get_all() will give you some of the current values. This is something we need to improve. |
@fredemmott Thanks I've added a simple dump script to my application.
👍 |
@danslo: the sort order is undefined; does magento itself depend on PHP5's behavior, or is it just some extensions? |
@fredemmott Yes, it's Magento itself... but third party extensions may also suffer from it as they can add themselves to the totals collector (like a reward point module). Anyway, |
👍 |
Given this is in doc/inconsistencies, I don't think there is anything more we should do it within HHVM. It might be worthwhile to file an issue against Magento's installation documentation. |
@fredemmott: Maybe default to off when not in EnableHipHopSyntax mode? |
@Majkl578 : we decided not to do that as the PHP documentation explicitly says this behavior is undefined and shouldn't be depended on, and it's not performant. |
@danslo I tried adding both Neither worked but your Rubic_FixTotalSorting module did. I would prefer to use the recommened EnableZendSorting solution, am I implementing it correctly? |
@rossmc In ini files it should be |
@danslo,thanks I'll try that tomorrow. Should it be in both ini files? /etc/hhvm/php.ini file and /etc/hhvm/server.ini file |
Either should be fine. Php.ini is used for both the server and command line. |
@danslo |
Separate issue for sure, if I had to guess it probably has something to do with this inconsistency. Can't exactly say I have a lot of time to investigate this issue though. It would help if someone could narrow it down to a couple lines of PHP (outside of Magento). |
I also cannot reproduce this on the latest nightly, so please provide exact instructions. |
Magento website breaks with this module turned on.
In app/etc/modules there are a couple of TBT*.xml files that belong to the module
We found out that if we turn of TBT_RewardsOnly.xml. the problem is fixed.
But off course that is not a beautiful option.
Also there is a calculation issue when updating product amount in shopping cart
from lets say 1 to 3 the subtotal stays at the price of 1 piece.
Using Rubic_FixTotalSorting. does not fix this problem
thanks
The text was updated successfully, but these errors were encountered: