Maintentance area bug and possible solution
-
Haven’t been able to get the “Broadcast Data” maintenance feature to work in the Broadcast “Maintenance” tab. I would click the link and the interface would spit out “Beginning to check broadcast data. 2 rows to check.” over and over and never finish. I noticed that some errors were occurring like this:
“file_put_contents(/var/folders/rq/gj1t_wld3p3_scngddds5b840000gn/T/broadcast_maintenance_for_user_3.tmp): failed to open stream: Permission denied”
I followed the error path and found it to be caused by line 52 of /threewp-broadcast/include/maintenance/data.php
I swapped out sys_get_temp_dir() with get_temp_dir() (a built-in WordPress function) and it now works without errors. So line 52 becomes:
return get_temp_dir() . sprintf( '/broadcast_maintenance_for_user_%s.tmp', $user_id ); //HACK!
I’m not sure if my problem is a unique situation or not but I thought I would share this in case someone else has the same problem.
The topic ‘Maintentance area bug and possible solution’ is closed to new replies.