I've searched and searched, but can't find an example like I'm experiencing, everything works but just looking to get rid of all the warnings this bit is throwing in my logs:
$propertyData = $propertyDetail->data;
$displayAddress = $propertyData->display_address;
if ( $displayAddress != "" ) {
file_put_contents( $this->tmpDirectory."/slugs/".sanitize_title( $displayAddress ), $propertyData->property_id );
}
The $displayAddress is being pulled from an API call, it returns and creates the necessary files based off it, screenshot https://share.getcloudapp.com/2Nuyklxd (working properly)
Yet my logs are full of these:
PHP Warning: file_put_contents(/kunder/qzgb_2535/contem_4144/public/wp-real-estate-7/elementor-three-demo/wp-content/cache/idx_temp/slugs/): failed to open stream: Is a directory in /kunder/qzgb_2535/contem_4144/public/wp-real-estate-7/elementor-three-demo/wp-content/plugins/ct-idx-pro/classes/IDX.php on line 390
I realize that states "failed to open stream: Is a directory" which leads me to believe there's an issue with using a variable for the filename, or am I missing something simple?
Any help or guidance is appreciated, thanks!