Jump to content

Welcome to DevFuse Forums

Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
Guest Message by DevFuse

Tutorial info Visit support topic

  • Added on: Aug 18 2013 05:57 AM
  • Views: 3181
  • IPB Version: 2.3.x

Update the UMI for php5.4

Posted by AndyF on Aug 18 2013 05:57 AM

The Universal Mod installer will not function on php5.4 correctly, the usual symptoms are it falling over with invalid sql / syntax errors when attempting to install a modification with it.


The following changes will rectify this and have been tested with php5.4.3 with mysql 5.5.24. :)


Open /sources/components_acp/umi.php - Take a backup of this file before editing it!

1. Around line 350, find...


Change to...

2. Around line 605, find...
// Remove the MySQL table types
$query = str_ireplace( 'TYPE=MyISAM', '', $query );
$query = str_ireplace( 'TYPE=INNODB', '', $query );
$query = str_ireplace( 'TYPE=HEAP'  , '', $query );

Change to...
// Remove the MySQL table types
$query = str_ireplace( 'ENGINE=MyISAM', '', $query );
$query = str_ireplace( 'ENGINE=INNODB', '', $query );
$query = str_ireplace( 'ENGINE=HEAP'  , '', $query );

3. Around line 1659, find...
$this->ipsclass->DB->query( $this->fix_create_table( "CREATE TABLE IF NOT EXISTS ".SQL_PREFIX.$v['name']['VALUE']." (".$v['data']['VALUE'].") TYPE=".$v['type']['VALUE'] ) );

Change to...
$this->ipsclass->DB->query( $this->fix_create_table( "CREATE TABLE IF NOT EXISTS ".SQL_PREFIX.$v['name']['VALUE']." (".$v['data']['VALUE'].") ENGINE=".$v['type']['VALUE'] ) );


Save / re-upload umi.php.

Powered by Tutorials 1.5.1 © 2017, by Michael McCune