Title: Apache2 error PHP 7
Last modified: September 1, 2016

---

# Apache2 error PHP 7

 *  Resolved [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/apache2-error-php-7/)
 * Using Apache 2.4.18 and PHP 7.0.8-0ubuntu0.16.04.2 I get these apache errors 
   where the rendering of the webpage leads to a bad gateway problem
 * `[:error] [pid 9090] PHP Warning: Declaration of FDX_Widget_search::form() should
   be compatible with WP_Widget::form($instance) in wordpress/wp-content/plugins/
   wp-twitter/modules/class-p2.php on line 0`
 * [https://wordpress.org/plugins/wp-to-twitter/](https://wordpress.org/plugins/wp-to-twitter/)

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

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/apache2-error-php-7/#post-7629578)
 * Hi! That error appears to actually be coming from a different plugin. I don’t
   know what it is, but the files the error is citing are not located in the WP 
   to Twitter directory and are not files used in WP to Twitter.
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/apache2-error-php-7/#post-7629586)
 * Strange, the file is there, this is in it:
 *     ```
       cat wp-twitter/modules/class-p2.php
       <?php
       /* Widget_profile
       *------------------------------------------------------------*/
       define( 'PLUGIN_P2', $this->hook . '-'.$this->_p2 );
       define( 'PLUGIN_NAME', $this->pluginname );
   
       class FDX_Widget_profile extends WP_Widget {
   
       	function __construct() {
       		$widget_options = array('classname' => 'widget_wp_twitter_fdx_profile', 'description' => __('Display Twitter Profile Widget', 'wp-twitter') );
       		parent::__construct('fdxprofile',PLUGIN_NAME. ' - '.__('Profile Widget', 'wp-twitter'), $widget_options);
       	}
   
       	function widget($args) {
       	extract($args);
       	$wp_twitter_fdx_widget_title1 = get_option('wp_twitter_fdx_widget_title');
       	echo $before_widget;
       	echo $before_title . $wp_twitter_fdx_widget_title1 . $after_title;
           echo WP_Twitter::wp_twitter_fdx_profile();
           echo $after_widget;
       	}
   
           function form() {
           echo __('Please go to', 'wp-twitter').': <b><a href="'. admin_url('admin.php?page='.PLUGIN_P2).'">'. PLUGIN_NAME . ' | Widgets</a></b> '. __('for options.', 'wp-twitter');
       	}
       }//end
   
       /* Widget_search
       *------------------------------------------------------------*/
       class FDX_Widget_search extends WP_Widget {
   
       	function __construct() {
       		$widget_options = array('classname' => 'widget_wp_twitter_fdx_search', 'description' => __('Display Twitter Search Widget', 'wp-twitter') );
       		parent::__construct('fdxsearch', PLUGIN_NAME. ' - '.__('Search Widget', 'wp-twitter'), $widget_options);
       	}
   
       	function widget($args) {
       	extract($args);
       	$wp_twitter_fdx_widget_title1 = get_option('wp_twitter_fdx_search_widget_sidebar_title');
       	echo $before_widget;
       	echo $before_title . $wp_twitter_fdx_widget_title1 . $after_title;
           echo WP_Twitter::wp_twitter_fdx_search();
           echo $after_widget;
       	}
   
           function form() {
           echo __('Please go to', 'wp-twitter').': <b><a href="'. admin_url('admin.php?page='.PLUGIN_P2).'">'.PLUGIN_NAME . ' | Widgets</a></b> '. __('for options.', 'wp-twitter');
       	}
       }
       ```
   
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/apache2-error-php-7/#post-7629587)
 * And when I disable the wp-to-twitter plugin the errors are gone!
 *  Thread Starter [Vakantie Ameland](https://wordpress.org/support/users/christianebuddy/)
 * (@christianebuddy)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/apache2-error-php-7/#post-7629588)
 * Sorry looks like it is another plugin called `WP Twitter` and yours is `wp-to-
   twitter` Well have to find that one 😉 Tnx anyway for the response
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/apache2-error-php-7/#post-7629589)
 * Yes, that’s what I meant. 🙂

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

The topic ‘Apache2 error PHP 7’ 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/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/apache2-error-php-7/#post-7629589)
 * Status: resolved