• tsjippy

    (@tsjippy)


    I have the latest version of this plugin.

    It works great, but sometimes it leats to the global $post variable to be null in the_content hook. See below for the sack trace. Can you fix thath?

    do_action_ref_array('mec_scheduler'), WP_Hook->do_action, WP_Hook->apply_filters, MEC_schedule->cron, MEC_schedule->append, MEC_schedule->schedule, MEC_render->dates, MEC_render->data, MEC_main->get_post_content, apply_filters('the_content'), WP_Hook->apply_filters, wpuf_show_custom_fields
    [16-Nov-2020 14:44:14 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /home6/joswebgo/public_html/wp-content/plugins/wp-user-frontend/wpuf-functions.php on line 824
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor webnus

    (@webnus)

    Hi @tsjippy,

    Where are you using the above hooks?

    Best Regards

    Thread Starter tsjippy

    (@tsjippy)

    I have the WordPress User Frontend plugin as well. the two plugins together don’t work well.
    So everytime the mec_schedeler cron job runs (hourly), it ends up doing the apply_filters(‘the_content’) in the wpuf plugin, but it arrives with a global post variable which is null

    Plugin Contributor webnus

    (@webnus)

    Hi @tsjippy,

    This has been forwarded to the developer team and it will be fixed/improved in the next updates.

    Best Regards

    Thread Starter tsjippy

    (@tsjippy)

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘sometime adding null post to the_content’ is closed to new replies.