Unhandled Error!

Error while sending QUERY packet. PID=13718

Document /phproad/modules/db/classes/db_mysqlidriver.php
Document type PHP document
Line 97
Exception class Phpr_PhpException

Code Highlight

    {
 
        parent::execute($sql);
        $this->connect();
 
        // execute the statement
        $handle = mysqli_query(Db::$connection, $sql);
 
        // If error, generate exception
        if ($err = mysqli_errno(Db::$connection) != 0) {
            $exception               = new Phpr_DatabaseException('MySQL error executing query: ' . mysqli_error(Db::$connection));
            $exception->hint_message = 'This problem could be caused by the LemonStand MySQL connection configuration errors. Please log into the LemonStand Configuration Tool and update the database connection parameters. Also please make sure that MySQL server is running.';
            throw $exception;
# Call Stack Code Document Line
27 mysqli_query(object(mysqli), 'DESCRIBE flynmenus_menus') /phproad/modules/db/classes/db_mysqlidriver.php 97
26 Db_MySQLiDriver->execute('DESCRIBE flynmenus_menus') /phproad/modules/db/classes/db_mysqlidriver.php 212
25 Db_MySQLiDriver->fetchAll('DESCRIBE flynmenus_menus') /phproad/modules/db/classes/db_mysqlidriver.php 188
24 Db_MySQLiDriver->describe_table('flynmenus_menus') /phproad/modules/db/classes/db_sqlbase.php 466
23 Db_SqlBase->describe_table('flynmenus_menus') /phproad/modules/db/classes/db_activerecord.php 1337
22 Db_ActiveRecord->fields(()) /phproad/modules/db/classes/db_activerecord.php 399
21 Db_ActiveRecord->initialize(()) /phproad/modules/db/classes/db_activerecord.php 352
20 Db_ActiveRecord->__construct(()) /modules/core/classes/core_configuration_model.php 25
19 Core_Configuration_Model->__construct(()) /modules/flynmenus/models/flynmenus_menu.php 20
18 FlynMenus_Menu::create(()) /modules/cms/classes/cms_controller.php(383) : eval()'d code 41
17 eval(()) /modules/cms/classes/cms_controller.php 383
16 Cms_Controller->evalWithException('?><? // The $current_tab variable should be defined in the PRE Action Code field of all pages in the following way: // $this->data['current_tab'] = 'news'; // $current_tab = isset($current_tab) ? $current_tab : 'home'; ?> <ul class="right wrapper_mainmenu"> <? if ($this->customer): ?> <!-- account --> <li class="has-dropdown not-click hide-for-large-up"> <a href="#" title="Login" class="opensans_bold login title">My account</a> <ul class="dropdown"> <li class=""> <a href="/account/#profileTab" title="Store" class="oswald_bold title">Update Profile Details</a> </li> <li class=""> <a href="/account/#favouritesTab" title="Store" class="oswald_bold title">My favourites</a> </li> <li class=""> <a href="/account/logout/" title="Store" class="oswald_bold title">Logout</a> </li> </ul> </li> <? else: ?> <!-- login --> <li class="has-dropdown not-click hide-for-large-up"> <a href="/" title="Login" class="opensans_bold login title">Login</a> <ul class="dropdown"> <li class=""> <a href="/sign-up/" title="Visitor sign up" class="oswald_bold title">Visitor sign up</a> </li> <li class=""> <a href="/sign-up/#dealersignup" title="Dealers sign up" class="oswald_bold title">Dealers sign up</a> </li> <li class="login_form"> <? $this->render_partial('account:login_form', array('redirect'=>root_url('/account/'), 'suffix' => '_menu')) ?> </li> </ul> </li> <? endif ?> <? FlynMenus_Menu::create()->find_by_name("Main Menu")->render_frontend(array( 'current_tab' => $current_tab, 'current_tab_matches' => 'id', //'id' or 'class' 'current_tab_class' => 'active', 'children_class' => 'has-dropdown', 'depth_prefix' => 'level', 'depth' => null, 'add_root_url' => false, 'before_menu' => '', //array($id, $name, $short_desc) 'after_menu' => '', 'before_item' => '<li class="%2$s">', //array($id, $class) 'after_item' => '</li>', 'before_url_item_label' => '<a href="%1$s" title="%2$s" class="opensans_bold title">', //array($url, $label) 'after_url_item_label' => "</a>", 'before_nonurl_item_label' => '<span class="title">', //array($label) 'after_nonurl_item_label' => "</span>", 'always_show_before_after_children' => true, 'before_children' => '<ul class="dropdown">', 'after_children' => '</ul>', )); ?> </ul> ', 'CMS partial', 'site:menu', array(0)) /modules/cms/classes/cms_controller.php 1020
15 Cms_Controller->render_partial('site:menu') /modules/cms/classes/cms_controller.php(383) : eval()'d code 71
14 eval(()) /modules/cms/classes/cms_controller.php 383
13 Cms_Controller->evalWithException('?><div class="container_mainmenu"> <div class="pre_mainmenu "> <div class="top-bar" data-top-bar> <!-- international website --> <a href="https://www.everstone.com/" class="link_premenu internationalwebsite right"><span class="show-for-large-up">Visit International Site</span></a> <!-- Select language --> <div id="google_translate_element" class="link_premenu right"></div> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); } </script> <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <? if ($this->customer): ?> <!-- account --> <a href="<?= root_url('/account') ?>" class="show-for-large-up button border right account">My Account</a> <? else: ?> <!-- login --> <a href="<?= root_url('/account/login') ?>" class="show-for-large-up button border right login">Log in</a> <? endif ?> <!-- search --> <div class="search right"> <?= form_open(array('action' => root_url('/catalogue/search/'), 'method' => 'get')) ?> <input class="left" type="search" placeholder="Search&hellip;" name="query" value="<?= isset($query) ? $query : null ?>"/> <input class="left button border" type="submit" value=""> </form> </div> <!-- favourite access --> <? if ($this->customer): ?> <!-- favourite tab in account --> <?php $link = "/account/#favouritesTab"; ?> <? if(count($this->customer->favorite_products)): ?> <?php $fav = "show"; ?> <?php $nofav = "hide"; ?> <?php else: ?> <?php $fav = "hide"; ?> <?php $nofav = "show"; ?> <?php endif; ?> <? else: ?> <!-- favourite single page --> <?php $link = "/favourites/"; ?> <?php if (Everstone_Helper::has_offline_favourites()): ?> <?php $fav = "show"; ?> <?php $nofav = "hide"; ?> <?php else: ?> <?php $fav = "hide"; ?> <?php $nofav = "show"; ?> <?php endif; ?> <? endif ?> <a href="<?= root_url($link) ?>" class="right <?php echo $fav ?> fav favourite_link_header link_premenu"><i class="fa fa-star"></i><span class=""> My favourites</span></a> <a href="#" data-reveal-id="nofav_modal" class="<?php echo $nofav ?> right nofav favourite_link_header link_premenu"><i class="fa fa-star-o"></i><span class=""> My favourites</span></a> </div> </div> <div class="mainmenu" > <nav class="top-bar" data-topbar> <ul class="title-area"> <li class="name"> <h1> <a href="<?=root_url('/')?>"> <img src="<?=theme_resource_url('img/logo.png')?>" alt="Everstone"> </a> </h1> </li> <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone --> <li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li> </ul> <section class="top-bar-section"> <? $this->render_partial('site:menu') ?> </section> </nav> </div> </div> <!-- no favourites information modal --> <div id="nofav_modal" class="fixwidth_modal reveal-modal" data-reveal> <div class="fixwidth_modal fix_width_modal_wrapper"> <p class="opensans_ita">There is no favourites for the moment. You can add products to you favourites just by clicking on "Add to favourites" button on the product page.</p> <a class="close-reveal-modal">&#215;</a> </div> </div> <div id="popinlog"> <ul class="tabs" data-tab> <li class="tab-title active"><a href="#panel2-1">Log in</a></li> <li class="tab-title"><a href="#panel2-2">Visitor sign up</a></li> <li class="tab-title"><a href="#panel2-3">Dealers sign up</a></li> </ul> <div class="tabs-content"> <div class="content active" id="panel2-1"> <? $this->render_partial('account:login_form', array('redirect'=>root_url('/account/'), 'suffix' => '_header')) ?> </div> <div class="content" id="panel2-2"> <? $this->render_partial('account:register_form', array('redirect'=>root_url('/account/'), 'type' => 'visitor', 'suffix' => "_header_{type}")) ?> </div> <div class="content" id="panel2-3"> <? $this->render_partial('account:register_form', array('redirect'=>root_url('/account/'), 'type' => 'dealer', 'suffix' => "_header_{type}")) ?> </div> </div> </div> ', 'CMS partial', 'site:header', array(0)) /modules/cms/classes/cms_controller.php 1020
12 Cms_Controller->render_partial('site:header') /modules/cms/classes/cms_controller.php(383) : eval()'d code 12
11 eval(()) /modules/cms/classes/cms_controller.php 383
10 Cms_Controller->evalWithException('?><!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> <!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]--> <head> <? $this->render_partial('site:head') ?> <? $this->render_head() ?> </head> <body class="default <?= isset($page_class) ? 'page-'.$page_class : 'page-'.str_replace('/', '-', substr($this->page->url, 1)) ?>"> <? $this->render_partial('site:header') ?> <div class="container titlecontainer" id="title"> <? $this->render_block('title_block') ?> </div> <div class="container " id="content"> <div class="row shadowfull"> <div class="medium-12 columns"> <?php if ($this->page->title!="Catalogue"&&$this->page->title!="Home"): ?> <div class="page_breadcrumb"> <? $this->render_partial('site:breadcrumb') ?> </div> <?php endif ?> <div class="page_content"> <?=$this->render_page()?> </div> </div> </div> </div> <div id="footer"> <? $this->render_partial('site:footer') ?> </div> <div id="event-added" class="reveal-modal"> <h4 class="text-center">Event registration added to your cart</h4> <br> <div class="row"> <div class="medium-6 columns text-right"> <a href="/event/search/" class="button">Back to Events List</a> </div> <div class="medium-6 columns text-right"> <a href="/catalogue/cart/" class="button">Complete Event Registration</a> </div> </div> <a class="close-reveal-modal" href="javascript:;">&times;</a> </div> <? $this->render_partial('site:foot') ?> <? $this->render_block('footer') ?> </body> </html> ', 'CMS template', 'default') /modules/cms/classes/cms_controller.php 211
9 Cms_Controller->open(object(Cms_Page), array(1) [0 => 'durastone-botticino-cultural-brick-polished-matt-porcelain-mosaic']) /controllers/application.php 72
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/catalogue/product/durastone-botticino-cultural-brick-polished-matt-porcelain-mosaic') /phproad/system/phproad.php 31
2 include('/home2/accompli/public_html/acc3c/phproad/system/phproad.php') /boot.php 109
1 require_once('/home2/accompli/public_html/acc3c/boot.php') /index.php 3