Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 73026

Notice: Undefined index: HTTP_USER_AGENT

$
0
0

Replies: 0

When $_SERVER[‘HTTP_USER_AGENT’] is not set, most requests will give a php error notice which will for example prevent using the Woocommerce API, or any header redirect.
A work around is to set that key (when unset) or to suppress notices.

It happens here: woocommerce-product-price-based-on-countries/woocommerce-product-price-based-on-countries.php on line 135


Viewing all articles
Browse latest Browse all 73026

Trending Articles