-
-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OVH: Update to 1.5.0 crashes #1243
Comments
Hello, |
Hello, Will let you know if I can find anything. |
Ok, I have now found the issue, related to the change regarding emojis I imagine, not only does it crash when you try to read feeds containing special characters as I have a clean install without any feed configured, but I have found that the change in ModelPDO.php was the origin of the crash. According to phpmyadmin on my server the mysql version is 5.5.46-0+deb7u1-log so I believe it should be ok but there seems to be an issue with this specific encoding. I will stay with the 1.4.0 for the moment but it should be good to improve the prerequites checking at some point to prevent users from crashing their system while trying to update. |
Thank you for testing. Do you have any error message?
|
Link to #1219 |
@Alkarex I did a clean install of 1.5.0, reached the end of the install process and the 3 tables are created but then, when I try to follow the link to open the app at the end of the install process (don't remember the name), I see the big blue button for a second, then am redirected to an error screen that just tell me there is a Fatal error and suggests to look the logs. I have found that changing back the two occurences of utf8mb4 in ModelPDO.php were fixing the issue. The same happens when trying to run the upgrade fro 1.4 to 1.5, I have not tried to apply the same fix on this version but the error seems to be the same. |
Ah indeed, I was wrong: utf8mb4 is of course needed immediately to open the connection. I will have to test whether utf8 could maybe be enough for the connexion itself. |
But utf8mb4 should be available already from MySQL 5.5.3 https://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html so it is a bit strange that you are facing problems with a version 5.5.46 |
Could you please try to run a little test? <?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$dbHost = 'localhost';
$dbName = 'freshrss';
$dbUser = 'freshrss';
$dbPassword = 'XXX';
$table = 'freshrss_alex_category';
header('Content-Type: text/plain;charset=UTF-8');
echo "PHP version:\t", PHP_VERSION, "\n";
$db = new PDO('mysql:host=' . $dbHost . ';dbname=' . $dbName . ';charset=utf8mb4',
$dbUser,
$dbPassword,
array(
PDO::ATTR_EMULATE_PREPARES => false,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
)
);
echo "MySQL version:\t", $db->getAttribute(PDO::ATTR_SERVER_VERSION), "\n";
$stmt = $db->query('SELECT VERSION()');
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
print_r($results);
$stmt = $db->query('SELECT * FROM ' . $table);
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
print_r($results); |
Sure :
|
i have noticed that using set names utf8mb4 seems to be ok, at least it doesn't return any error message, bug using it in the PDO init string will generate an error. |
Ok, thanks. And when you use |
PHP version: 5.5.37 ) ) |
Merci. So, now I need to find why utf8mb4 does not work on your instance, despite being > 5.5.3... |
Could you please try this new test? <?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$dbHost = 'localhost';
$dbName = 'freshrss';
$dbUser = 'freshrss';
$dbPassword = 'XXX';
$table = 'freshrss_alex_category';
header('Content-Type: text/plain;charset=UTF-8');
echo "PHP version:\t", PHP_VERSION, "\n";
$db = new PDO('mysql:host=' . $dbHost . ';dbname=' . $dbName . ';charset=utf8',
$dbUser,
$dbPassword,
array(
PDO::ATTR_EMULATE_PREPARES => false,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
)
);
echo "MySQL version:\t", $db->getAttribute(PDO::ATTR_SERVER_VERSION), "\n";
$stmt = $db->query('SELECT VERSION()');
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
print_r($results);
$stmt = $db->query("SELECT CHARACTER_SET_NAME AS cs FROM information_schema.CHARACTER_SETS WHERE CHARACTER_SET_NAME LIKE 'utf%'");
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
print_r($results);
$db = new PDO('mysql:host=' . $dbHost . ';dbname=' . $dbName . ';charset=utf8mb4',
$dbUser,
$dbPassword,
array(
PDO::ATTR_EMULATE_PREPARES => false,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
)
);
$stmt = $db->query('SELECT * FROM ' . $table);
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
print_r($results); Voir aussi (il semblerait que vous ayez une solution) :
|
the utf8mb4 appears in the list but trying to use it as a charset still generates an error :
I will give a try to the different links suggested. |
Anything new? Did it work when updating the OVH settings? |
Feel free to re-open if needed. |
The same for me, after the update (one week ago), impossible to access my freshrss. When installing a new one, it cannot connect to the old mysql database. It's only working with sqlite but in this case i loose my feeds. |
@majoux OVH offers the possibility to upgrade to a newer MySQL version supporting |
@majoux Please give a try to https://docs.ovh.com/fr/fr/web/hosting/modifier-lenvironnement-dexecution-de-mon-hebergement-web/ and let me know whether that helps. |
I'm not using ovh, I use a Debian Squeeze that's why mysql is so old. |
@majoux Ok. Debian Squeeze is not suited for production anymore as it has passed its end-of-life (February 2016). Concretely, if you cannot upgrade Debian (which seems to be needed anyway), the options are:
|
For reference: #1153 |
Suite de #1328 (comment) |
@symac Un autre utilisateur a testé avec succès de passer l'environnement OVH de legacy à stable #1369 (comment) |
Hello,
my freshrss install was 1.2.0, going to the check for update page I was offered to update to 1.4.0, everything went fine, then checking again for a new version I was offered the 1.5.0, I decided to run this second update and it crashed. I now get an error "### Fatal error! ### See logs files." and in the log files I can see an error saying "Access to database is denied for".
Looking at the latest CHANGELOG I can see that mysql 5.5.* is required, I am on an OVH shared hosting and according to my phpinfo() the "Client API version" for mysql is 5.1.73, I assume it might be the issue.
So my questions are :
Btw thanks for the great work, first time I encounter a breaking bug with Freshrss after all this time !
The text was updated successfully, but these errors were encountered: