Title: PHP NOTICE
Last modified: August 22, 2016

---

# PHP NOTICE

 *  [dieppon](https://wordpress.org/support/users/dieppon/)
 * (@dieppon)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/php-notice-34/)
 *     ```
       NOTICE: wp-content/plugins/simple-twitter-tweets/twitteroauth/OAuth.php:385 - Undefined index: port
       require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/lightflows/page.php'), get_footer, locate_template, load_template, require_once('/themes/lightflows/footer.php'), dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, PI_SimpleTwitterTweets->widget, TwitterOAuth->get, TwitterOAuth->oAuthRequest, OAuthRequest->to_url, OAuthRequest->get_normalized_http_url
       ```
   
 * Works but this notice appears.
 * [https://wordpress.org/plugins/simple-twitter-tweets/](https://wordpress.org/plugins/simple-twitter-tweets/)

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

 *  [hongpong](https://wordpress.org/support/users/hongpong/)
 * (@hongpong)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-notice-34/#post-5323436)
 * Can remove the notice with this check at line 384:
 * if (isset($parts[‘port’])) {
    $port = @$parts[‘port’]; }
 * I would recommend committing this check to get rid of notices. May have implications
   for the oddly written line 389:
    $port or $port = ($scheme == ‘https’) ? ‘443’:’
   80’;
 *  [hongpong](https://wordpress.org/support/users/hongpong/)
 * (@hongpong)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-notice-34/#post-5323437)
 * Kicks off more notices:
 *     ```
       NOTICE: wp-content/plugins/simple-twitter-tweets/twitteroauth/OAuth.php:384 - Array to string conversion
       require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/mytheme/front-page.php'), dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, PI_SimpleTwitterTweets->widget, TwitterOAuth->get, TwitterOAuth->oAuthRequest, OAuthRequest->to_url, OAuthRequest->get_normalized_http_url
       NOTICE: wp-content/plugins/simple-twitter-tweets/twitteroauth/OAuth.php:392 - Undefined variable: port
       require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/mytheme/front-page.php'), dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, PI_SimpleTwitterTweets->widget, TwitterOAuth->get, TwitterOAuth->oAuthRequest, OAuthRequest->to_url, OAuthRequest->get_normalized_http_url
       ```
   

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/simple-twitter-tweets_595b61.svg)
 * [Simple Twitter Tweets](https://wordpress.org/plugins/simple-twitter-tweets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-twitter-tweets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-twitter-tweets/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-twitter-tweets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-twitter-tweets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-twitter-tweets/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [hongpong](https://wordpress.org/support/users/hongpong/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/php-notice-34/#post-5323437)
 * Status: not resolved