Conversation
supportHi there, thanks for the awesome plugin. Sadly, upgrading to PHP8 broke the site. Can’t edit posts/pages. Logs show this error. 2023/02/08 01:04:47 [error] 22978#22978: *499221 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php:78 Stack trace: #0 /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php(78): join(Array, ‘ / ‘) #1 /www/name/public/wp-includes/class-wp-hook.php(308): Aphph_Admin_Editor->add_modal_dialog(”) #2 /www/name/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #3 /www/name/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /www/name/public/wp-admin/admin.php(385): do_action(‘load-post.php’) #5 /www/name/public/wp-admin/post.php(12): require_once(‘/www/name…’) #6 {main} thrown in /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php on line 78″ while reading response header from upstream, client: 23.16.80.170, server: name.com, request: “GET /wp-admin/post.php?post=7600&action=edit HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-name.sock:”, host: “name.com:23961”, referrer: “ https://name.com/wp-admin/edit.php?s=hiring&post_status=all&post_type=post&action=-1&m=0&cat=0&seo_filter&readability_filter&paged=1&action2=-1” ;
2023/02/08 01:04:47 [error] 22978#22978: *499221 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php:78 Stack trace: #0 /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php(78): join(Array, ' / ') #1 /www/name/public/wp-includes/class-wp-hook.php(308): Aphph_Admin_Editor->add_modal_dialog('') #2 /www/name/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #3 /www/name/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /www/name/public/wp-admin/admin.php(385): do_action('load-post.php') #5 /www/name/public/wp-admin/post.php(12): require_once('/www/name...') #6 {main} thrown in /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php on line 78" while reading response header from upstream, client: 23.16.80.170, server: name.com, request: "GET /wp-admin/post.php?post=7600&action=edit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-name.sock:", host: "name.com:23961", referrer: "https://name.com/wp-admin/edit.php?s=hiring&post_status=all&post_type=post&action=-1&m=0&cat=0&seo_filter&readability_filter&paged=1&action2=-1"
Thank you for the report, I hope I could update it in the near future.
2023/02/08 01:04:47 [error] 22978#22978: *499221 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php:78 Stack trace: #0 /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php(78): join(Array, ' / ') #1 /www/name/public/wp-includes/class-wp-hook.php(308): Aphph_Admin_Editor->add_modal_dialog('') #2 /www/name/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #3 /www/name/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /www/name/public/wp-admin/admin.php(385): do_action('load-post.php') #5 /www/name/public/wp-admin/post.php(12): require_once('/www/name...') #6 {main} thrown in /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php on line 78" while reading response header from upstream, client: 23.16.80.170, server: name.com, request: "GET /wp-admin/post.php?post=7600&action=edit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-name.sock:", host: "name.com:23961", referrer: "https://name.com/wp-admin/edit.php?s=hiring&post_status=all&post_type=post&action=-1&m=0&cat=0&seo_filter&readability_filter&paged=1&action2=-1"
Thank you for the report, I hope I could update it in the near future.