key(): Argument #1 ($array) must [VM4.0.7] [J4] [PHP 8.x]

Started by hazael, October 21, 2022, 15:26:45 PM

Previous topic - Next topic

hazael

Problem with editing child products. I get an error after editing a product and trying to save it.

Quotekey(): Argument #1 ($array) must be of type array, null given

The problem occurs with PHP 8.x

Milbo

Do you use the children list in the tab? or of the customfield Multivariant? j3/j4?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hazael

Hello Milbo
I just launched my new website with the latest Virtuemart 4.0.7 and joomla 4 as the production version.
https://piekielko.com
I acted a bit like kamikaze ;-)

The website seems to be working fine, but I catch minor bugs while working with it.

The problem with the new Virtuemart is that baby products don't display prices from the parent's product. I chose to add these prices manually to each derivative product.
The error I wrote about occurs only with PHP 8 and j4 - when I try to edit baby products.




hazael

 home page of Virtuemart has some Javascript conflict in the admin panel. Virtuemart's menu is falling apart

hazael

Stockable Custom Fields has stopped working in the latest version of Virtuemart. The problem is Javascript errors in Virtuemart
https://breakdesigns.net/extensions/joomla/stockable-custom-fields

Previous versions of VM 4.0.7 did not have this problem and everything worked fine.

Milbo

The prices works for me also in j4. I also have no javascript errors?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hazael

It works for you because you are using a new template. Switch to the old default Virtuemart template

Launch the homepage: /administrator/index.php?option=com_virtuemart

And view to the browser console - there are errors.
Generally, due to Javascript errors, plugin: stockable custom fields does not work

PS.
I noticed that I cannot edit chil products only those that I ported over from the old Virtuemart version running on Joomla 3.
I wonder what they are missing?

hazael

I get errors like this when I try to add custom fields. All I need to do is click with the mouse on the Virtuemart website (anywhere) and this error appears.
Was there any JQuery modification recently?


Uncaught TypeError: (t.currentItem || t.element).find(...).andSelf is not a function at Object.prepareOffsets (jquery-ui.min.js?vmver=1.9.2:6:42104)

Milbo

I tried with the old and new admin template and I use in the joomla 4 just the normal joomla template. In j3 I use horme3 or old vmbeez
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Jörgen

I think he is talking about the back end template.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

hazael

Quote from: Jörgen on October 22, 2022, 23:16:25 PM
I think he is talking about the back end template.
Yes! Of course I'm talking about the backend template. I am showing screenshots from the back office all the time. Some custom field plugins do not work due to javascript errors in VM.
horme3 and vmbeez have nothing to do with it  :)

Milbo

Quote from: Milbo on October 22, 2022, 20:07:22 PM
I tried with the old and new admin template

I used the last days mainly the old template.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hazael

I guess I'll go back to the older version with the bad currency conversion. Not even the Virtuemart menu module works in this version...

Milbo

No one worked on the virtuemart menu module. I think there are some other problems in your installation. Currently you are reporting a lot bugs, which no one else seems to have. The file com_virtuemart.4.0.7.10722_package_or_extract.zip is more than 80 times downloaded already. I doubt that so many people do not notice the problems or do not report it.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hazael

Quote from: Milbo on October 24, 2022, 21:14:43 PM
I doubt that so many people do not notice the problems or do not report it.
Because not everyone wants to report bugs. There are many who have reported bugs but were mostly ignored or read the annoying answer: "works for me".
Perhaps I will also stop reporting any bug just to make you live in the belief that Virtuemart is perfect because nobody speaks, nobody report...

Maybe I see mistakes only in my country?

Please log in and tell what you see - This is a clean install - there's nothing there.
https://forum.virtuemart.net/index.php?topic=149041.0