Title: PHP error
Last modified: August 31, 2016

---

# PHP error

 *  Resolved [robin66075](https://wordpress.org/support/users/robin66075/)
 * (@robin66075)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-error-170/)
 * I’m getting this error while using PHP 7.0.3.
 * `PHP Fatal error: Cannot use "self" when no class scope is active in wp-content/
   plugins/wp-to-twitter/wpt-functions.php on line 122`
 * I have tested this on several websites but I am always getting an error. Can 
   you please fix it?
 * [https://wordpress.org/plugins/wp-to-twitter/](https://wordpress.org/plugins/wp-to-twitter/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-error-170/#post-7159490)
 * What version of WP to Twitter is that? That’s a very improbable error given the
   current content of line 122 of wpt-functions.php.

Viewing 1 replies (of 1 total)

The topic ‘PHP error’ is closed to new replies.

 * ![](https://ps.w.org/wp-to-twitter/assets/icon-256x256.png?rev=2997308)
 * [XPoster - Share to Bluesky and Mastodon](https://wordpress.org/plugins/wp-to-twitter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-to-twitter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-to-twitter/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-to-twitter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-to-twitter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-to-twitter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/php-error-170/#post-7159490)
 * Status: resolved