timber / debug-bar-timber

Debug Bar Extension for the Timber Library
https://github.com/timber/debug-bar-timber
56 stars 8 forks source link

Fatal error in PHP 5.3 #3

Closed signal-intrusion closed 10 years ago

signal-intrusion commented 10 years ago

PHP Version 5.3.2-1ubuntu4.17

[Thu Jan 16 22:23:10 2014] [error] [client 67.189.144.172] PHP Fatal error: Using $this when not in object context in /nas/wp/www/cluster-1136/upstatement/wp-content/plugins/debug-bar-timber/class-debug-bar-timber.php on line 19, referer: http://upstatement.wpengine.com/wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=

sleepyjackson commented 10 years ago

I get exactly the same issue. I'm using version version 0.2 of the plugin. The error line is line 16 of class-debug-bar-timber.php.

Activate this plugin and it kills every page of mine that uses Timber. Deactivate it and its fine. This is happening on my wpengine account (which is PHP 5.3.2-1ubuntu 4.18 with mysql 5.5.27). Oddly this wasn't happening when I was testing locally on mamp (which is php version 5.5.3). Both are running wp 3.8.