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

HHVM errors #12821

Closed
johanmolen opened this issue Dec 9, 2015 · 4 comments
Closed

HHVM errors #12821

johanmolen opened this issue Dec 9, 2015 · 4 comments
Milestone

Comments

@johanmolen
Copy link
Contributor

Summary

Having the following errors with MODX 2.4.2-pl on a HHVM machine.

Deprecated: ereg: As of PHP 5.3.0, preg_match is suggested instead in /var/www/vhosts/vv-domain.com/production/core/model/phpthumb/modphpthumb.class.php on line 160

Warning: Session callback expects true/false return value in /var/www/vhosts/domain.com/production/core/model/modx/modx.class.php on line 2441

Also noticed that the multi select tv fails on HHVM, for the time being im running the manager in PHP-FPM.

Thanks in advance.

@exside
Copy link
Contributor

exside commented Dec 9, 2015

The first one would be fixed in #12809 (I believe, would be nice if you can test)

@johanmolen
Copy link
Contributor Author

Alright gonna test it as soon as possible!

Thanks!

@exside
Copy link
Contributor

exside commented Dec 9, 2015

and for the second one I'm lost...seems to be something in that block of code

                $sh= false;
                if ($sessionHandlerClass = $this->getOption('session_handler_class', $options)) {
                    if ($shClass= $this->loadClass($sessionHandlerClass, '', false, true)) {
                        if ($sh= new $shClass($this)) {
                            session_set_save_handler(
                                array (& $sh, 'open'),
                                array (& $sh, 'close'),
                                array (& $sh, 'read'),
                                array (& $sh, 'write'),
                                array (& $sh, 'destroy'),
                                array (& $sh, 'gc')
                            );
                        }
                    }
                }
                if (!$sh) {
                    $sessionSavePath = $this->getOption('session_save_path', $options);
                    if ($sessionSavePath && is_writable($sessionSavePath)) {
                        session_save_path($sessionSavePath);
                    }
                }

line 2441 is if (!$sh) {

and $sh is by default an instance of modSessionHandler (core/model/modx/modsessionhandler.class.php) and that classe's methods seem to definitely return other things than true or false...but I'm not sure how to fix that without breaking things...maybe @opengeek has a hint?

@johanmolen
Copy link
Contributor Author

Will try to take a look at it on Sunday!

This was referenced Jan 19, 2016
@opengeek opengeek added this to the v2.5.0-pl milestone Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants