2019-08-25, 08:46 AM
Hello,
I recently upgraded myBB from 1.8.14 to 1.8.21 (full upgrade)
Everything seems fine, except for the "Export Private Messages" feature when selecting HTML format => CSS is not applied (see below , before/after upgrading)
![[Image: 19041008404723064116194655.jpg]](https://camo.mybb.com/f9436bd082b6f68191ace9f6bbdd114ef49614d0/68747470733a2f2f6e736d30392e636173696d616765732e636f6d2f696d672f323031392f30342f31302f31393034313030383430343732333036343131363139343635352e6a7067)
(screenshot from a 1.8.14 -> 1.8.20 upgrade on a test environment, with the same issue)
I tried to analyse the php code used to display this page and found in "private.php" the following code :
So it tries to retrieve the CSS with SID=1 in the themestylesheets table
Problem: before upgrading, this SID exists. After upgrading, it doesn't any more (see below: diff before/after upgrading) :
![[Image: mybb_bdd.png]](https://camo.mybb.com/877a217df7aa986394cf979e2e3ea03442066865/687474703a2f2f6d7977332e667265652e66722f666f72756d2f6d7962625f6264642e706e67)
Putting back the previous SID values fixes this issue, but I wonder if there could be any other side-effects, or if this could be a bug in the upgrade process and/or in myBB code (SID column is auto_increment and the upgrade process seems to delete/insert rows in this table) ... or if there is something wrong with my installation from the start
Thank you for your help,
JY.
I recently upgraded myBB from 1.8.14 to 1.8.21 (full upgrade)
Everything seems fine, except for the "Export Private Messages" feature when selecting HTML format => CSS is not applied (see below , before/after upgrading)
(screenshot from a 1.8.14 -> 1.8.20 upgrade on a test environment, with the same issue)
I tried to analyse the php code used to display this page and found in "private.php" the following code :
$query = $db->simple_select("themestylesheets", "stylesheet", "sid = '1'", array('limit' => 1));
So it tries to retrieve the CSS with SID=1 in the themestylesheets table
Problem: before upgrading, this SID exists. After upgrading, it doesn't any more (see below: diff before/after upgrading) :
Putting back the previous SID values fixes this issue, but I wonder if there could be any other side-effects, or if this could be a bug in the upgrade process and/or in myBB code (SID column is auto_increment and the upgrade process seems to delete/insert rows in this table) ... or if there is something wrong with my installation from the start

Thank you for your help,
JY.