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

Backend tabs not showing

Started by Nilsy, October 06, 2018, 23:08:51 PM

Previous topic - Next topic

Nilsy

Joomla! 3.8.12
VM 3.4.1
PHP 7.2.10
Apache
Linux

Having some trouble on the backend, creating/adding new products.
The pageview is without the tabs at the top guiding to the next section... (Product Information - Product Description - Product Status etc).

The "problem" this gives is that the selection area for Product Categories is empty, and the options for choosing a caonical category is the only option... which is wrong.

Any suggestions?

Nilsy

#1
The fault I am getting is:


JQMIGRATE: Migrate is installed,
version 1.4.1

jquery.fancybox.min.js:13
Uncaught TypeError: Cannot read property 'hash' of undefined
at HTMLDocument.<anonymous> (jquery.fancybox.min.js:13)
at i (jquery.min.js?0b49f22f296d7c69c4e6a522c96500a2:2)
at Object.fireWith [as resolveWith] (jquery.min.js?0b49f22f296d7c69c4e6a522c96500a2:2)
at Function.ready (jquery.min.js?0b49f22f296d7c69c4e6a522c96500a2:2)
at HTMLDocument.K (jquery.min.js?0b49f22f296d7c69c4e6a522c96500a2:2)




I have tried to go to the file: YOURSITE\administrator\components\com_virtuemart\virtuemart.php and there add the statement JHtml::_('script', 'jui/jquery-migrate.min.js', false, true, false, false);
as described in a previous post from 2015 (http://forum.virtuemart.net/index.php?topic=131821.msg455135#msg455135).
However this doesn't change anything here..?

Nilsy

Just updated to VM 3.4.2, and the problem is still there... any tips?

aLioneL

#3
I've got the same problem :-(
...any track for solution ???...

it's dramatic :-\ :'(
...when I open a product in admin
it has no more category ...only "Force canonical category" ...what is it ?? but I'can select one category
then when I update
==> error 1062 Duplicate entry '199-0' for key 'virtuemart_product_id'

Thanks by advance for your Help
LioneL

Engholm

Quote from: Nilsy on October 07, 2018, 11:20:55 AM
The fault I am getting is:


JQMIGRATE: Migrate is installed,
version 1.4.1

jquery.fancybox.min.js:13
Uncaught TypeError: Cannot read property 'hash' of undefined
at HTMLDocument.<anonymous> (jquery.fancybox.min.js:13)
at i (jquery.min.js?0b49f22f296d7c69c4e6a522c96500a2:2)
at Object.fireWith [as resolveWith] (jquery.min.js?0b49f22f296d7c69c4e6a522c96500a2:2)
at Function.ready (jquery.min.js?0b49f22f296d7c69c4e6a522c96500a2:2)
at HTMLDocument.K (jquery.min.js?0b49f22f296d7c69c4e6a522c96500a2:2)

I'm getting the same Error (below) when trying to edit a product or category. Seems to happen after Update to -> J!3.8.13.
VM is still on -> 3.2.14

jquery.fancybox.min.js:13 Uncaught TypeError: Cannot read property 'hash' of undefined
    at HTMLDocument.<anonymous> (jquery.fancybox.min.js:13)
    at i (jquery.min.js?0983310968bbf296a5b9448e8007f1c4:2)
    at Object.fireWith [as resolveWith] (jquery.min.js?0983310968bbf296a5b9448e8007f1c4:2)
    at Function.ready (jquery.min.js?0983310968bbf296a5b9448e8007f1c4:2)
    at HTMLDocument.K (jquery.min.js?0983310968bbf296a5b9448e8007f1c4:2)

GJC Web Design

the reason you have no category selector is that is is fetched by JS/Ajax

as u have a JS error then the JS for the cats is failing

so u need to find and fix the JS error

have u tried deselecting fancybox in the vm config -> templates in the short term?
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

Engholm

I've found the source of the problem:

A recent update of the extension "Simple Image Gallery Pro" to Version 3.5.0 causes the JS conflict. I've tried to play with the SIG Pro jQuery/PopUp -Settings without success. A downgrade to SIG Pro 3.1.0 helps to avoid the JS conflict.

Best regards
Björn

GJC Web Design

Is it using a newer/different version of fancybox?
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

Engholm

The changelog says, something has changed to the backend GUI of SIG Pro:
Quote
Chosen.js and Swipebox have been removed from the backend UI (2 less JS dependencies to load). Fancybox v3.5.0 now acts as the main modal in Simple Image Gallery Pro's backend UI.
https://www.joomlaworks.net/blog/item/277-simple-image-gallery-pro-v3-5-0-released

I've created a topic in the Joomlaworks Support Forum. Hopefully, they will address this issue.

GJC Web Design

I think it will be the version mismatch

VM uses Fancybox Version: 1.3.4 (11/11/2010)  - Fancybox 3.5 is a totally different beast
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

Engholm

Yes, that's what Fotis from JoomlaWorks responses. The VM Fancybox is more the outdated:
https://www.joomlaworks.net/forum/simple-image-gallery-pro/49775-sig-pro-3-5-0-js-conflict-with-virtuemart-backend

I'm not sure how so solve it, since both extension seem to have a FancyBox - Backend dependency.

GJC Web Design

and I assume the naming conventions are the same so leading to conflict/confusion
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

Nilsy

Quote from: Engholm on October 17, 2018, 09:32:31 AM
I've found the source of the problem:

A recent update of the extension "Simple Image Gallery Pro" to Version 3.5.0 causes the JS conflict. I've tried to play with the SIG Pro jQuery/PopUp -Settings without success. A downgrade to SIG Pro 3.1.0 helps to avoid the JS conflict.

Best regards
Björn


Thank you Engholm!
I downgraded my SIG Pro and the categories are noe showing again.

I have been a paying VM Member for years... all the way back to J1.0 times actually.
This problem had me stumped, so I asked for help (as that what membership gives), and the response was "strange"...
Last answer was:

QuoteMessage:
I have no clue. I am at on holidays actually. I am sure the reason is some non joomla plugin, which creates this problem. You could install a fresh vm somewhere, or just use our demo.virtuemart.net and compare the loaded scripts.

Made me laugh...

GJC Web Design

QuoteI have no clue. I am at on holidays actually. I am sure the reason is some non joomla plugin, which creates this problem. You could install a fresh vm somewhere, or just use our demo.virtuemart.net and compare the loaded scripts.

the answer is completely correct...

How can anyone except you know for certain what is installed on YOUR site?

"I am sure the reason is some non joomla plugin" - correct

"compare the loaded scripts" - correct

Conflicts are very difficult to find on any install without having complete access and control of that install..
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

Milbo

Quote from: GJC Web Design on October 22, 2018, 13:43:10 PM
"I am sure the reason is some non joomla plugin" - correct
Actually, I did an error (holiday mode). I meant of course "non joomla/vm native plugin".

I do not know the function of the SIG Pro, is it used in the product edit to select images? So the question is, why it is loaded?

and yes it is time to update our fancybox. Why we did not updated yet? Because fancybox 2 was as far as I know not GPL anylonger.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/