PHP 5

The current version of sitebuilder will work with PHP 5. There are many settings in PHP 5, and when a host updates PHP, there is always a possibility that settings may differ. So if you find that you have problems with any piece of the system after the update, just let us know and we will be happy to help.

Some common errors when moving to PHP 5 include:

  • Pages using .htm or .html extensions no longer work. Check with your web host to see if your MIME type needs to be changed. Most often, the changes will require lines to be changed to include 'php5' instead of 'php'. For instance, instead of:

    AddType application/x-httpd-php .php .htm .html

    try:

    AddType application/x-httpd-php5 .php .htm .html
  • Update your HTML editor. Make sure you are using the latest editor for your system.

  • Replace ereg_replace with preg_replace. The ereg_replace function is depreciated in PHP 5, and errors may exist if you have error settings turned on. To correct this, use this update

  • Update your password salt. This affects version 2.82 systems (or later releases if you upgraded and did not change the password salt), and is only needed if you use PHP 5.6 or higher. The PHP mcrypt function now requires salt values to be 16, 24 or 36 characters. Open the config.php file in the /sbconf/ folder, and change the line:

    define("SB_PASS_SALT", "rainboWsaNdsunshiNe");

    to:

    define("SB_PASS_SALT", "rainboWsaNdsunshiNehaPPy");

    You can change the salt value to anything you'd like; just make sure it is 16, 24 or 36 characters long.

As always, if you have any problems with the system, just contact us and we will gladly help!