Ми надаємо кілька способів доставки:
Способи оплати:
* @param bool $lock
* @return int
*/
public function put(string $path, $contents, $lock = false)
{
return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);
}
/**
* Write the contents of a file, replacing it atomically if it already exists.
* @param string $path
//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);
});
* @param bool $lock
* @return int
*/
public function put(string $path, $contents, $lock = false)
{
return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);
}
/**
* Write the contents of a file, replacing it atomically if it already exists.
* @param string $path
$this->ensureCacheDirectoryExists($path = $this->path($key));
$result = $this->files->put(
$path,
$this->expiration($seconds) . serialize($value),
true
);
if ($result !== false && $result > 0) {
$this->ensureFileHasCorrectPermissions($path);
if ($seconds <= 0) {
return $this->forget($key);
}
$result = $this->store->put($this->itemKey($key), $value, $seconds);
if ($result) {
event(new CacheWritten($key, $value, $seconds));
}
// given number of seconds so it's available for all subsequent requests.
if (!is_null($value)) {
return $value;
}
$this->put($key, $value = $callback(), $ttl);
return $value;
}
/**
$all_pids = Cache::store(Store::FILE)->remember(md5($listing_sql) .'_'. __METHOD__, 1200, function () use ($listing_sql) {
return array_column(
tep_db_query($listing_sql)->fetch_all(MYSQLI_ASSOC),
'products_id'
);
});
$specPage = false;
switch ($urlWithoutLanguage) {
case 'new.html':
case 'specials.html':
AND xp.products_id = " . (int)$_GET['products_id'] . "
AND p.products_status = '1'
and xp.xsell_id = p.products_id
ORDER BY " . ($tpl_settings['orderby'] ?: 'p.products_quantity > 0 desc, xp.sort_order asc') . "
limit " . (defined('MAX_DISPLAY_ALSO_PURCHASED') ? MAX_DISPLAY_ALSO_PURCHASED : 10);
$module_products_query = tep_get_query_products_info($xsell_query);
$module_products = tep_db_query($module_products_query);
$salemakers_array = get_salemakers($module_products);
mysqli_data_seek($module_products, 0);
if ($module_products -> num_rows and $tpl_settings['disable_listing'] != true) {
<?php
if (is_file(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS) && getConstantValue('XSELL_PRODUCTS_BUYNOW_ENABLED') == 'true') {
include DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS;
}
case 'P_XSELL':
?>
<!--P_XSELL--><?php
if ($template->show('P_XSELL')) {
if (is_file(DIR_WS_EXT . 'xsell_products_buynow/' . FILENAME_XSELL_PRODUCTS)) {
require_once DIR_WS_EXT . 'xsell_products_buynow/' . FILENAME_XSELL_PRODUCTS;
}
}
break;
case 'P_BETTER_TOGETHER':
?>
<?php echo $breadcrumb->trail(' '); ?>
<!-- END BREADCRUMBS -->
<!-- CONTENT -->
<?php
if (file_exists(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/content/' . $content . '.tpl.php')) {
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/content/' . $content . '.tpl.php'); // content from current template (if exists)
} else {
require(DIR_WS_CONTENT . $content . '.tpl.php'); // content from default template
}
?>
<!-- END CONTENT -->
}
} else {
http_response_code(404);
$content = CONTENT_ERROR_404;
}
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
ErrorException
|
---|
ErrorException: file_put_contents(/mnt/test_sites/sites_new/newagriservices.com/storage/cache/17/9e/179ec1d062ef6234615c96cd14d9ed62348bfc82): failed to open stream: No such file or directory at /mnt/test_sites/sites_new/newagriservices.com/app/Classes/Filesystem/Filesystem.php:140 at Bootstrap\HandleExceptions->handleError() (/mnt/test_sites/sites_new/newagriservices.com/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}() at file_put_contents() (/mnt/test_sites/sites_new/newagriservices.com/app/Classes/Filesystem/Filesystem.php:140) at App\Classes\Filesystem\Filesystem->put() (/mnt/test_sites/sites_new/newagriservices.com/app/Classes/Cache/Store/FileStore.php:62) at App\Classes\Cache\Store\FileStore->put() (/mnt/test_sites/sites_new/newagriservices.com/app/Classes/Cache/Repository.php:169) at App\Classes\Cache\Repository->put() (/mnt/test_sites/sites_new/newagriservices.com/app/Classes/Cache/Repository.php:328) at App\Classes\Cache\Repository->remember() (/mnt/test_sites/sites_new/newagriservices.com/includes/functions/general.php:53) at tep_get_query_products_info() (/mnt/test_sites/sites_new/newagriservices.com/includes/modules/xsell_products_buynow.php:32) at include('/mnt/test_sites/sites_new/newagriservices.com/includes/modules/xsell_products_buynow.php') (/mnt/test_sites/sites_new/newagriservices.com/ext/xsell_products_buynow/xsell_products_buynow.php:4) at require_once('/mnt/test_sites/sites_new/newagriservices.com/ext/xsell_products_buynow/xsell_products_buynow.php') (/mnt/test_sites/sites_new/newagriservices.com/templates/default/content/product_info.tpl.php:404) at require('/mnt/test_sites/sites_new/newagriservices.com/templates/default/content/product_info.tpl.php') (/mnt/test_sites/sites_new/newagriservices.com/templates/default/main_page.tpl.php:109) at require('/mnt/test_sites/sites_new/newagriservices.com/templates/default/main_page.tpl.php') (/mnt/test_sites/sites_new/newagriservices.com/product_info.php:307) |