Support » Plugin: Sitemap by BestWebSoft » Issue when using PHP 7

  • Resolved mumbomedia

    (@mumbomedia)


    Today I got a strange issue.
    After trashing a post I’ve got a message “Missing value two for gglstmp_update_sitemap …”. I research a little bit and found out what was causing this.
    In line 1377 the function gglstmp_update_sitemap is mapped to the trashed_post hook.
    This hook only provide one value post_id so the second $post isn’t set.

    I’ve edited line 1208 to the following:
    function gglstmp_update_sitemap( $post_id, $post=null ) {
    and then I add this line:
    if(is_null($post)){$post = get_post($post_id);}

    Now everything works as expected.

    If you need my changed file please provide me an email or upload form so I could send you it.

    Kind regards

    mumbomedia

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue when using PHP 7’ is closed to new replies.