• 30-12-2014, 14:43:13
    #1
    merhaba,

    opencart sitem cok yavas aciliyor 20.000'e yakin urun var ve cok yavas.

    bu tur hatalar var :

    - PHP Notice: Undefined variable: cache in httpdocs/vqmod/vqcache/vq2-catalog_controller_common_header.php on line 137
    - PHP Notice: Undefined variable: cache in httpdocs/vqmod/vqcache/vq2-catalog_controller_common_header.php on line 184
    - PHP Notice: Undefined variable: body_class in httpdocs/vqmod/vqcache/vq2-catalog_view_theme_OPC040084_template_common_heade r.tpl on line 100
    - PHP Notice: Undefined variable: content_header_block in httpdocs/vqmod/vqcache/vq2-catalog_view_theme_OPC040084_template_common_heade r.tpl on line 109
    - PHP Notice: Undefined index: children_level2 in httpdocs/vqmod/vqcache/vq2-catalog_view_theme_OPC040084_template_common_heade r.tpl on line 163
    - PHP Notice: Undefined index: children_level2 in httpdocs/vqmod/vqcache/vq2-catalog_view_theme_OPC040084_template_common_heade r.tpl on line 169
    - PHP Notice: Undefined variable: cancel in httpdocs/admin/view/template/tool/xml_import.tpl on line 65

    ustelik https://developers.google.com/speed/...eed/insights/? ile

    mobil %42 dekstop %52

    duzelir mi sorun?
  • 30-12-2014, 17:11:54
    #2
    Sorun elbette düzelir, eklentinizde bazi tanimlanmamis degiskenler kullanilmis, onlari düzeltirseniz, sorunda düzelecektir.
  • 30-12-2014, 18:17:08
    #3
    bu kodlamayi duzeltikten sonra daha hizli gitme sansi var mi?

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 19:17:08 -->-> Daha önceki mesaj 19:10:58 --

    mesela ilk sorun icin 137 satir bos:

    135 // Menu
    136 $this->load->model('catalog/category');
    137
    138 $this->load->model('catalog/product');
    139
    140 $this->data['categories'] = array();
    141
    142 $categories = $this->model_catalog_category->getCategories(0);