User edit not working when deployed with hhvm
aditya- opened this issue · 3 comments
Hi,
I have deployed this repository with laravel forge in linode . Here is my environment info:
Ubuntu 14.04
Nginx 1.6
PHP 5.5
MySQL
HHVM
Everything works fine but after login to admin .. click on users --> edit user --> showing blank screen
my debug enabled but still its showing blank screen
i am using hhvm .. in hhvm error log its showing :
\nFatal error: An iterator cannot be used with foreach by reference in app/models/User.php on line 60
may i know how this error can be fixed
Did you ever find a resolution?
I'd look at the line 60 and replace the iterator reference with direct usage. In that spot I don't even know why it's using a reference.
https://github.com/andrewelkins/Laravel-4-Bootstrap-Starter-Site/blob/master/app/models/User.php#L65
Can it to:
foreach( $roles as $role )
{
$roleIds[] = $role->id;
}
Made a fix for this. Update and it shouldn't bomb out on that