7. Exception
…/­src/­PMCOM/­Core/­Database.php75
6. PMCOM\Core\Database died
…/­src/­PMCOM/­Core/­Database.php390
5. PMCOM\Core\Database query_unique
…/­src/­PMCOM/­Front/­Product.php50
4. PMCOM\Front\Product exists
…/­src/­PMCOM/­Core/­Router.php116
3. PMCOM\Core\Router _get_route
<#unknown>0
2. call_user_func_array
…/­src/­PMCOM/­Core/­Router.php158
1. PMCOM\Core\Router __callStatic
…/­index.php99
0. PMCOM\Core\Router get_route
…/­index.php99

Exception Exception thrown with message "Database error: Please check the "Database Query Error" details below" Stacktrace: #7 Exception in /home/tbec71889672/public_html/src/PMCOM/Core/Database.php:75 #6 PMCOM\Core\Database:died in /home/tbec71889672/public_html/src/PMCOM/Core/Database.php:390 #5 PMCOM\Core\Database:query_unique in /home/tbec71889672/public_html/src/PMCOM/Front/Product.php:50 #4 PMCOM\Front\Product:exists in /home/tbec71889672/public_html/src/PMCOM/Core/Router.php:116 #3 PMCOM\Core\Router:_get_route in <#unknown>:0 #2 call_user_func_array in /home/tbec71889672/public_html/src/PMCOM/Core/Router.php:158 #1 PMCOM\Core\Router:__callStatic in /home/tbec71889672/public_html/index.php:99 #0 PMCOM\Core\Router:get_route in /home/tbec71889672/public_html/index.php:99

Database error: Please check the "Database Query Error" details below

/home/tbec71889672/public_html/src/PMCOM/Core/Database.php
		$handler = new \PMCOM\Core\PurposeHandler;
		$handler->addDataTable( 'Database Query Error', array(
		    'Error' => $error,
		    'Query' => $query
		));
		$run->pushHandler($handler);
		$run->register();
		Throw new \Exception( 'Database error: Please check the "Database Query Error" details below' );
	}
 
/home/tbec71889672/public_html/src/PMCOM/Core/Database.php
	 *
	 * @param string $query sql query
	 * @return array of objects
	 */
	function query_unique($query)
	{
		$query .= ' LIMIT 1';
		$this->lastResult = mysql_query($query) or self::died( mysql_error(), $query );
 
		if (mysql_num_rows($this->lastResult) > 0) return mysql_fetch_object($this->lastResult);
/home/tbec71889672/public_html/src/PMCOM/Front/Product.php
	* @return boolen
	*/
	function exists($slug)
	{
		$site_id = SITE;
		$product = $this->database->query_unique("SELECT products.*, product_sites.name as site_name
			FROM product_sites INNER JOIN products ON product_sites.product_id = products.id
			WHERE site_id = $site_id AND status = 1 AND (products.slug = '$slug' OR product_sites.slug = '$slug') GROUP By products.id ORDER BY products.sort ASC");
 
		$prod = new STDclass();
/home/tbec71889672/public_html/src/PMCOM/Core/Router.php
					$method = array_reverse( $segments )[0];
				} elseif( $method === 'index' ) {
					$method = $class;
				}
				foreach( $controllers as $controller ) :
					try {
						$routed = $this->container->get( $controller );
						if( $routed->exists( $method ) ) :
							die( $routed->view( $method ) );
						endif;
<#unknown>
/home/tbec71889672/public_html/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 );
	}
 
/home/tbec71889672/public_html/index.php
|---------------------------------------------------------------
| LOAD THE ROUTES CLASS
|---------------------------------------------------------------
|
| And away we go...
|
*/
PMCOM\Core\Router::get_route( $container );
/home/tbec71889672/public_html/index.php
|---------------------------------------------------------------
| LOAD THE ROUTES CLASS
|---------------------------------------------------------------
|
| And away we go...
|
*/
PMCOM\Core\Router::get_route( $container );
Key Value
Error Unknown column 'b.imageSrc' in 'where clause'
Query SELECT products.*, product_sites.name as site_name FROM product_sites INNER JOIN products ON product_sites.product_id = products.id WHERE site_id = 1 AND status = 1 AND (products.slug = ''+b.imageSrc+'' OR product_sites.slug = ''+b.imageSrc+'') GROUP By products.id ORDER BY products.sort ASC LIMIT 1
Key Value
LSPHP_ENABLE_USER_INI on
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT */*
CONTENT_LENGTH 0
HTTP_HOST www.thebestecigarette.co.uk
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_HTTPS 1
REDIRECT_UNIQUE_ID Zjx0dhDjFLgL_Yzbq9n67wAALRo
REDIRECT_SCRIPT_URL /themes/default/plugins/elevatezoom/'+b.imageSrc+'
REDIRECT_SCRIPT_URI https://www.thebestecigarette.co.uk/themes/default/plugins/elevatezoom/'+b.imageSrc+'
REDIRECT_USER_ID 4182016
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI www.thebestecigarette.co.uk
REDIRECT_HTTP2 on
REDIRECT_H2PUSH off
REDIRECT_H2_PUSH off
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_STREAM_ID 1
REDIRECT_H2_STREAM_TAG 434081-5435-1
REDIRECT_STATUS 200
UNIQUE_ID Zjx0dhDjFLgL_Yzbq9n67wAALRo
SCRIPT_URL /themes/default/plugins/elevatezoom/'+b.imageSrc+'
SCRIPT_URI https://www.thebestecigarette.co.uk/themes/default/plugins/elevatezoom/'+b.imageSrc+'
USER_ID 4182016
HTTPS on
SSL_TLS_SNI www.thebestecigarette.co.uk
HTTP2 on
H2PUSH off
H2_PUSH off
H2_PUSHED
H2_PUSHED_ON
H2_STREAM_ID 1
H2_STREAM_TAG 434081-5435-1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.thebestecigarette.co.uk
SERVER_ADDR 92.205.89.213
SERVER_PORT 443
REMOTE_ADDR 3.149.26.246
DOCUMENT_ROOT /home/tbec71889672/public_html
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/tbec71889672/public_html
SERVER_ADMIN webmaster@thebestecigarette.co.uk
SCRIPT_FILENAME /home/tbec71889672/public_html/index.php
REMOTE_PORT 13491
REDIRECT_URL /themes/default/plugins/elevatezoom/'+b.imageSrc+'
SERVER_PROTOCOL HTTP/2.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /themes/default/plugins/elevatezoom/'+b.imageSrc+'
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1715238006.0312
REQUEST_TIME 1715238006
empty
empty
empty
empty
empty
Key Value
LSPHP_ENABLE_USER_INI on
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
0. PMCOM\Core\PurposeHandler