8. Whoops\Exception\ErrorException
…/­helpers/­url_helper.php19
7. Whoops\Run handleError
…/­helpers/­url_helper.php19
6. redirect_previous
…/­src/­PMCOM/­Front/­FrontController.php142
5. PMCOM\Front\FrontController setPriceDisplay
<#unknown>0
4. call_user_func_array
…/­src/­PMCOM/­Core/­Router.php171
3. PMCOM\Core\Router _get_route
<#unknown>0
2. call_user_func_array
…/­src/­PMCOM/­Core/­Router.php231
1. PMCOM\Core\Router __callStatic
…/­index.php101
0. PMCOM\Core\Router get_route
…/­index.php101

Whoops \ Exception \ ErrorException (E_NOTICE) Whoops\Exception\ErrorException thrown with message "Undefined index: HTTP_REFERER" Stacktrace: #8 Whoops\Exception\ErrorException in /var/www/vhosts/logos4clothes.com/httpdocs/helpers/url_helper.php:19 #7 Whoops\Run:handleError in /var/www/vhosts/logos4clothes.com/httpdocs/helpers/url_helper.php:19 #6 redirect_previous in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Front/FrontController.php:142 #5 PMCOM\Front\FrontController:setPriceDisplay in <#unknown>:0 #4 call_user_func_array in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Router.php:171 #3 PMCOM\Core\Router:_get_route in <#unknown>:0 #2 call_user_func_array in /var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Router.php:231 #1 PMCOM\Core\Router:__callStatic in /var/www/vhosts/logos4clothes.com/httpdocs/index.php:101 #0 PMCOM\Core\Router:get_route in /var/www/vhosts/logos4clothes.com/httpdocs/index.php:101

Undefined index: HTTP_REFERER

/var/www/vhosts/logos4clothes.com/httpdocs/helpers/url_helper.php
	$location = str_replace(SEC_URL, '', $location);
	header('location: '.SEC_URL.$location);
	exit();
}
 
function redirect_previous()
{
	header('location: '.$_SERVER["HTTP_REFERER"]);
	exit();
}
/var/www/vhosts/logos4clothes.com/httpdocs/helpers/url_helper.php
	$location = str_replace(SEC_URL, '', $location);
	header('location: '.SEC_URL.$location);
	exit();
}
 
function redirect_previous()
{
	header('location: '.$_SERVER["HTTP_REFERER"]);
	exit();
}
cpt-obvious This frame is within function 'handleError'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Front/FrontController.php
	function setPriceDisplay( $display = 'retail' )
	{
		if( $display == 'trade' || $display == 'retail' )
		{
			Session::set( 'show_prices_as', $display );
		}
 
		redirect_previous();
	}
}
cpt-obvious This frame is within function 'redirect_previous'
<#unknown>
cpt-obvious This frame is within function 'setPriceDisplay'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Router.php
					$method = array_shift( $segments );
				endif;
				// Not an admin request so need to find out if the route exists
				try {
					$frontRouted = $this->container->get( 'PMCOM\\Front\\' . self::studly( $class ) );
					if( method_exists( $frontRouted, lcfirst( self::studly( $method ) ) ) ) :
						// Load the admin panel
						die( call_user_func_array( array( $frontRouted, lcfirst( self::studly( $method ) ) ), $segments ) );
					endif;
				} catch( \Orno\Di\Exception\ReflectionException $e ) {}
cpt-obvious This frame is within function 'call_user_func_array'
<#unknown>
cpt-obvious This frame is within function '_get_route'
/var/www/vhosts/logos4clothes.com/httpdocs/src/PMCOM/Core/Router.php
 
	public static function __callStatic( $method, $parameters )
	{
		if( is_null( static::$instance ) )
		{
			static::$instance = new Router();
		}
		return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
	}
 
cpt-obvious This frame is within function 'call_user_func_array'
/var/www/vhosts/logos4clothes.com/httpdocs/index.php
| LOAD THE ROUTES CLASS
|---------------------------------------------------------------
|
| And away we go...
|
*/
 
PMCOM\Core\Router::get_route( $container );
cpt-obvious This frame is within function '__callStatic'
/var/www/vhosts/logos4clothes.com/httpdocs/index.php
| LOAD THE ROUTES CLASS
|---------------------------------------------------------------
|
| And away we go...
|
*/
 
PMCOM\Core\Router::get_route( $container );
cpt-obvious This frame is within function 'get_route'
Key Value
PATH /sbin:/usr/sbin:/bin:/usr/bin
PP_CUSTOM_PHP_INI /var/www/vhosts/system/logos4clothes.com/etc/php.ini
PP_CUSTOM_PHP_CGI_INDEX plesk-php56-fastcgi
SCRIPT_NAME /index.php
REQUEST_URI /front_controller/set-price-display/retail
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /front_controller/set-price-display/retail
REMOTE_PORT 49589
SCRIPT_FILENAME /var/www/vhosts/logos4clothes.com/httpdocs/index.php
SERVER_ADMIN sam@purposemedia.co.uk
DOCUMENT_ROOT /var/www/vhosts/logos4clothes.com/httpdocs
REMOTE_ADDR 54.224.103.180
SERVER_PORT 80
SERVER_ADDR 5.250.179.210
SERVER_NAME www.logos4clothes.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at www.logos4clothes.com Port 80</address>
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_CONNECTION close
HTTP_X_ACCEL_INTERNAL /internal-nginx-static-location
HTTP_X_FORWARDED_FOR 54.224.103.180
HTTP_X_REAL_IP 54.224.103.180
HTTP_HOST www.logos4clothes.com
SCRIPT_URI http://www.logos4clothes.com/front_controller/set-price-display/retail
SCRIPT_URL /front_controller/set-price-display/retail
REDIRECT_STATUS 200
REDIRECT_PP_CUSTOM_PHP_CGI_INDEX plesk-php56-fastcgi
REDIRECT_PP_CUSTOM_PHP_INI /var/www/vhosts/system/logos4clothes.com/etc/php.ini
REDIRECT_SCRIPT_URI http://www.logos4clothes.com/front_controller/set-price-display/retail
REDIRECT_SCRIPT_URL /front_controller/set-price-display/retail
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1495776252.9288
REQUEST_TIME 1495776252
empty
empty
empty
empty
Key Value
show_prices_as retail
empty
0. PMCOM\Core\PurposeHandler
1. Whoops\Handler\CallbackHandler