fn() => tep_db_query(
'select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION
)->fetch_all(MYSQLI_ASSOC)
);
foreach ($configurations as $configuration) {
$check_modules_folders = explode(':', $configuration['cfgValue']);
if (
count(
$check_modules_folders
) > 1 && ($check_modules_folders[1] == 'true' or $check_modules_folders[1] == 'false')
//ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
error_reporting(E_ALL);
set_error_handler(function ($level, $message, $file = '', $line = 0) {
$this->handleError($level, $message, $file, $line);
});
set_exception_handler(function ($e) {
$this->handleException($e);
});
fn() => tep_db_query(
'select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION
)->fetch_all(MYSQLI_ASSOC)
);
foreach ($configurations as $configuration) {
$check_modules_folders = explode(':', $configuration['cfgValue']);
if (
count(
$check_modules_folders
) > 1 && ($check_modules_folders[1] == 'true' or $check_modules_folders[1] == 'false')
define("SECONDS_PER_WEEK", 604800);
header("Content-Security-Policy: default-src data: * 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'none';");
ini_set('memory_limit', '2048M');
$saveDbPrepareInput = [];
$microTime = microtime(true);
require_once __DIR__ . "/application_main.php";
//redirect to a new domain name
if(getConstantValue('DOMEN_URL','') != '' && getConstantValue('DOMEN_URL') != $_SERVER['HTTP_HOST']){
header('Location: http://' . getConstantValue('DOMEN_URL'));
exit();
}
use JsonLd\Container;
use JsonLd\Product;
use JsonLd\ProductReview;
require('includes/application_top.php');
includeLanguages(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);
// define current template constants:
$productAvailable = false;
$productReviewsArr = [];
ErrorException
|
---|
ErrorException: Invalid argument supplied for foreach() at /mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php:34 at Bootstrap\HandleExceptions->handleError() (/mnt/test_sites/sites_new/newagriservices.com/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}() (/mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php:34) at require_once('/mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php') (/mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php:9) at require('/mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php') (/mnt/test_sites/sites_new/newagriservices.com/product_info.php:8) |