Error 500 at /src/ACF/acf.php line 491
-
Hello,
I am getting the following error whilst on an ACF field page:
#0 /var/www/jayco/wp-includes/class-wp-hook.php(298): threewp_broadcast\premium_pack\acf\ACF->threewp_broadcast_broadcasting_modify_post(Object(threewp_broadcast\actions\broadcasting_modify_post))
#1 /var/www/jayco/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
#2 /var/www/jayco/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 /var/www/jayco/wp-content/plugins/threewp-broadcast/src/actions/action.php(12): do_action(‘threewp_broadca…’, Object(threewp_broadcast\actions\broadcasting_modify_post))
#4 /var/www/jayco/wp-content/plugins/threewp-broadcast/src/traits/broadcasting.php(525): threewp_broadcast\actions\action->execute()
#5 /var/www/jayco/wp-content/plugins/threewp-broadcast-premium-pack/src/queue/data.php(27): threewp_broadcast\ThreeWP_Broadcast->broadcast_post(Object(threewp_broadcast\broadca in /var/www/jayco/wp-content/plugins/threewp-broadcast-premium-pack/src/acf/ACF.php on line 491
[01-Aug-2017 11:19:10 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_linked_post_on_this_blog() on null in /var/www/jayco/wp-content/plugins/threewp-broadcast-premium-pack/src/acf/ACF.php:491I decided to dive into the code to see what might be wrong. I changed line 491 to the following:
$new_value = $location_bcd !== null ? $location_bcd->get_linked_post_on_this_blog() : false;
Is that an acceptable solution? If yes please add it to your code.
Thank you.
The topic ‘Error 500 at /src/ACF/acf.php line 491’ is closed to new replies.