Becc
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Side Tab] PHP notices: Undefined index SERVER_PORT and SERVER_NAMEAwesome! Thanks again!
Forum: Plugins
In reply to: [Simple Side Tab] PHP notices: Undefined index SERVER_PORT and SERVER_NAMEHey Scot, thanks for responding. Looking at it again, I’ve realised it’s only going to be a WP-CLI problem, so you may or may not want to do anything about it: sorry to have jumped the gun and gotten you concerned. It’s because it’s command line PHP I’m using (WP-CLI being a command line interface to WordPress); the $_SERVER array isn’t getting set because there is no web server invoking it. Hence the PHP notices on the command line as I attempt to perform updates using WP-CLI. I’ve found a few other reports of people using WP-CLI and having similar issues where the $_SERVER array is referenced, eg https://github.com/wp-cli/wp-cli/issues/1734 and https://github.com/wp-cli/wp-cli/issues/785#issuecomment-138040347
You’re right, checking isset() would solve them. When I wrapped everything in the rum_get_full_url() function with ‘if(isset($_SERVER[“SERVER_NAME”]))’, the notices ceased.
I’ll copy this reply over at the github issue for if you want to go ahead with the change you suggested, though totally understand if you don’t. Thanks again for getting back to me about it!
I also had this problem with this plugin. Had to go with BuddyPress Humanity instead. Would love to use this one instead if you can resolve the inconsistent calculations, but I just had a user complain about typing in the correct response five times and still not being able to get through it.
Just came here to report having had the same problem. MailPoet won’t work with this no-nag plugin activated. Deactivate it and MailPoet’s fine.