White screen when using with CPT
-
Hi there, I get a white screen when editing a CPT where I use this icon ACF field, settings using FA5. The issue, it seems, is here in /fields/acf-font-awesome-v5.php
// Original problematic code
$prefix = substr( $select_value, 0, 3 );
// Modified code with checks to ensure $select_value is a string
if (is_array($select_value)) {
error_log("Expected string, got array. Variable contents: " . print_r($select_value, true));
$select_value = ''; // Set to empty string or handle appropriately
}
$prefix = substr( $select_value, 0, 3 ); // This is the line where we ensure $select_value is a stringI thought I would share in case anyone else has the issue
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.