Follow Us

ERROR » Database connection error! Please check your connection settings! [Only one usage of each socket address (protocol/network address/port) is normally permitted]

     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Internal\package-database\Connection.php
        

155.     public function __construct(array $config = [])
156.     {
157.         $this->defaultConfig Config::default('ZN\Database\DatabaseDefaultConfiguration')
158.                                      ::get('Database''database');
159.         $this->config        array_merge($this->defaultConfig$config);
160.         $this->db            $this->runDriver();
161.         $this->prefix        $this->config['prefix'];
162.         Properties::$prefix  $this->prefix;
163. 
164. 
        
$this->db->connect($this->config); 165.     } 166.  167.     /** 168.      * Magic Debug Info 169.      */ 170.     public function __debugInfo() 171.     { 172.         return ['return' => $this->stringQuery ?: 'This is a general object, please call the sub method!']; 173.     } 174. 
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Internal\package-database\DB.php
        

1338.      */
1339.     public function query(string $query, array $secure = [])
1340.     {
1341.         $secure     $this->secure ?: $secure$this->secure     = [];    
1342.         $caching    $this->caching;           $this->caching    = [];
1343.         $tableName  $this->tableName;         $this->tableName  '';
1344.         $jsonDecode $this->jsonDecode;        $this->jsonDecode = [];
1345.         $paging     $this->paging ?? 'row';   $this->paging     NULL;
1346. 
1347. 
        return (new 
self($this->config))->setQueryByDriver($query$secure1348.         [ 1349.             'caching'    => $caching1350.             'tableName'  => $tableName, 1351.             'jsonDecode' => $jsonDecode, 1352.             'paging'     => $paging 1353.         ]); 1354.     } 1355.  1356.     /** 1357.      * Exec Basic Query
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Internal\package-database\DB.php
        

792.         }
793. 
794.         if( $this->transaction === true )
795.         {
796.             $this->transactionQueries[] = $finalQuery;
797. 
798.             return $this;
799.         }
800. 
801. 
        return 
$this->$returnQuery($finalQuery$this->secure); 802.     } 803.  804.     /** 805.      * Duplicate Check 806.      *  807.      * @param string ...$args 808.      *  809.      * @return DB 810.      */ 811.     public function duplicateCheck(...$args) : DB
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Internal\package-database\CallableTalkingQueries.php
        

205.             {
206.                 $result 'value';
207. 
208.                 $this->select($select);
209. 
210.                 $whereClause true;
211.             }    
212.         }
213. 
214. 
        
$return $this->get($method); 215.  216.         # Return ->get() 217.         if( ! isset($result) ) 218.         { 219.             return $return; 220.         } 221.          222.         # Return ->row(0) || result('object') 223.         return $return->$result($whereClause); 224.     }
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Internal\package-database\CallableTalkingQueries.php
        

84.              return $this->callWhereHavingTalkingQuery($split$parameters);
85.          }
86.          # Insert - Update - Delete
87.          elseif( in_array($split[1] ?? NULL, ['Delete''Update''Insert']) )
88.          {
89.              return $this->callCrudTalkingQuery($split$parameters);
90.          }
91.          else
92.          {
93. 
             return 
$this->callResultMethodsTalkingQuery($originMethodName$split$parameters); 94.          } 95.      } 96.   97.      /** 98.       * Protected call join talkin query 99.       */ 100.     protected function callJoinTalkingQuery($split$parameters) 101.     { 102.         $type    $split[0] ?? 'left'; 103.         $table1  $split[2] ?? '';
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Projects\Frontend\Models\ProductModel.php
        

276.         return true;
277.     }
278. 
279.     public function getButtons($productId 0$status false)
280.     {
281.         $db DB::orderBy('sira''ASC')->where('product_id'$productId);
282.         if($status){
283.             $db $db->where('status'1);
284.         }
285. 
        return 
$db->product_buttons()->result(); 286.     } 287.  288.     private function productButtonDefaults($type 'link') 289.     { 290.         $type in_array($type, ['link''video''file'], true) ? $type 'link'; 291.  292.         $defaults = [ 293.             'link' => [ 294.                 'icon' => 'fa-solid fa-arrow-right', 295.                 'button_style' => 'primary',
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Internal\package-zerocore\StaticAccess.php
        

41.      * protected use class name
42.      43.      * @param string $method
44.      * @param array  $parameters
45.      46.      * @return mixed
47.      */
48.     protected static function useClassName($method$parameters)
49.     {
50. 
        return 
Singleton::class(INTERNAL_ACCESS . static::getClassName())->$method(...$parameters); 51.     } 52. }
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Internal\package-zerocore\StaticAccess.php
        

15.      Magic call static
16.      17.      * @param string $method
18.      * @param array  $parameters
19.      20.      * @return mixed
21.      */
22.     public static function __callStatic($method$parameters)
23.     {
24. 
        return 
self::useClassName($method$parameters); 25.     } 26.  27.     /** 28.      * Magic call 29.      *  30.      * @param string $method 31.      * @param array  $parameters 32.      *  33.      * @return mixed 34.      */
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Projects\Frontend\Views\urunler\category.php
        

209. 
210.         $productId = (int) $product->productID;
211.         $productTitle akkusProductField($product'name');
212.         $productText akkusProductField($product'kisa');
213.         $productUrl akkusProductUrlFront($product);
214.         $productCode = isset($product->urun_kodu) ? trim((string) $product->urun_kodu) : '';
215.         $categoryTitle akkusProductPrimaryCategoryTitle($product$sectionTitle);
216.         $gallery akkusProductGalleryFront($product);
217.         $features ProductModel::getFeatures($productIdtrue);
218. 
        
$buttons ProductModel::getButtons($productIdtrue); 219.         $descriptionHtml akkusProductField($product'icerik'$productText); 220.         $technicalHtml akkusProductField($product'teknik_tablo'''); 221.         $descActive trim(strip_tags((string) $descriptionHtml)) !== '' || trim((string) $descriptionHtml) !== ''; 222.         $techActive trim(strip_tags((string) $technicalHtml)) !== '' || trim((string) $technicalHtml) !== ''; 223.         $modalId 'akkusProductDetailModal'.$productId; 224.         $descId 'akkus-product-desc-'.$productId; 225.         $techId 'akkus-product-tech-'.$productId; 226.         $lightboxId 'akkus-product-gallery-'.$productId; 227.         ]} 228.         <div class="modal fade akkus-product-modal"
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Projects\Frontend\Views\urunler\category.php
        

564. {[
565. if($activeProduct){
566.     akkusRegisterProductModal($activeProductakkusProductPrimaryCategoryTitle($activeProduct$pageTitle));
567. }
568. 
569. $activeProductModalId = ($activeProduct && isset($activeProduct->productID)) ? 'akkusProductDetailModal'.(int) $activeProduct->productID '';
570. 
571. foreach((array) $GLOBALS['akkusProductModalProducts'] as $modalItem){
572.     $isActiveProduct $activeProduct && isset($activeProduct->productID$modalItem['product']->productID) && intval($activeProduct->productID) === intval($modalItem['product']->productID);
573. 
    
akkusRenderProductModal($modalItem['product'], $modalItem['sectionTitle'], $currentListUrl$isActiveProduct); 574. } 575. ]}
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Projects\Frontend\Views\Sections\body.php
        

184.   div>
185.   
186. 
187. 
188.     {[ Import::view('Sections/header') ]}
189. 
190. <main>
191. 
192.     {[ if (isset($page)) {
193. 
        
Import::view($page); 194.     } ]} 195. main> 196.  197.     {[ Import::view('Sections/footer') ]}
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Internal\package-zerocore\Inclusion\Masterpage.php
        

192. 
193.         echo $header;
194. 
195.         $randomPageVariable $head['bodyPage'] ?? $masterPageSet['bodyPage'];
196. 
197.         if( ! empty($randomPageVariable) )
198.         {
199.             $randomDataVariable['view'] = $bodyContent;
200. 
201. 
            
View::use($randomPageVariable$randomDataVariablefalse$viewDirectory); 202.         } 203.         else 204.         { 205.             echo $bodyContent// @codeCoverageIgnore 206.         } 207.  208.         $randomFooterVariable  EOL.''.EOL; 209.         $randomFooterVariable .= ''; 210.  211.         echo $randomFooterVariable;
     C:\inetpub\vhosts\akkuskalip.com\httpdocs\Internal\package-database\MySQLi\DB.php
        

145.         // @codeCoverageIgnoreEnd
146.         else
147.         {
148.             $this->connect = new MySQLi($host$user$pass$db$port);
149.         }
150.         restore_error_handler();
151.         
152.         if( $this->connect->connect_errno )
153.         {
154. 
            throw new 
ConnectionErrorException(NULL$this->connect->connect_error); // @codeCoverageIgnore 155.         } 156.  157.         mysqli_report(MYSQLI_REPORT_OFF); 158.  159.         if( ! empty($this->config['charset']  ) ) $this->query("SET NAMES '".$this->config['charset']."'");   160.         if( ! empty($this->config['charset']  ) ) $this->query('SET CHARACTER SET '.$this->config['charset']);   161.         if( ! empty($this->config['collation']) ) $this->query('SET COLLATION_CONNECTION = "'.$this->config['collation'].'"'); 162.     } 163.  164.     /**