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

And this bug in the new template? no one reported this either - does it mean that everything is fine?

Milbo

you just have a lot bugs, which I cannot reproduce. and look, I do this here more than 10 years. Check the other threads. If more than one person has the bug, usually people join, but not in your case.

jQuery for example, works in my case with the new template an j4. jQuery is always loaded, so if it is not loaded, the problem is very likely on your end. Or the payment plugin problem, no one else reported 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

How many people here have spoken recently?
Recently, I have the impression that I am writing only to myself. From 10/19/2022, (7 days) 100 downloads aren't that much. I myself have downloaded this version at least 10 times...

Here is an evident Bug that I reported. Hardly anyone cares, because not everyone uses these discount rules
https://forum.virtuemart.net/index.php?topic=149031.0

"Partners are our key" - it is a fact or a hoax? What do I have to become for Virtuemart to start functioning realistically? - bronze, silver, platinum? :)

hazael

Milbo, probably out of laziness, constantly writes that everything works for him.

I solved the problem with this Virtuemart template for Joomla 4.
Virtuemart uses the verry old version of jquery-ui.min.js v1.9.2 - from 2015 year!

If you have the same problem, download a newer version - the most compatible with Joomla 4 from:
https://jqueryui.com/resources/download/jquery-ui-1.13.2.zip

Replace this file with the newer version and the problem with Javascript functionality in the template will be resolved:
/httpdocs/components/com_virtuemart/assets/jquery-ui.min.js

Milbo

Yes is resolved in j4 maybe, but not in j3. Vm is anyway loading the jquery of joomla, so talk with them. You posted it yourself

Quote from: hazael on October 26, 2022, 21:39:51 PM
Which Jquery is missing in your opinion?

In J4  is loaded:

media/vendor/jquery/js/jquery.min.js?3.6.0
media/legacy/js/jquery-noconflict.min.js
media/system/js/fields/validate.min.js
media/vendor/chosen/js/chosen.jquery.min.js?1.8.7

In VM is loaded from backend:
administrator/components/com_virtuemart/assets/js/jquery.coookie.js
administrator/components/com_virtuemart/assets/js/vm2admin.js
administrator/templates/vmadmin/html/com_virtuemart/assets/js/vmuikit_vm2admin.js

So the jquery is from Joomla, not by vm. The vm jquery was loaded in j2.5 and can be removed.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

Quote from: hazael on October 26, 2022, 22:00:15 PM
How many people here have spoken recently?
Recently, I have the impression that I am writing only to myself. From 10/19/2022, (7 days) 100 downloads aren't that much. I myself have downloaded this version at least 10 times...

Here is an evident Bug that I reported. Hardly anyone cares, because not everyone uses these discount rules
https://forum.virtuemart.net/index.php?topic=149031.0

"Partners are our key" - it is a fact or a hoax? What do I have to become for Virtuemart to start functioning realistically? - bronze, silver, platinum? :)

That is on some part true, but there are a lot contacts on other channels, not only on this forum. They get the download directly by messenger. Additionally to that, check the other downloads. It is completly normal that people download a beta / RC to fix their current problem and then they wait for the final release. So the com_virtuemart.4.0.7.10701.zip got downloaded 274 times. the last versions are downloaded around 125 times. So this are at least 15 public testers. My personal guess is 80 people. There are some who download it 10 times as you, but mot people dont do that.

This new version https://dev.virtuemart.net/attachments/1338/com_virtuemart.4.0.7.10730_package_or_extract.zip should be the "final" 4.0.8. The focus is jomla 3 on PHP8, not joomla4. If this version works for j3/PHP8.0 it will be released. But there are a lot fixes for j4 and PHP8.1
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

Thanks Milbo. Hopefully once Virtuemart gets patched and works well with Joomla 4, it will become popular again as it used to be.


Sorry, forgive me ... I found another BUG  ;D

In Joomla 4 - Sorting  product list in backend SQL Error:

QuoteUnknown column '#_virtuemart_product_manufacturers.virtuemart_manufacturer_id' in 'where clause'
The error will appear if you enter the phrase you are looking for in the form, select the category and select the manufacturer


Milbo

This error has nothing todo with j4. It just says that the #_virtuemart_product_manufacturers is not installed correctly. For whatever reason.
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

The tables are correct - the files are original - I haven't modified anything. Overall, everything works for me

It looks a bit like this problem:
https://dba.stackexchange.com/questions/278859/sql-error1054-unknown-column-in-where-clause-when-trying-to-update-column

hazael

This is an obvious mistake - it appears on every domain. On joomla 3 and on joomla 4
Test it

Milbo

You checked the wrong table. It is not the manufacturer table, it is the product_manufacturer table. I just tested it on j3 and j4 with selected category and manufacturer, no problem, works.
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

Why does everything always work for you? it is unfair  :-\

the table is the same as in the installation.

Darko F.

hazael I will also migrate from J3 to J4
But for do so I made completely fresh installation on test domain of J4 and fresh installation of Virtuemart. I try to upgrade existing one j3 to j4 but I find to many bugs not only with VirtueMart but with other components too.

So I can confirm Milbo send me some versions of VirtueMart trough Skype messenger and most of stuff working on fresh installation.

Is crazy loot of work to migrate all content from J3 (more than 9000 product and all other native joomla articles menues is a pain) to fresh installation of J4. ROCSVI component helps a bit, but I find safer and more stable that way than J3 upgrade.

I didn't publish J4 still is not there jet.
There in no problem if you fall. Problem is if you don't get up

Milbo

I am not sure if it works already for j4, but this migrator works the way you work, Darko. And helps a lot with it https://extensions.virtuemart.net/back-office/import-export/virtuemart-migrator-detail
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

My site https://piekielko.com already officially works with Joomla 4 and Virtuemart 4. This is my first website made in Uikit - In my opinion, better than Bootsrap :)
I just need to work on performance - currently the site is not stored in the cache. The problem is, of course, the basket of products that I need to improve so that it reloads in AJAX. But I'll fix it in my spare time. The current site does a great job with PHP 8.0. I haven't tested it with PHP.8.1 yet