VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: stensbo on March 05, 2015, 15:17:35 PM

Title: Blank VM front page - VM product module not working after upgr to VM 3.0.6.2
Post by: stensbo on March 05, 2015, 15:17:35 PM
Using Joomla 2.5.27, Multi language (only DK in VM), Beez20 copy template, Virtuemart 3.0.6.2, PHP Version 5.6.6, vm overrides.

Joomla site is live - danrider.dk - vm shop is only for registered shopper.

Hi,

Just upgraded our test site. ( VM and AIO - no errors). When I login I get a blank page -  should have been VM FrontPage (normal with category (Phoca Dtree), cart, login, featured products). I can catch the top menu with url - Your account, your orders a.s.o and they Work fine.

(Everything worked in VM 3.0.6 except from featured products - modul did not respond if I disabled a product as featured - product still showed up and had a wird price.)

What have changed in VM3.0.6.2 that can cauce a blank VM frontpage.



Title: Re: Blank VM front page after upgrade to VM 3.0.6.2
Post by: Milbo on March 05, 2015, 21:48:06 PM
Quote from: stensbo on March 05, 2015, 15:17:35 PM
When I login I get a blank page
Enable in joomla config and vm config the developer error reporting mode and the vmdebug, that should help to see the error.

Quote from: stensbo on March 05, 2015, 15:17:35 PM
(Everything worked in VM 3.0.6 except from featured products - modul did not respond if I disabled a product as featured - product still showed up and had a wird price.)
Because it is using its own cache configuration. So you just saw the cached module.

What have changed in VM3.0.6.2 that can cauce a blank VM frontpage.




[/quote]
Title: Re: Blank VM front page after upgrade to VM 3.0.6.2
Post by: stensbo on March 05, 2015, 22:50:24 PM
Hi,

Thanks -  attached error.

Disabled Category dTree and got frontpage back  - have to solve this with another category modul  :(  ?
Title: Re: Blank VM front page after upgrade to VM 3.0.6.2
Post by: Milbo on March 06, 2015, 11:59:11 AM
Quote
Strict Standards: Only variables should be assigned by reference in /var/www/danrider.dk/test/modules/mod_phoca_vm_catdtree/mod_phoca_vm_catdtree.php on line 99

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method VirtueMartModelCategory::getChildCategoryList() should not be called statically in /var/www/danrider.dk/test/libraries/joomla/cache/controller/callback.php on line 159

I am sure Mr Phoca can solve this fast. The reason is that it is using a call which is deprecated since more than  a year, but I see my little error breaking the BC, will be fixed soon. Thank you for reporting
Title: Re: Blank VM front page after upgrade to VM 3.0.6.2
Post by: Milbo on March 06, 2015, 12:03:15 PM
change in the category model /adminstrator/components/com_virtuemart/models/category.php at line 128 this

Quote
if(trim($this->_selectedOrdering) == 'c.ordering'){
   $this->_selectedOrdering = 'c.ordering, category_name';
}

to
Quote
if(trim($selectedOrdering) == 'c.ordering'){
   $selectedOrdering = 'c.ordering, category_name';
}
Title: Re: Blank VM front page after upgrade to VM 3.0.6.2
Post by: stensbo on March 06, 2015, 14:43:35 PM
Thanks Milbo,

Changed the code and asked Mr. Phoca if he can solve this.

Category dTree is back and appears to Work - still problems with featured product
Title: Re: Blank VM front page after upgrade to VM 3.0.6.2
Post by: Milbo on March 06, 2015, 15:29:38 PM
delete the cache
Title: Re: Blank VM front page after upgrade to VM 3.0.6.2
Post by: stensbo on March 06, 2015, 16:03:43 PM
I allready did that few times before last post..

Just tried Again and now featured products also appears to Work - thank you.
Title: Re: Blank VM front page after upgrade to VM 3.0.6.2
Post by: stensbo on March 09, 2015, 16:57:39 PM
Hi,

No - featured products does not Work anyway - please see attached.

Mr. Phoca said - no fatal error, so this should be OK
Title: Re: Blank VM front page after upgrade to VM 3.0.6.2
Post by: Milbo on March 09, 2015, 17:04:33 PM
Non of the errors is in vm
Title: Re: Blank VM front page after upgrade to VM 3.0.6.2
Post by: wajcha001 on March 11, 2015, 11:20:52 AM
try to turn off caching in your featured product module settings
Title: Re: Blank VM front page - VM product modul not working after upgr to VM 3.0.6.2
Post by: stensbo on March 11, 2015, 13:32:33 PM
Thanks - have tried that  - no difference.

Settings in module are: Layout: default, Show: featured product, Shown product: 3, Product in a row: 3, Show: Div basered, Price : yes, Add to cart: no, Header Text: xxxxx, FooterText:   , Use category filter: no, Category:  xxxxx, MOD_VIRTUEMART_PRODUCT_CACHING_LABEL  : yes, MOD_VIRTUEMART_PRODUCT_CACHING_TIME_LABEL: 300

With this settings module does not Work. In firebug the X link - that shows up instead of a product - says that" it failed to load the given URL".

If I change the Use category filter: to yes  and set a category  the module is working and displays 3 products properly.
Title: Re: Blank VM front page - VM product module not working after upgr to VM 3.0.6.2
Post by: Milbo on March 11, 2015, 16:00:36 PM
Disable that MOD_VIRTUEMART_PRODUCT_CACHING_LABEL
or just delete the cache manually
Title: Re: Blank VM front page - VM product module not working after upgr to VM 3.0.6.2
Post by: stensbo on March 11, 2015, 16:53:46 PM
I have tried to disable cache in this module - even when cache is disabled and cache is deleted manually the module does not Work.
It only display products properly if I enable category filter as mentioned in last post - I want to show featured products from different categories.
Title: Re: Blank VM front page - VM product module not working after upgr to VM 3.0.6.2
Post by: stensbo on March 26, 2015, 16:53:21 PM
Joomla 2.5.28 - VM 3.0.6.4

Reverted test site back to VM 2.5.16 and did a new upgrade to 3.0.6.4 - still not succeeded to get VM featured products module to Work. Only 1 or 2 out of 3 products are displayed correctly - with normal settings for 3 Featured products in a row. This is with Beez20 template on.

I figured out a small workaround since module displays 3 products properly if I change the Use category filter:  to yes.

Created a unpublished category : Featured -  assigned featured products to that one to - set Use category filter: yes  - set Category : Featured and wupti 3 products in a row displayed properly.

I think module are supposed to  Work with normal settings so if you have any ideas what might be wrong it would be nice  :)
Title: Re: Blank VM front page - VM product module not working after upgr to VM 3.0.6.2
Post by: Milbo on March 26, 2015, 22:58:05 PM
It works for anyone else. The normal vm product modul. I dont know about your phoca one.
Title: Re: Blank VM front page - VM product module not working after upgr to VM 3.0.6.2
Post by: stensbo on March 27, 2015, 15:26:18 PM
Thanks Milbo - you are right. Went through it all Again and found some old VM sample data in DB table prefix_virtuemart_products and deleted those and now Virtuemart product module is working  :)
Title: Re: Blank VM front page - VM product module not working after upgr to VM 3.0.6.2
Post by: Milbo on March 30, 2015, 12:31:03 PM
Nice, great :-)