Fixed XF 1.5 -> 2.0 Beta 2 xengallery_exif error

Liam W

in memoriam 1998-2020
Affected version
2.0.0 Beta 2
I just got this redoing the upgrade from 1.5 to 2.0 Beta 2:

Screen Shot 2017-09-12 at 6.22.57 PM.webp
You're only catching the database exceptions :)

(Although shouldn't that really only be in the media gallery upgrade?)

Liam
 
The reason why it happens in the XF upgrade is because we know that this table would prevent the utf8mb4 conversion.

You're right, though, that we need to just catch all exceptions here, or just do the query in the DB adapter, or, arguably, we should be throwing XF\Db\Exception in the SM.
 
This is now fixed.

As of this post, a hotfix has been made to the beta 2 package to resolve this issue. Any downloads after the date on this post will include the fix below.

If you have already downloaded this and are testing upgrades from 1.x (without XFMG present), you can resolve this issue manually by changing the following in src/XF/Install/Upgrade/2000010-200a.php:
Code:
catch (\XF\Db\Exception $e) {}
to:
Code:
catch (\Exception $e) {}
 
Top Bottom