Fatal Error in dkpdf-functions.php (line 356)
-
I’ve fixed this and hoping this patch can be rolled into your next updated.
I received a fatal error pointing to the /dk-pdf/includes/dkpdf-functions.php:356.
This declaration:$option_post_types = get_option( ‘dkpdf_pdfbutton_post_types’, [] ); can return a non array.
In order to patch we ensure it’s always an array before running the ! in_array() function.
Add this line just below line 356:// Ensure it is an array [HOT FIX]
if ( ! is_array( $option_post_types ) ) {
$option_post_types = array_map( ‘trim’, explode( ‘,’, $option_post_types ) );
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.