Could you please give details on how the plugin is broken with current PHP? What version of PHP are you testing with, and what are the specific errors you’re seeing?
I’m not the one who saw the error, but I was told: “From the interweb and error log file it seems may be a backward incompatibility with PHP 7.3+ for the continue keyword in Switch statements.” We’re on PHP 8.
Thanks for the details. I see that there were some PHP 8-related fixes in the GitHub version of the plugin, but it’s possible that they hadn’t yet been put into a ww.wp.xz.cn release. I’ve just released version 0.8.1 of the plugin, which should contain the necessary fix. Please let me know if this doesn’t resolve the problem for you.
Ah! I will give it a try, thanks!
I’m still getting the “critical error” message, I don’t know if it’s still from PHP or something else.
(I did make sure it was updated before trying to export.)
Thanks for reporting back. If you’re able to provide any error messages, it would be helpful. See https://ww.wp.xz.cn/support/article/debugging-in-wordpress/
I can try, but am hindered by the fact that I don’t have file-level access to the contents of the WordPress install. I’m the editor but not the site maintainer. I’ll get back if I can get the error log.
I am told by the site maintainer that upgrading PHP and installing the multibyte string extension fixed it! I just tested it out and can confirm that it worked for me. Here was the error (which is no longer happening):
PHP Fatal error: Uncaught Error: Call to undefined function mb_ereg_replace() in /var/www/setsideb.com/public_html/wp-content/plugins/anthologize/includes/class-tei-dom.php:1047\nStack trace:\n#0 /var/www/setsideb.com/public_html/wp-content/plugins/anthologize/templates/epub/includes/class-epub-builder.php(22): TeiDom->getFileName()\n#1 /var/www/setsideb.com/public_html/wp-content/plugins/anthologize/templates/epub/index.php(29): EpubBuilder->__construct()\n#2 /var/www/setsideb.com/public_html/wp-includes/template.php(783): require_once('...')\n#3 /var/www/setsideb.com/public_html/wp-content/plugins/anthologize/includes/class-admin-main.php(373): load_template()\n#4 /var/www/setsideb.com/public_html/wp-includes/class-wp-hook.php(308): Anthologize_Admin_Main->load_template()\n#5 /var/www/setsideb.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#6 /var/www/setsideb.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#7 /var/www/setsideb.com/public_html/wp-admin/includes/menu.php(155): do_action()\n#8 /var/www/setsideb.com/public_html/wp-admin/menu.php(428): require_once('...')\n#9 /var/www/setsideb.com/public_html/wp-admin/admin.php(158): require('...')\n#10 {main}\n thrown in /var/www/setsideb.com/public_html/wp-content/plugins/anthologize/includes/class-tei-dom.php on line 1047, referer: https://setsideb.com/wp-admin/admin.php?page=anthologize_export_project&project_id=2734
Since we have it working now, I am going to mark this resolved. Thanks very much!