Please log in to bookmark issues
#2115 – 
Not an issue
Done This issue is marked as done / closed
Locked Most details of this issue cannot be edited because the workflow defines this step as "locked"
Bug report
0
Click to toggle a vote for this issue
0
0 + 0
This issue has been closed with status "Not an issue" and resolution "CAN'T FIX".
Time tracking started at Paused
Description
Hi!

Just testing out The Bug Genie, I came accross a problem. I used Softaculous to install the bug genie 3.2.6, using PHP 5.4 (5.5 did not seem to work).

I tried installing the sample data and also tried creating a project myself. I run into the same error when I click on a project:

An error occured in The Bug Genie uasort() expects parameter 2 to be a valid callback, no array or string given

The following error occured: uasort() expects parameter 2 to be a valid callback, no array or string given in /home/dalane/public_html/bug/core/classes/TBGProject.class.php, line 1209

If you need access to my installation to investigate further, please let me know, so I can create an account for you!
How to reproduce
Fresh install using Softaculous.

Create project. Click on project: Error
Attachments0
 Martin@campbellsoftware.co.uk
Aug 15, 2013 (09:10)
Cancel
Hmm, I'd be suspicious of your installation. The sort method raising the error uses an anonymous inner function so there shouldn't be any problems with this as long as you PHP version is >=5.3.

Could you post a sanitised dump of your PHP Info?

<?php phpinfo(); ?>

The only relevant suggestion online that I saw is that this could be related to an eAccelerator bug if that is used in your environment.

 Faskis
Sep 08, 2013 (22:51)
Cancel
This error started occurring after recompiling PHP with eAccelerator. If anyone could find a workaround for this, that would be appreciated.
 Martin@campbellsoftware.co.uk
Sep 09, 2013 (09:44)
Cancel
Since this is an eAccelerator bug, I suggest you upgrade the version of eAccelerator installed (which reportedly fixes the issue) or disable for the Bug Genie site.

If neither of these preferred solutions is possible then the only other option I can think of is to modify the sort code. If this was made a named function and references accordingly then the eAccelerator bug would no longer apply. However, there might well be many places that anonymous inner functions are used and replacing all of these could be a lot of work. Especially as you'd need to re-apply the changes after every upgrade!
 Faskis
Sep 20, 2013 (20:58)
Cancel
I started messing around with this around, trying to find a workable balance to allow eAccelerator for my server but disabling just for The Bug Genie. One of the thorns on my server is having suPHP, which means php_flag won't work in .htaccess files (it'll just throw a 500 error). Attempting to get the domain that The Bug Genie is utilizing to use a different php.ini file may work, but the simple solution I found was to throw in this line at the top of bootstrap.php (after <?php, obviously):

ini_set('eaccelerator.enable', '0');

That'll disable eAccelerator for The Bug Genie without having to make too much of a mess with your server.
Important details
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Times and dates
  • Estimated time No time estimated
People involved
Other details
  • Not determined