When checking via the WP CLI I was able to find there are errors in these plugins.
Notice: Undefined index: SERVER_NAME in /home/barry/public_html/wp-content/plugins/wpdatatables/source/class.wdttools.php on line 739 Notice: Undefined index: SERVER_NAME in /home/barry/public_html/wp-content/plugins/wpdatatables/source/class.wdttools.php on line 742
This issue is actually well known when using WP CLI.
It’s because of the command line in PHP (WP-CLI is basically 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 you attempt to perform updates using WP-CLI.
There are a few other reports of people using WP-CLI and having similar issues where the $_SERVER array is referenced:
I received this message from my hosting service:
When checking via the WP CLI I was able to find there are errors in these plugins.
Notice: Undefined index: SERVER_NAME in /home/barry/public_html/wp-content/plugins/wpdatatables/source/class.wdttools.php on line 739
Notice: Undefined index: SERVER_NAME in /home/barry/public_html/wp-content/plugins/wpdatatables/source/class.wdttools.php on line 742
Hello Barry
Thank you for your purchase.
This issue is actually well known when using WP CLI.
It’s because of the command line in PHP (WP-CLI is basically 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 you attempt to perform updates using WP-CLI.
There are a few other reports of people using WP-CLI and having similar issues where the $_SERVER array is referenced:
https://github.com/wp-cli/wp-cli/issues/1734
https://github.com/wp-cli/wp-cli/issues/785#issuecomment-138040347
Can you check isset() in the code on those lines to check the variables? They should be there but maybe there are cases where they are not available
Can you wrap everything in the rum_get_full_url() function with ‘if(isset($_SERVER[“SERVER_NAME”]))’? The notices should cease after that.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables