twitteroauth icon indicating copy to clipboard operation
twitteroauth copied to clipboard

PHP NOTICE about port

Open davidosomething opened this issue 13 years ago • 3 comments

NOTICE: /Users/dotrakoun/Sites/arnold/arn.com/plugins/arndotcom-twitter/twitteroauth/OAuth.php:385 - Undefined index: port

davidosomething avatar Jun 27 '13 17:06 davidosomething

Hi,

I get the same error. I`ve implemented the function inside a WordPress theme to generate some twitter feeds. The error is not persistent, meaning that it appears and then disappears on page refresh, but is quite annoying.

I tried to modify $port = @$parts['port']; to if(!empty($port)) { $port = @$parts['port']; } but with no luck.

Any thoughts on this?

Thanks!

pseudonymus avatar Aug 19 '13 21:08 pseudonymus

Shouldn't you check if @$parts['port'] isn't empty in stead of $port? As he will complain the key doesn't exist in this array (@$parts).

On 19 Aug 2013, at 23:34, pseudonymus [email protected] wrote:

Hi,

I get the same error. I`ve implemented the function inside a WordPress theme to generate some twitter feeds. The error is not persistent, meaning that it appears and then disappears on page refresh, but is quite annoying.

I tried to modify $port = @$parts['port']; to if(!empty($port)) { $port = @$parts['port']; } but with no luck.

Any thoughts on this?

Thanks!

— Reply to this email directly or view it on GitHub.

jelledelaender avatar Aug 19 '13 21:08 jelledelaender

there was some port handling improvements recently added

abraham avatar Aug 09 '14 06:08 abraham