Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

mityai631

Newbie
  
  • Posts

    44
  • Joined

  • Last visited

Everything posted by mityai631

  1. Ребят, возникает такая ошибка /public_html/system/library/cache/file.php возникает ошибка на 68 строки, в связи с отсутствием необходимого файла (No such file or directory). Как исправить? <?php namespace Cache; class File { private $expire; public function __construct($expire = 3600) { $this->expire = $expire; $files = glob(DIR_CACHE . 'cache.*'); if ($files) { foreach ($files as $file) { $time = substr(strrchr($file, '.'), 1); if ($time < time()) { if (file_exists($file)) { unlink($file); } } } } } public function get($key) { $files = glob(DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.*'); if ($files) { $handle = fopen($files[0], 'r'); flock($handle, LOCK_SH); $data = fread($handle, filesize($files[0])); flock($handle, LOCK_UN); fclose($handle); return json_decode($data, true); } return false; } public function set($key, $value) { $this->delete($key); $file = DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.' . (time() + $this->expire); $handle = fopen($file, 'w'); flock($handle, LOCK_EX); fwrite($handle, json_encode($value)); fflush($handle); flock($handle, LOCK_UN); fclose($handle); } public function delete($key) { $files = glob(DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.*'); if ($files) { foreach ($files as $file) { if (file_exists($file)) { unlink($file); } } } } }
  2. Ребята, спасибо всем. Вроде разобрался и заработало все. Гугл схавал сайтмэп. Было добавлено $this->load->model('tool/image'); потом запрос UPDATE `oc_product` SET date_modified = now() в phpmyadmin чтобы на дату не ругался. И были найдены товары без фото и сбитыми фото.
  3. теперь вот ))) Fatal error: Call to a member function resize() on null in /home/c/cp19718/uribaka/public_html/system/storage/modification/catalog/controller/extension/feed/google_sitemap.php on line 20
  4. теперь гугл ругается на Обнаружена неверная дата. Исправьте дату или ее формат перед повторной передачей. 631 ошибка
  5. загрузился This XML file does not appear to have any style information associated with it. The document tree is shown below.
  6. после добавления при переходе по ссылке сайтмеп в браузере Fatal error: Uncaught exception 'Exception' with message 'Error: Could not load model tool/imaage!' in /home/c/cp19718/uribaka/public_html/system/storage/modification/system/engine/loader.php:59 Stack trace: #0 /home/c/cp19718/uribaka/public_html/system/storage/modification/catalog/controller/extension/feed/google_sitemap.php(9): Loader->model('tool/imaage') #1 [internal function]: ControllerExtensionFeedGoogleSitemap->index() #2 /home/c/cp19718/uribaka/public_html/system/storage/modification/system/engine/action.php(51): call_user_func_array(Array, Array) #3 /home/c/cp19718/uribaka/public_html/catalog/controller/startup/router.php(25): Action->execute(Object(Registry)) #4 [internal function]: ControllerStartupRouter->index() #5 /home/c/cp19718/uribaka/public_html/system/storage/modification/system/engine/action.php(51): call_user_func_array(Array, Array) #6 /home/c/cp19718/uribaka/public_html/system/engine/front.php(34): Action->execute(Object(Registry)) #7 /home/c/cp19718/uribaka/public_html/system/engine/front.php(29): in /home/c/cp19718/uribaka/public_html/system/storage/modification/system/engine/loader.php on line 59
  7. не вижу ее! <?php class ControllerExtensionFeedGoogleSitemap extends Controller { public function index() { if ($this->config->get('google_sitemap_status')) { $output = '<?xml version="1.0" encoding="UTF-8"?>'; $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; $this->load->model('catalog/product'); $products = $this->model_catalog_product->getProducts(); foreach ($products as $product) { if ($product['image']) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/product', 'product_id=' . $product['product_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<lastmod>' . date('Y-m-d\TH:i:sP', strtotime($product['date_modified'])) . '</lastmod>'; $output .= '<priority>1.0</priority>'; $output .= '<image:image>'; $output .= '<image:loc>' . $this->model_tool_image->resize($product['image'], $this->config->get($this->config->get('config_theme') . '_image_popup_width'), $this->config->get($this->config->get('config_theme') . '_image_popup_height')) . '</image:loc>'; $output .= '<image:caption>' . $product['name'] . '</image:caption>'; $output .= '<image:title>' . $product['name'] . '</image:title>'; $output .= '</image:image>'; $output .= '</url>'; } } $this->load->model('catalog/category'); $output .= $this->getCategories(0); $this->load->model('catalog/manufacturer'); $manufacturers = $this->model_catalog_manufacturer->getManufacturers(); foreach ($manufacturers as $manufacturer) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $manufacturer['manufacturer_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>0.7</priority>'; $output .= '</url>'; $products = $this->model_catalog_product->getProducts(array('filter_manufacturer_id' => $manufacturer['manufacturer_id'])); foreach ($products as $product) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/product', 'manufacturer_id=' . $manufacturer['manufacturer_id'] . '&product_id=' . $product['product_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>1.0</priority>'; $output .= '</url>'; } } $this->load->model('catalog/news'); $output .= '<url>'; $output .= '<loc>' . $this->url->link('information/news') . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>0.3</priority>'; $output .= '</url>'; $all_news = $this->model_catalog_news->getAllNews(); foreach ($all_news as $news) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('information/news/info', 'news_id=' . $news['news_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>0.6</priority>'; $output .= '</url>'; } $this->load->model('catalog/information'); $informations = $this->model_catalog_information->getInformations(); foreach ($informations as $information) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('information/information', 'information_id=' . $information['information_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>0.5</priority>'; $output .= '</url>'; } $output .= '</urlset>'; $this->response->addHeader('Content-Type: application/xml'); $this->response->setOutput($output); } } protected function getCategories($parent_id, $current_path = '') { $output = ''; $results = $this->model_catalog_category->getCategories($parent_id); foreach ($results as $result) { if (!$current_path) { $new_path = $result['category_id']; } else { $new_path = $current_path . '_' . $result['category_id']; } $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/category', 'path=' . $new_path) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>0.7</priority>'; $output .= '</url>'; $products = $this->model_catalog_product->getProducts(array('filter_category_id' => $result['category_id'])); foreach ($products as $product) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/product', 'path=' . $new_path . '&product_id=' . $product['product_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>1.0</priority>'; $output .= '</url>'; } $output .= $this->getCategories($result['category_id'], $new_path); } return $output; } }
  8. $output .= '<image:loc>' . $this->model_tool_image->resize($product['image'], $this->config->get($this->config->get('config_theme') . '_image_popup_width'), $this->config->get($this->config->get('config_theme') . '_image_popup_height')) . '</image:loc>';
  9. это. файл eror log в директории сайта. xn--80aabh9acdxbv1a6h.xn--p1ai [Sat Feb 09 01:12:29 2019] [error] [pid 29368] sapi_apache2.c(325): [client 213.87.161.182:55138] PHP Fatal error: Call to a member function resize() on null in /home/c/cp19718/uribaka/public_html/system/storage/modification/catalog/controller/extension/feed/google_sitemap.php on line 20 xn--80aabh9acdxbv1a6h.xn--p1ai [Sat Feb 09 01:12:33 2019] [error] [pid 29459] sapi_apache2.c(325): [client 213.87.161.182:55282] PHP Fatal error: Call to a member function resize() on null in /home/c/cp19718/uribaka/public_html/system/storage/modification/catalog/controller/extension/feed/google_sitemap.php on line 20
  10. Друзья! После перехода на https пропал sitemap google. модуль пробовал отключать и включать, файл не появляется. При попытке перейти по адресу файла из админке ошибка 500. Ocstore 2.3 # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))"> Require all denied ## For apache 2.2 and older, replace "Require all denied" with these two lines : # Order deny,allow # Deny from all </FilesMatch> # SEO URL Settings RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.xn--80aabh9acdxbv1a6h\.xn--p1ai$ [NC] RewriteRule ^(.*)$ http://xn--80aabh9acdxbv1a6h.xn--p1ai/$1 [R=301,L] # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase / RewriteCond %{HTTP:X-HTTPS} !1 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L] RewriteRule ^system/download/(.*) index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] ### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it. ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that. # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it: # php_flag register_globals off # 2. If your cart has magic quotes enabled, This may work to disable it: # php_flag magic_quotes_gpc Off # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try # php_value upload_max_filesize 999M # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value post_max_size 999M # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_execution_time 200 # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_input_time 200 # 7. disable open_basedir limitations # php_admin_value open_basedir none ### Display PHP errors ### Uncomment the commands by removing the # sign in front of it. # php_flag display_startup_errors on php_flag display_errors off # php_flag html_errors on # php_flag track_errors on # php_value error_reporting "E_ALL"
  11. Модуль ставил давно. Но пользоваться начал недавно. Поставил все дополнения для карты и seo. В админке Модуль называется новости, а в крате сайта text-news. Url только по адресу сайт/news, новости отображаются с id7 и т.д. Все очищено и обновлено.
  12. Здравствуйте, Алексей из форума понял что есть обновления шаблона, где почитать про обновление?
  13. ип. соответственно состою. другие способы получения ден.средств с интернет магазина не законны.
  14. Дали.у меня их торговый эквайринг стоит, возможно поэтому после первого звонка на связь вышел их менеджер. Дали бесплатно готовый модуль под 2.3.
  15. Как кто даст? Сбербанк! Что бы этим модулем пользваться , надо иметь счет и договор с сб также как и при оплате через шлюз! Я четкий вопрос задал, получил непонятный ответ!
  16. чем этот модуль отличается от оплаты через шлюз сбербанка?
  17. Нужен модуль или скрипт для синхронизации программы Тирика Магазин и интернет магазина на OcStore с размерными рядами.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.