Title: Issue when using PHP 7
Last modified: January 29, 2018

---

# Issue when using PHP 7

 *  Resolved [mumbomedia](https://wordpress.org/support/users/mumbomedia/)
 * (@mumbomedia)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/issue-when-using-php-7/)
 * 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)

 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/issue-when-using-php-7/#post-9918255)
 * Hi,
 * Thank you for the suggested solution!
 * It will be implemented in the future plugin update.
 *  Thread Starter [mumbomedia](https://wordpress.org/support/users/mumbomedia/)
 * (@mumbomedia)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/issue-when-using-php-7/#post-9920698)
 * Your welcome!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Issue when using PHP 7’ is closed to new replies.

 * ![](https://ps.w.org/google-sitemap-plugin/assets/icon-256x256.gif?rev=2582517)
 * [Sitemap by BestWebSoft - WordPress XML Site Map Page Generator Plugin](https://wordpress.org/plugins/google-sitemap-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-sitemap-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-sitemap-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/google-sitemap-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-sitemap-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-sitemap-plugin/reviews/)

## Tags

 * [php-7](https://wordpress.org/support/topic-tag/php-7/)

 * 2 replies
 * 2 participants
 * Last reply from: [mumbomedia](https://wordpress.org/support/users/mumbomedia/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/issue-when-using-php-7/#post-9920698)
 * Status: resolved