Title: Doesn&#039;t play nice with PHP7; PHP error after WP 4.4 (post_permalink)
Last modified: August 31, 2016

---

# Doesn't play nice with PHP7; PHP error after WP 4.4 (post_permalink)

 *  [Umbrovskis.com](https://wordpress.org/support/users/rolandinsh/)
 * (@rolandinsh)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/doesnt-play-nice-with-php7-php-error-after-wp-44-post_permalink/)
 * post_permalink is **deprecated** since version 4.4! Use get_permalink() instead.
 * ::ob_callback() error in PHP7
 * PHP 7.0 / Apache 2.4
 * [https://wordpress.org/plugins/w3-total-cache/](https://wordpress.org/plugins/w3-total-cache/)

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

 *  [mikegleasonjr](https://wordpress.org/support/users/mikegleasonjr/)
 * (@mikegleasonjr)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/doesnt-play-nice-with-php7-php-error-after-wp-44-post_permalink/#post-7404159)
 * Also:
 *     ```
       PHP message: PHP Warning:  Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a reference, value given in /wp-includes/functions.php on line 3549" while reading response header from upstream, client: 105.188.192.209, server: xxxxxxxxxx, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm-staging.sock:", host: "xxxxxxxxxxx"
       ```
   
 * After fixing that, performance were up again
 *  [Gwyneth Llewelyn](https://wordpress.org/support/users/gwynethllewelyn/)
 * (@gwynethllewelyn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/doesnt-play-nice-with-php7-php-error-after-wp-44-post_permalink/#post-7404164)
 * Just as a curiosity, how did you ‘fix that’? (I mean what changes did you make
   to which file?)
 *  Thread Starter [Umbrovskis.com](https://wordpress.org/support/users/rolandinsh/)
 * (@rolandinsh)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/doesnt-play-nice-with-php7-php-error-after-wp-44-post_permalink/#post-7404165)
 * . @gwynethllewely here: [https://github.com/rolandinsh/w3-total-cache/commit/0d2bd0fef83282d8daeb962db524018ff43e199f](https://github.com/rolandinsh/w3-total-cache/commit/0d2bd0fef83282d8daeb962db524018ff43e199f)
 *  [Gwyneth Llewelyn](https://wordpress.org/support/users/gwynethllewelyn/)
 * (@gwynethllewelyn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/doesnt-play-nice-with-php7-php-error-after-wp-44-post_permalink/#post-7404166)
 * Ah yes, sorry, in the mean time I saw that as well. However, I’m now questioning
   if W3TC works at all. That small change definitely fixed the warnings, but somehow,
   I don’t see any content being cached on disk… not even the directories are being
   written (i.e. deleting them and reinstalling W3TC does not help). Maybe it’s 
   just my configuration, though…
 *  Thread Starter [Umbrovskis.com](https://wordpress.org/support/users/rolandinsh/)
 * (@rolandinsh)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/doesnt-play-nice-with-php7-php-error-after-wp-44-post_permalink/#post-7404167)
 * it works for me: Apache 2.4 / PHP 7.0 / Ubuntu 16.04
 *  [Gwyneth Llewelyn](https://wordpress.org/support/users/gwynethllewelyn/)
 * (@gwynethllewelyn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/doesnt-play-nice-with-php7-php-error-after-wp-44-post_permalink/#post-7404168)
 * All right! So that might be a nginx issue, then, because that’s what I’m using(
   also on Ubuntu 16.04).

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

The topic ‘Doesn't play nice with PHP7; PHP error after WP 4.4 (post_permalink)’
is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)
 * [post_permalink](https://wordpress.org/support/topic-tag/post_permalink/)

 * 6 replies
 * 3 participants
 * Last reply from: [Gwyneth Llewelyn](https://wordpress.org/support/users/gwynethllewelyn/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/doesnt-play-nice-with-php7-php-error-after-wp-44-post_permalink/#post-7404168)
 * Status: not resolved