“in_array() expects parameter 2 to be array, string given”
-
Hi,
My debug log is showing this error:
“in_array() expects parameter 2 to be array, string given”
…which happens during execution of /includes/youtube-api.php at:
// Store data in transients if ( $transient_expiration > 0 ) { set_transient( $transient_key, $data, $transient_expiration ); // Get the current list of transients $transient_keys = get_option( 'ayg_transient_keys', array() ); // Append our new one if ( ! in_array( $transient_key, $transient_keys ) ) { $transient_keys[] = $transient_key; } // Save it to the DB update_option( 'ayg_transient_keys', $transient_keys ); }Is it a problem with the API key?… or something else?
Thank you.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘“in_array() expects parameter 2 to be array, string given”’ is closed to new replies.