processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

Cant install the latest DEV (nearly MASTER) with a profile exported from ProcessExportProfile

Open cb2004 opened this issue 11 months ago • 1 comments

It seems with the latest changes to install.php I cannot install a profile which was exported using ProcessExportProfile. After entering the database details I get this message:

SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION 'utf8mb4_general_ci' is not valid for CHARACTER SET 'utf8mb3'

Server connection collation: utf8mb4_unicode_ci

Database collation: utf8mb4_general_ci

Upon some digging, the site-blank profile contains this in install.sql for all tables:

ENGINE=MyISAM DEFAULT CHARSET=utf8;

My profile exported from ProcessExportProfile contains this in install.sql for all tables:

ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8mb4_general_ci;

Doing a find and replace on the COLLATE=utf8mb4_general_ci; and changing it to blank, I was able to install using my profile. The weird thing is, the error from the installer mentions utf8mb3 which doesn't make sense.

cb2004 avatar Jan 09 '25 11:01 cb2004

Thanks @cb2004 I've pushed an update, does this fix it?

ryancramerdesign avatar Jan 09 '25 15:01 ryancramerdesign

@cb2004, is this issue fixed? Can we close it?

matjazpotocnik avatar Aug 02 '25 14:08 matjazpotocnik