Author Topic: Fatal error: Call to undefined function JRegistry() VM categories view.html.php  (Read 3026 times)

welrachid

  • Jr. Member
  • **
  • Posts: 260
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
Hi
Fatal error: Call to undefined function jregistry() in ..../htdocs/components/com_virtuemart/views/category/view.html.php on line 86

85      if(empty($menu->params)){
86         $menu->params = JRegistry();
87      }

J! 3.7
VM. VirtueMart 3.0.18.6 Blue Corvus 9406
PHP 5.6.24

Any ideas?
For now i've just commented it out.(line86)
Best regards,
Wel

welrachid

  • Jr. Member
  • **
  • Posts: 260
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
Running the command: grep -rnw . -e "JRegistry()"
Gives me the following result.

./components/com_virtuemart/views/category/view.html.php:86:                    // $menu->params = JRegistry();
./administrator/components/com_akeeba/controllers/cpanel.php:126:               $params    = new JRegistry();
./administrator/components/com_akeeba/helpers/postinstall.php:193:      $params = new JRegistry();
./administrator/components/com_akeeba/script.akeeba.php:744:            $jsnPAManifest = new JRegistry();

(i've commented out that jregistry part.)
Best regards,
Wel

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27430
  • Always on vacation
    • Jenkin Hill Internet
Does this happen with Vm3.2/3.2.1?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8892
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
and one assumes not on J3.6.. other would have been found yonks ago
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

welrachid

  • Jr. Member
  • **
  • Posts: 260
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
Does this happen with Vm3.2/3.2.1?
Hi. i havent updated the website to that version of VM. so i cant tell at this moment. But will update the thread once i do the update. I just thought maybe other people had same issue. Only change from yesterday to now is the J!3.7 update from 3.6.5
Best regards,
Wel

welrachid

  • Jr. Member
  • **
  • Posts: 260
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
and one assumes not on J3.6.. other would have been found yonks ago
Im on J! 3.7. was on 3.6.5 before. Not sure what you mean by "would have been found yonks ago"
Best regards,
Wel

Ghost

  • Jr. Member
  • **
  • Posts: 422
Change
Code: [Select]
$menu->params = JRegistry();to
Code: [Select]
$menu->params = new JRegistry();But this is already fixed in VM 3.2.1, suggest to update.

welrachid

  • Jr. Member
  • **
  • Posts: 260
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
Hi guys.
im planning on updatering today/tonight

But im not sure why i have this many items to update?
Usually i just update the VM and AIO?
Should i do the same here or do i need to update each element first?
Best regards,
Wel

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2177
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Hello

Test on a backup first !

Update Virtuemart first and then Viortuemart AIO. This should take care of most of the update notices.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27430
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

welrachid

  • Jr. Member
  • **
  • Posts: 260
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
Thanks..great..
It solved the Jregistry problem. (updating to newest VM version 3.2.1
Now my category layout is no longer working..


And my error logs show this:
PHP Notice:  Undefined index: priceWithoutTaxTt in ..../administrator/components/com_virtuemart/helpers/currencydisplay.php on line 323
PHP Notice:  Undefined index: discountAmountTt in ..../administrator/components/com_virtuemart/helpers/currencydisplay.php on line 323
PHP Notice:  Undefined index: taxAmountTt in ..../administrator/components/com_virtuemart/helpers/currencydisplay.php on line 323
PHP Notice:  Undefined index: salesPriceTt in ..../administrator/components/com_virtuemart/helpers/currencydisplay.php on line 323
Best regards,
Wel

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3846
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
You need to update your template or modify the overrides. Some Key for prices was changed by the team (i don't know why)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9843
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
You need to update your template or modify the overrides. Some Key for prices was changed by the team (i don't know why)

That is just wrong. There are just new prices, example priceWithoutTaxTt, with Tt for TOTAL. So we just added new total prices. When he uses shoppergroup depended price display, then he just needs to store the shoppergroup, I think.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3846
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Max, i simply know new key exist, perhaps you have simply forgot to init this ?

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9843
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Some Key for prices was changed by the team (i don't know why)

Max, i simply know new key exist, perhaps you have simply forgot to init this ?

This are completly different things. One time you accuse "the team" that they changed a key.

The other time, you notice that we maybe forgot to initialise a new key.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/