News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Why does the variable value at localhost differ from the one at real hosting?

Started by borro, March 03, 2016, 14:16:06 PM

Previous topic - Next topic

borro

Hello.

I'm changing the /templates/my_template/html/com_virtuemart/category/default.php file of the category view.
I've found that at my local copy of site the var_dump($this->category->parents) shows
Quote
array (size=2)
  0 =>
    object(stdClass)[473]
      public 'category_name' => string 'Оловянный мир' (length=25)
      public 'virtuemart_category_id' => string '185' (length=3)
  1 =>
    object(stdClass)[478]
      public 'category_name' => string 'Формы SPAMля литья' (length=28)
      public 'virtuemart_category_id' => string '186' (length=3)
and here is the output for the working site for the same opened category:
Quotearray(1) {
  • => object(stdClass)#543 (2) { ["category_name"]=> string(28) "Формы SPAMля литья" ["virtuemart_category_id"]=> string(3) "186" } }
That is at my working site $this->category->parents variable does not include all ancestors for the opened category. How can it be?
Localhost is working under PHP 5.5, the site in the net is under 5.4. Can it be the reason?

VM 3.0.9
Wish you happiness!