Notice: Array to string conversion in /var/www/html/mytheme/wp-includes/formatting.php on line 1025 Notice: Array to string conversion in /var/www/html/mytheme/wp-includes/formatting.php on line 1025 wordpress wordpress

Notice: Array to string conversion in /var/www/html/mytheme/wp-includes/formatting.php on line 1025


It seems really likely that one of your redux variables contains an Array instead of a String. Knowing that, you just need to figure out which one it is and figure out where the actual piece of data that you are looking for is.

One way you could debug this is to do an explicit conversion of all three of the redux variables to strings. (e.g. 'id' => implode("***", $custom_videourl)). Then, once you've figured out which one (or more than one) is an array, you'll probably know how to access the piece of data you actually want.

If that doesn't do it for you, I would suggest adding this to your wp-config.php file: define( 'WP_DEBUG_LOG', true );

This will create a debug log for you. You can then log out to it (e.g. error_log( print_r( $custom_videourl ) ); I believe it usually stores the debug.log file in the wp-content folder.