-
Notifications
You must be signed in to change notification settings - Fork 185
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
usort: Array was modified by the user comparison function #258
Comments
Hmm, I shall take a look at this after I finish work |
This seems to be a bug in PHP Because the |
Can you give me the output of |
|
Sorry, I don't mean deployer itself but the repository for the project you have set up in deployer |
Sorry, my bad.
|
Thanks, I have managed to recreate the issue with that data, only happens prior to PHP 7 |
* master: Updated version Updated CHANGELOG Updated dependencies Fixes #258 - Fatal error in PHP 5 when git tags are not valid version numbers
* master: (33 commits) Updated version Updated CHANGELOG Updated dependencies Fixes #258 - Fatal error in PHP 5 when git tags are not valid version numbers Fixing version Updated CHANGELOG Fix the installer to correctly check for either "node" or "nodejs" Updated dependencies Delete .travis.yml Create .travis.yml Updated CHANGELOG Updated CHANGELOG Updated CHANGELOG Updated CHANGELOG Fixed link Updated CHANGELOG Fixes #257 - Touch files when extracting to prevent warnings about timestamps Update README.md Added a note about a common error Updated ioredis ... Conflicts: composer.json composer.lock gulpfile.js package.json resources/assets/js/app.js socket.js
Before submitting your issue, please make sure that you've checked all of the checkboxes below.
php -v
composer install --no-dev
from the root of your installation.npm install --production
from the root of your installation.rm -rf bootstrap/cache/*
from the root of your installation.To help us better understand your issue, please answer the following.
Expected behaviour
Tried to open project dashboard (/projects/1), expected to see dashboard.
Actual behaviour
ErrorException in Project.php line 414:
usort(): Array was modified by the user comparison function
Steps to reproduce
New instance of the Deployer with one project.
Opening project dashboard after first manual deploy generates an exception.
Environment info
Operating System: Ubuntu 14.04.4
PHP Version: 5.6.23
Node Version: 4.4.7
Database System: MySQL
Database Version: 5.5.50
Logs (see storage/logs/) or other output that would be helpful
[2016-08-11 12:46:12] production.ERROR: exception 'ErrorException' with message 'usort(): Array was modified by the user comparison function' in /var/www/src/app/Project.php:414
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'usort(): Array ...', '/var/www/deploy...', 414, Array)
#1 /var/www/src/app/Project.php(414): usort(Array, Object(Closure))
#2 /var/www/src/app/Http/Controllers/DeploymentController.php(75): REBELinBLUE\Deployer\Project->tags()
#3 [internal function]: REBELinBLUE\Deployer\Http\Controllers\DeploymentController->project('1')
#4 /var/www/src/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(80): call_user_func_array(Array, Array)
#5 /var/www/src/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(146): Illuminate\Routing\Controller->callAction('project', Array)
...
The text was updated successfully, but these errors were encountered: