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

no homepage after VM update

Started by rage76, November 24, 2020, 15:17:41 PM

Previous topic - Next topic

rage76

Hi, I updated VM from 3.8.2 to 3.8.6

and my home page is gone. I just see "Using $this when not in object context"

I am on Joomla 3.9.22

Please guide suitably !!

pinochico

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

rage76

#2
Thanks. Is this a quickfix problem or a big one?

could this be creating an issue?

$tpath = $this->baseurl.'/templates/'.$this->template;

What needs to be changed?

AH

It depends where you are using it and what $this-> is

But generally that construct will fail before it is related to an update issue
Regards
A

Joomla 3.10.11
php 8.0

GJC Web Design

as always ---  joomla debug on so u create a trace so u know where the problem is.....
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

rage76

#5
Thank you for replying AH & GJC

with error reporting & debug on, only the following line is displayed:

Fatal error: Using $this when not in object context in C:\xampp\htdocs\tech\administrator\components\com_virtuemart\models\category.php on line 161

If I unpublish virtuemart categories module, this error disappears as well and there is a blank page.


AH

Did you update the AIO

Is the category module core VM or a third party plugin
Regards
A

Joomla 3.10.11
php 8.0

GJC Web Design

QuoteFatal error: Using $this when not in object context in C:\xampp\htdocs\tech\administrator\components\com_virtuemart\models\category.php on line 161

hmmm ... no $this is used in that function?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pinochico

this function (model) is only used.
You must find where is calling - modul VM categories view? - override, 3d party...
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

AH

$selectedOrdering = $this->_selectedOrdering;
Regards
A

Joomla 3.10.11
php 8.0

rage76

#10
Thank you for responding guys. After some tinkering, I found my template is using an override to VM categories module. If I unpublish it, apart from the categories menu, everything starts working normally.

I think the module is not 3rd party, but could be an older version. php file from the module is attached. Can someone guide me to rectify this issue or suggest me a suitable 3rd party module that will display the menu properly?

Any help will be highly appreciated. regards.

pinochico

Or you can use Google search or Freelancers :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

rage76

ok, I replaced the VM categories menu and things are looking up.

I have a query, before the update, on clicking on main category, all products of all sub categories were shown. Now only last sub-category products are shown.

What has changed and what do I need to do to show all products?

Best regards

rage76