frederic3
Forum Replies Created
-
Forum: Plugins
In reply to: [Interactive Content – H5P] Can’t Find H5P-ContentAs I think there will be no other solution, I decided to migrate my database to the new format. Here’s a short rundown of what I did.
Beware this is a dangerous operation where you could loose your website content! Only do what you understand!
1. I upgraded my server to Debian 11.0 Bullseye. This means, I am now on MariaDB 10.5.11.
2. I made a Backup of the H5P plugin version 1.15 (path needs to be adapted):
tar cvf h5p.tar /var/my-website/cms/wp-content/plugins/h5p3. Just to be safe and able to quickly recover, I made an image copy of all database files (path is standard location in Debian):
systemctl stop mariadb tar cvf mysql.tar /var/lib/mysql systemctl start mariadb4. Create a SQL script dump of the WordPress database, which includes H5P (the database name needs to be adapted):
mysqldump --add-drop-database wordpress >wordpress.sql5. Completely erase the WordPress database and recreate it from scratch using the dump file (database name and database user needs to be adapted):
mysql -u root drop database wordpress; create database wordpress; grant all privileges on wordpress.* to wordpress@localhost; flush privileges; use wordpress; source wordpress.sql; exit6. Upgrade H5P Plugin to Version 1.15.3. This worked without a problem now. In my case, the Row Format of the WordPress tables in MariaDB has changed from “Compact” to “Dynamic” (can be verified with select * from information_schema.INNODB_SYS_TABLES;)
Forum: Plugins
In reply to: [Interactive Content – H5P] Can’t Find H5P-Content@icc0rz I just enabled WordPress logging and tried 1.15.2 again. I can see the following message, which I guess is where the database upgrade fails:
[07-May-2021 13:06:08 UTC] WordPress-Datenbank-Fehler Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs für Abfrage ALTER TABLE wp_pws_h5p_contents ADD COLUMN a11y_title VARCHAR(255) NULL von require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, H5P_Plugin::check_for_updates, H5P_Plugin::update_database, dbDelta(sorry for the German locale, “WordPress-Datenbank-Fehler” just means WordPress database error, “für Abfrage” means for query)
Forum: Plugins
In reply to: [Interactive Content – H5P] Can’t Find H5P-Content@icc0rz I think it’s the same issue. The content is not showing on the web page and can’t be opened on the backend. In the web server log file I get the following:
AH01071: Got error 'PHP message: WordPress-Datenbank-Fehler Unknown column 'hc.a11y_title' in 'field list' f\xc3\xbcr Abfrage SELECT hc.id , hc.title , hc.parameters AS params , hc.filtered , hc.slug AS slug , hc.user_id , hc.embed_type AS embedType , hc.disable , hl.id AS libraryId , hl.name AS libraryName , hl.major_version AS libraryMajorVersion , hl.minor_version AS libraryMinorVersion , hl.embed_types AS libraryEmbedTypes , hl.fullscreen AS libraryFullscreen , hc.authors AS authors , hc.source AS source , hc.year_from AS yearFrom , hc.year_to AS yearTo , hc.license AS license , hc.license_version AS licenseVersion , hc.license_extras AS licenseExtras , hc.author_comments AS authorComments , hc.changes AS changes ...'Forum: Plugins
In reply to: [Interactive Content – H5P] Can’t Find H5P-Content@icc0rz and everybody else, the same problem happend to me. Fortunately, I could roll back to a backup of 1.15, which solved the problem for now.
My system is Debian 10 with the distribution’s current PHP and MariaDB versions. Those are PHP 7.3.27-1~deb10u1 and MariaDB Ver 15.1 Distrib 10.3.27-MariaDB.
Of course, I’d prefer to stay current with H5P! If I can help to fix this problem, I’m happy to do so.