Please log in to subscribe to updates for this article
Last updated at Wed Jul 22 08:28, by zegenie
Table of contents
Error: uasort() expects parameter 2 to be a valid callback, no array or string given when using eAccelerator
Error: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.
Error: preg_match() function.preg-match: Compilation failed: unrecognized character after (?< at offset
Installation and setup ⇑ top
What are the system requirements for installing The Bug Genie 3.x? ⇑ topTo be installed, The Bug Genie requires the following:
- A web server, with URL rewriting capabilities
- PHP version 5.3.0 or later. PHP version 5.2.x is not supported.
- A supported database (MySQL >= 5.0 or PostgreSQL >= 8.2 ) and php modules for this database
- The PHP gmp extension
- For project statistics, the PHP gd extension needs to be installed
- For incoming email support, the PHP imap extension needs to be installed
How do I upgrade to the latest release? ⇑ topFor known issues and caveats when upgrading, please see Upgrade notes.
3.2.7 -> 4.0 ⇑ topThe Bug Genie internals has changed a lot between these two releases. To avoid conflicts and errors, make sure the following pre-conditions are met before you follow the instructions in the attached UPGRADE.md:
- Remove the folder /core/cache entirely, including subfolders and/or files
- Create a folder named "cache" under the root thebuggenie/ folder
- Copy the file core/config/b2db.sample.yml -> core/config/b2db.yml, and use the values from core/b2db_bootstrap.inc.php to populate the file you copied. If you don't have this file in your download, use the attached file instead.
- Remember to update your web server setup to point to the public/ subfolder (was previously thebuggenie/)
- Remove the contents of the public/css folder, and make a symlink from themes/oxygen/css (target) to public/css/oxygen (link name)
3.2.x -> 3.2.7 ⇑ topDownload the archive from the main download site. Extract the files into your current installation, overwriting existing files where prompted. When this is done, clear the contents of the B2DB cache folder (don't delete the folder, just its contents):
You will want to clear the apc (in-memory) cache as well. If you're running your own server, this can be done by restarting or reloading the web-server. If this is not an option, you can edit modules/main/about.html.php and add this line at the top:
Then visit<?php TBGContext::clearCacheKeys(); ?>
Remember to revert your changes.
3.1.x -> 3.2.x or 3.0.1 -> 3.1.x ⇑ topDownload the main archive from the download site. Extract the files into your current installation, overwriting existing files where prompted. When this is done, clear any files the cache folders (don't delete the folder or any containing folders, just files in the folders):
core/cache/B2DB core/cacheAlso make sure you clear the web server cache by either restarting the web server or disabling apc.
The upgrade helper needs write access to the following two files:
./installed #This file will be altered with version information ./upgrade #This file will be deleted
You cannot update directly from 3.0 to 3.2. Upgrades can only be performed from one point release to another, such as 3.0 -> 3.1, and then 3.1 -> 3.2.
Make sure your installed file contains the correct version number. In some releases of The Bug Genie, the installer would write an incorrect version number to this file during installation. If you're running a clean installation of 3.1.x, it should say
3.1, installed <date>If you're running 3.1.x, upgraded from 3.0.x, it should say
3.0, installed <date> 3.1, upgraded <date>You can find your version at
The upgrade file doesn't exist. Create it to enable upgrading, and then open up the your bug tracker with the following url, which will launch the upgrade helper:
<http://trackername>/upgradeWhen the upgrade helper is completed, your installation will be upgraded to the new version.
3.1 -> 3.1.x or 3.0 -> 3.0.x ⇑ topDownload the archive from the main download site. Extract the files into your current installation, overwriting existing files where prompted. When this is done, clear the contents of the B2DB cache folder (don't delete the folder, just its contents):
Upgrading from ANY pre-release / beta version -> ANY other version ⇑ topWe do not support upgrading from pre-release, beta or RC versions. Please perform a clean install of the latest stable release, or perform an upgrade from an earlier stable release if available.
Upgrading from 3.2 RC4 or later -> 3.2 RC5 or 3.2 final ⇑ topPlease see the upgrade notes for the different release candidates, here: ReleaseCandidateUpgrades
What are the required database permissions for installing and using The Bug Genie? ⇑ topThe Bug Genie does not require any special database permission for normal usage, except the following:
SELECT, UPDATE, INSERT, DELETEDuring installation, however, tables are created, and as such the database user used during installation also requires the following permissions:
CREATE, ALTER, INDEXIf you want to change the database user used in normal operations, after the installation has been completed, you can do so by updating the username located in the following file:
What files should I back up when upgrading or reinstalling The Bug Genie? ⇑ topA general overview of the folder structure of The Bug Genie is available in the development section in the wiki. Worth noting is that The Bug Genie stores configuration and installation information in the following files (from project root):
This file contains version information and timestamp from when the installation took place. The file is required for The Bug Genie to run, as it is being pinged everytime The Bug Genie is initialized. The file usually contains something like this:
3.0, installed 29.04.2011 21:45After upgrade, it will contain something like this:
3.1, upgraded 30.04.2011 20:11 3.0, installed 29.04.2011 21:45/core/b2db_bootstrap.inc.php
This file contains the database connection details. Contents usually looks like this:
In addition, the apache .htaccess file is located inside the public directory:<?php /** * B2DB sql parameters * * @author Daniel Andre Eikeland <email@example.com> * @version 2.0 * @license http://www.opensource.org/licenses/mozilla1.1.php Mozilla Public License 1.1 (MPL 1.1) * @package B2DB * @subpackage core */ self::setUname('db_user'); self::setPasswd('password'); self::setTablePrefix('tbg3_'); self::setDSN('mysql:host=localhost;dbname=thebuggenie_db');
thebuggenie/.htaccessFor a minor performance increase you can copy this configuration to your virtual host configuration if you're using apache.
Is it possible to install The Bug Genie on systems with pcre libs < 8? ⇑ topNo. Our intelligent text parser uses syntax introduced in pcre version 8, and will not function properly in earlier versions. Upgrading pcre libraries can be quite painful, so you should look for packages for your distribution (if running unix/linux).
Can you add support for PHP 5.2.x? ⇑ topNo. We will not add support for any versions of PHP < 5.3. PHP version 5.2 is unsupported by PHP, and if your hosting provider has not updated to version 5.3.x you will have to ask them to do so. PHP 5.2.x is outdated, contains security issues and is not recommended to use.
Is it possible to install The Bug Genie on IIS6? ⇑ topThe Bug Genie requires url rewriting to function. You will be able to install it without, but you will not be able to use The Bug Genie without an url rewriting module properly configured for The Bug Genie. There is a free rewrite module available from microsoft's codeplex: http://iirf.codeplex.com/ and there is also one available from a company called helicontech: http://www.helicontech.com/isapi_rewrite/
Tips and tricks about installing The Bug Genie on IIS6 can be found in this forum thread:
Troubleshooting ⇑ top
Error: uasort() expects parameter 2 to be a valid callback, no array or string given when using eAccelerator ⇑ topThis is a conflict with The Bug Genie and eAccelerator. See issue #2115 for more information and workarounds.
Error: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. ⇑ topThe Bug Genie requires php to be correctly configured - this includes configuring the default timezone. As The Bug Genie supports multiple timezones including server / user difference, this is a requirement for The Bug Genie to function properly. Please see the php documentation for how to set this up properly: http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
Error: preg_match() function.preg-match: Compilation failed: unrecognized character after (?< at offset ⇑ topThe Bug Genie requires pcre libraries version 8 or later. This message usually occurs if the pcre libraries on your system is older than the required version. (On many CentOS and RedHat systems, the installed libraries are version 6.x) You can find your installed pcre library version by looking at the pcre section of your
To fix this error you need to upgrade your system pcre libraries to a new version, at least version 8.<?php phpinfo();
Note: as of 3.1, a check is performed during installation to make sure your pcre libraries are up to date. Installation will not be possible with pcre libraries < version 8.
Configuration and general usage ⇑ top
What is the default username and password? ⇑ topThe Bug Genie sets up one administrator and one (automatic) guest user. The Administrator user has the following username/password:
- Username: administrator
- Password: admin
Which web browsers are supported? ⇑ topIn general, we recommend that you use the latest available version of your web browser of choice. The Bug Genie tries to use standards compliant markup and features wherever possible, but in some cases certain UI features or functionality may not be available for your browser yet. There are also some browsers we know works to some degree, and there are some browsers we will not make an effort supporting. In general, the supported browser versions are:
- Latest or "latest - 1" stable version of Firefox
- Opera 11.50 or later
- Latest stable version of Chrome/Chromium, Safari
- Internet Explorer 9
Browsers known to function adequately, or with minor quirks:
- Internet Explorer 8
Browsers known to not function properly:
- Internet Explorer 7
- Internet Explorer 6
- Firefox 3.x
Where is the "I forgot my password" link? ⇑ topTo send out a forgotten password message, the email functionality must be set up and enabled, otherwise there would be no way to actually email users the password restoration instructions. When this functionality is enabled and configured, a "Forgot password" link is available in the login / registration popup.
Can I customize the text above the login box? ⇑ topYes. The text for this box is stored as a Wiki page, and can be accessed by editing the LoginIntro article in the main wiki in your installation.
How do I set up The Bug Genie to use GMail / Google Mail to send out email notifications? ⇑ topYou need to use special settings for GMail / Google Mail to work properly. For this to work, PHP needs to have the openssl extension installed and enabled. To use GMail / Google Mail to send out email notifications, make sure these settings are correctly configured:
- SMTP server address: ssl://smtp.gmail.com
- SMTP address port: 465
- SMTP username / password: your gmail address and password
- Email «from»-address: your gmail address