Whoops! There was an error.
Error
Call to a member function fetch_all() on bool Error thrown with message "Call to a member function fetch_all() on bool" Stacktrace: #3 Error in /home/agtgenetics/public_html/model/config.model.php:34 #2 Database:all_query in /home/agtgenetics/public_html/class/category.class.php:9 #1 Category:show_category in /home/agtgenetics/public_html/view/product-list.php:9 #0 include in /home/agtgenetics/public_html/index.php:83
Stack frames (4)
3
Error
/model/config.model.php34
2
Database all_query
/class/category.class.php9
1
Category show_category
/view/product-list.php9
0
include
/index.php83
/home/agtgenetics/public_html/model/config.model.php
  }
    
    public function is_server_up(){
        $sql  = "select status from server_up where id = '1'";
        $response = $this->single_query($sql);
        return $response['status'];
    }
    public function sanitize($sql){
      $this->sql = $sql;
      return $this->mysqli->real_escape_string($sql);
    }
  
        public function single_query($sql){
        $this->sql = $sql;
        return $this->mysqli->query($sql)->fetch_array(MYSQLI_ASSOC);    
        }
        
        public function all_query($sql){
            $this->sql = $sql;
        return $this->mysqli->query($sql)->fetch_all(MYSQLI_ASSOC);
        }
        
        public function run_query($sql){
            $this->sql = $sql;
            $this->mysqli->query($sql);
        }
        
        public function insert($data,$table){
            $column_name = array();
            $column_value = array();
            foreach($data as $column => $value){
                        $column_name[] = $column;
                        $column_value[] = $value;
            }
            $column_name = implode(",",$column_name);
            $column_value = implode("','",$column_value);
            $insert = "insert into $table($column_name) values ('{$column_value}')";
            return $insert;
        }
        
/home/agtgenetics/public_html/class/category.class.php
<?php
    require_once __DIR__.'./../model/config.model.php';
    
    
    class Category extends Database{
            
        public function show_category(){
            $sql = "select * from shop_category";
            $data =  $this->all_query($sql);
            return $data;
        }
        
        
        public function get_category_name_n($id){
            $sql = "select * from shop_category where id = '{$id}'";
            $data = $this->single_query($sql);
            return $data['en_name'];
            
        }
        public function get_my_sub_category($id){
            $id = $this->sanitize($id);
            $sql = "select * from sub_category where parent = '{$id}'";
            return $this->all_query($sql);
        }
        
        public function get_image($name){
            $sql = "select image from shop_category where en_name = '{$name}'";
            $response = $this->single_query($sql);
            return $response['image'];
        }
        
        public function get_category_product(){
            //$sql = "select * from shop_category order by en_name asc";
            //$response = $this->all_query($sql);
            return array();
        }
        
        public function get_category_name($category){
            $sql = "select en_name from shop_category where id = '{$category}'";
            $response = $this->single_query($sql);
/home/agtgenetics/public_html/view/product-list.php
<?php include("_header.php");?>
<?php
    require_once __DIR__.'./../class/category.class.php';
    require_once __DIR__.'./../class/products.class.php';
    
    $category_ct = new Category();
    $product_ct = new Products();
    
    $all_category= $category_ct->show_category();
    $newarrival = $product_ct->all_new_arrival();
?>
<style>
    .slider {
    width: 100%;
    margin: 0 auto;
}
 
.activefilter{
    color: blue;
}
</style>
    <!-- Category -->
    <section class="category_area section_padding_100" style="padding-top: 138px;padding-bottom:100px;">
        <div class="container">
          <div class="row justify-content-center">
    <div class="col-12 col-md-3 col-lg-3 row max-content">
        <div class="filter-box row">
                <div class="col-12" style="display:block;">
                    <p style="color:black;">
                    <span class="filter-text">FILTER PRODUCT</span>
                    <span class="clear-all pointer clear-all-filter">Clear All</span></p>
        
 
                </div>
                <div class="col-12" style="border-top:1px solid #e0e0e0;padding-top:9px;">
    
    <?php foreach($all_category as $category_data): ?>
 
                    <?php if($category_data['id'] == $parameter): ?>
                    <span class="product-category-select pointer triggerlist activefilter"><?=$category_data['en_name']; ?></span>
/home/agtgenetics/public_html/index.php
    overflow-x: hidden;
    -webkit-overflow-scrolling: none;
    /* Other browsers */
    overscroll-behavior: none;
     max-width: 100vw;
     position: relative;
}
::-webkit-scrollbar {
    display: none; // Safari and Chrome
}
</style>
<?php endif; ?>
<?php } ?>
<?php
 
 
if ($filename == "profile-preview") {
    $full_path = "./profile-preview/theme/index.html";  
    include($full_path);
}else if(include($full_path)){
  
}else{
    header("HTTP/1.1 200 OK");
    include($error);
}
 
}else{ }
 
 
?>
 

Environment & details:

Key Value
/product-list/
empty
empty
Key Value
handl_landing_page https://valenziana.com/producto/modulo-bajo-con-estantes/
_auth_token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2aXNpdG9ySWQiOiItTzJubzJtcS1ydDFNRE1aN2pfWiIsImF1dGhlbnRpY2F0ZWQiOm51bGwsImF1dGhQcm92aWRlciI6bnVsbCwiZXhwIjoxNzI0NjY5NDI4LCJpYXQiOjE3MjIwNzc0Mjh9.jbwSAQJ_slXTtCwHE6WXT37UtDGqg763OYGlsTQD4fE
HandLtestDomainNameServer HandLtestDomainValueServer
handl_url_base https://valenziana.com/producto/modulo-bajo-con-estantes/
handl_url https://valenziana.com/producto/modulo-bajo-con-estantes/
_visitor_id -O2no2mq-rt1MDMZ7j_Z
handl_ip 18.118.140.155
user_agent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Key Value
language en
Key Value
TZ Asia/Kuala_Lumpur
REDIRECT_REDIRECT_UNIQUE_ID ZqTRMENRK35OLKqFAn9s0QAAAAM
REDIRECT_REDIRECT_SCRIPT_URL /product-list/
REDIRECT_REDIRECT_SCRIPT_URI https://www.agtgenetics.com/product-list/
REDIRECT_REDIRECT_HTTPS on
REDIRECT_REDIRECT_SSL_TLS_SNI www.agtgenetics.com
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZqTRMENRK35OLKqFAn9s0QAAAAM
REDIRECT_SCRIPT_URL /product-list/
REDIRECT_SCRIPT_URI https://www.agtgenetics.com/product-list/
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI www.agtgenetics.com
REDIRECT_HANDLER application/x-httpd-ea-php80
REDIRECT_STATUS 200
UNIQUE_ID ZqTRMENRK35OLKqFAn9s0QAAAAM
SCRIPT_URL /product-list/
SCRIPT_URI https://www.agtgenetics.com/product-list/
HTTPS on
SSL_TLS_SNI www.agtgenetics.com
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_COOKIE handl_landing_page=https%3A%2F%2Fvalenziana.com%2Fproducto%2Fmodulo-bajo-con-estantes%2F; _auth_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2aXNpdG9ySWQiOiItTzJubzJtcS1ydDFNRE1aN2pfWiIsImF1dGhlbnRpY2F0ZWQiOm51bGwsImF1dGhQcm92aWRlciI6bnVsbCwiZXhwIjoxNzI0NjY5NDI4LCJpYXQiOjE3MjIwNzc0Mjh9.jbwSAQJ_slXTtCwHE6WXT37UtDGqg763OYGlsTQD4fE; HandLtestDomainNameServer=HandLtestDomainValueServer; handl_url_base=https%3A%2F%2Fvalenziana.com%2Fproducto%2Fmodulo-bajo-con-estantes%2F; handl_url=https%3A%2F%2Fvalenziana.com%2Fproducto%2Fmodulo-bajo-con-estantes%2F; _visitor_id=-O2no2mq-rt1MDMZ7j_Z; handl_ip=18.118.140.155; user_agent=Mozilla%2F5.0%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%3B%20compatible%3B%20ClaudeBot%2F1.0%3B%20%2Bclaudebot%40anthropic.com%29
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_HOST www.agtgenetics.com
HTTP_X_HTTPS 1
PATH /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.agtgenetics.com
SERVER_ADDR 172.31.3.56
SERVER_PORT 443
REMOTE_ADDR 18.118.140.155
DOCUMENT_ROOT /home/agtgenetics/public_html
REQUEST_SCHEME https
CONTEXT_PREFIX /cgi-sys
CONTEXT_DOCUMENT_ROOT /usr/local/cpanel/cgi-sys/
SERVER_ADMIN webmaster@agtgenetics.com
SCRIPT_FILENAME /home/agtgenetics/public_html/index.php
REMOTE_PORT 20831
REDIRECT_URL /index.php
REDIRECT_QUERY_STRING /product-list/
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING /product-list/
REQUEST_URI /product-list/
SCRIPT_NAME /index.php
ORIG_SCRIPT_FILENAME /usr/local/cpanel/cgi-sys/ea-php80
ORIG_PATH_INFO /index.php
ORIG_PATH_TRANSLATED /home/agtgenetics/public_html/index.php
ORIG_SCRIPT_NAME /cgi-sys/ea-php80
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1722077488.7454
REQUEST_TIME 1722077488
argv Array ( [0] => /product-list/ )
argc 1
BASE_URL minimaomao.com/staging/agt
APP_NAME GARDENGENESIS
ENVIRONMENT stagging
HOST localhost
DB_USERNAME agtgenetics_database
DB_PASSWORD Minimo2023
DB_NAME agtgenetics_database
stripe_mode live
live_pk_key pk_live_51LRnF0Bv8asdasdasdNh3oEs0eSNTjgYIgm8vDrmJz6Ly9KpVQ4HKCcKsC18QetcmjqMidOxftTiPqa4RItNojRob8oKv855000PZRsw8AO
live_sk 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
test_pk_key pk_test_51LRnF0Bv8Nh3oEs01udNFQ14NXND920eVkzOaD1DMqSDeNJMavPdgqZfIcyly0zZRus3nikLxwEYzohknXd4fsXc00TECS32LR
test_sk sk_test_51LRnF0Bv8Nh3oEs01nd9anqPmX8GUH7yFUfWKy4JaDGFsJXYeTiO9VAqiSQLSzqDN6WQHDcp9MwbHLnstSKFEV7G00Exh8zdDc
REFUND_ENDPOINT https://gardengenesis.app/stripe/api/refund.php
CREATE_RECEIPT https://gardengenesis.app/stripe/api/stripe/create-receipt
SITE_KEY 51714f9c-c7ce-4560-af21-6795de63f7d6
SECRET 0xD9171Af338cEa44f8834B2E6E661c492eddEB20D
Key Value
BASE_URL minimaomao.com/staging/agt
APP_NAME GARDENGENESIS
ENVIRONMENT stagging
HOST localhost
DB_USERNAME agtgenetics_database
DB_PASSWORD Minimo2023
DB_NAME agtgenetics_database
stripe_mode live
live_pk_key pk_live_51LRnF0Bv8asdasdasdNh3oEs0eSNTjgYIgm8vDrmJz6Ly9KpVQ4HKCcKsC18QetcmjqMidOxftTiPqa4RItNojRob8oKv855000PZRsw8AO
live_sk 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
test_pk_key pk_test_51LRnF0Bv8Nh3oEs01udNFQ14NXND920eVkzOaD1DMqSDeNJMavPdgqZfIcyly0zZRus3nikLxwEYzohknXd4fsXc00TECS32LR
test_sk sk_test_51LRnF0Bv8Nh3oEs01nd9anqPmX8GUH7yFUfWKy4JaDGFsJXYeTiO9VAqiSQLSzqDN6WQHDcp9MwbHLnstSKFEV7G00Exh8zdDc
REFUND_ENDPOINT https://gardengenesis.app/stripe/api/refund.php
CREATE_RECEIPT https://gardengenesis.app/stripe/api/stripe/create-receipt
SITE_KEY 51714f9c-c7ce-4560-af21-6795de63f7d6
SECRET 0xD9171Af338cEa44f8834B2E6E661c492eddEB20D
0. Whoops\Handler\PrettyPageHandler