Whoops \ Exception \ ErrorException (E_ERROR)
Whoops\Exception\ErrorException thrown with message "Out of memory (allocated 30146560) (tried to allocate 2359285 bytes)" Stacktrace: #0 Whoops\Exception\ErrorException in /var/www/html/src/PMCOM/Front/Filters2.php:577

Out of memory (allocated 30146560) (tried to allocate 2359285 bytes)

Stack frames (1):
0 Whoops\Exception\ErrorException
…/­src/­PMCOM/­Front/­Filters2.php577
/var/www/html/src/PMCOM/Front/Filters2.php
		$cache = new Cache;
		$cache->setCacheDirectory( BASE_PATH . 'cache/filter/query' );
		$self = $this;
		$products = unserialize(
			$cache->getOrCreate(
				$unique. '.cache',
				array( 'max-age' => 3600 ),
				function() use( $products, $self ) {
		    		$products = $products->groupBy('products.id')->orderBy( $self->orderBy, $self->direction )->get();
		    		return serialize( $products );
				}
			)
		);
 
		// $cache = CacheModel::firstOrCreate( array( 'cache_file' => md5( "product_get_{$id}" ) . '.cache' ) );
		// $cache->type = 'product_get';
		// $cache->type_id = $product->id;
		// $cache->save();
 
		$return = $this->cache = $products;

Environment & details:

Key Value
page
"3"
empty
empty
empty
empty
Key Value
REDIRECT_SCRIPT_URL
"/craft-model-and-hobby/hand-tools/pliers-cutters/"
REDIRECT_SCRIPT_URI
"https://www.shesto.co.uk/craft-model-and-hobby/hand-tools/pliers-cutters/"
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"www.shesto.co.uk"
REDIRECT_STATUS
"200"
SCRIPT_URL
"/craft-model-and-hobby/hand-tools/pliers-cutters/"
SCRIPT_URI
"https://www.shesto.co.uk/craft-model-and-hobby/hand-tools/pliers-cutters/"
HTTPS
"on"
SSL_TLS_SNI
"www.shesto.co.uk"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_IF_MODIFIED_SINCE
"Sun, 22 Sep 2019 05:59:40 CEST"
HTTP_HOST
"www.shesto.co.uk"
HTTP_CONNECTION
"Keep-Alive"
HTTP_ACCEPT_ENCODING
"gzip"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
SERVER_SIGNATURE
"<address>Apache/2.4.29 (Ubuntu) Server at www.shesto.co.uk Port 443</address>\n"
SERVER_SOFTWARE
"Apache/2.4.29 (Ubuntu)"
SERVER_NAME
"www.shesto.co.uk"
SERVER_ADDR
"104.248.173.198"
SERVER_PORT
"443"
REMOTE_ADDR
"35.173.234.140"
DOCUMENT_ROOT
"/var/www/html/"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/var/www/html/"
SERVER_ADMIN
"[no address given]"
SCRIPT_FILENAME
"/var/www/html/index.php"
REMOTE_PORT
"38556"
REDIRECT_URL
"/craft-model-and-hobby/hand-tools/pliers-cutters/"
REDIRECT_QUERY_STRING
"page=3"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
"page=3"
REQUEST_URI
"/craft-model-and-hobby/hand-tools/pliers-cutters/?page=3"
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1574374545.336
REQUEST_TIME
1574374545
empty
0. PMCOM\Core\PurposeHandler
1. Whoops\Handler\CallbackHandler