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

toolbar_images.css takes FOREVER to load

Started by welrachid, October 09, 2018, 12:38:57 PM

Previous topic - Next topic

welrachid

Hi guys

Im not sure if something wrong with my setup or what the reason is behind this very weird thing..

my installation is calling the file:
/administrator/components/com_virtuemart/assets/css/toolbar_images.css?vmver=fe582afe

in the backend. This file takes FOREVER to load.
The server runs some kind of fcgi php setup with php 7.1


[Tue Oct 09 12:14:52.807906 2018] [fastcgi:error] [pid 20861] [client xxxxxxxxxxxx:64683] FastCGI: comm with server "/etc/cgi-bin/customer_129381_php-settings" aborted: idle timeout (240 sec)
[Tue Oct 09 12:14:52.808019 2018] [fastcgi:error] [pid 20861] [client xxxxxxxxxxxx:64683] FastCGI: incomplete headers (0 bytes) received from server "/etc/cgi-bin/customer_129381_php-settings"

J! 3.8.12
Vm 3.4.2
I also had the problem with 3.4

This is a totally new installation (clean joomla without sample) + virtuemart
i've installed a frontend template from joomshaper (helix3) - but this should be of any concern in this matter

Im not sure what to do but seems weird that a CSS file is taking so long to load?!

So i went into the directory to see if i could find the file and view it... well.. turns out there was NO FILE..

so apparantly it was doing some kind of looping which explains why the fastCGI server was called..

anyway.. hope someone knows how to fix it?

UPDATE:
Well..i made a workaround by not allowing VM to handle 404 errors

Enable VirtueMart 404 error handling - NOT CHECKED

Best regards,
Wel

design609

com_virtuemart.3.4.2.9966_package_or_extract

Yes the file is not there.
Also not to be found in the installation pack maybe toolbar_images.css is really the menu_images.css.

Anyway I just downloaded menu_images.css renamed the file and uploaded it again via FTP to the position
/administrator/components/com_virtuemart/assets/css/toolbar_images.css?vmver=3d25c33f
Alternative upload an empty toolbar_images.css file to get rid of the 404

Now my backend loads as normal and I not see any errors.

welrachid

Correct. The forever loading was caused by a forever loop where VM would handle the 404 and also joomla/template would handle it
This ment that it made the whole server loop out of control, with the vhost using all its ressources.
Best regards,
Wel

GJC Web Design

/administrator/components/com_virtuemart/assets/css/toolbar_images.css was incl. in older VM ~ 3.0.x so upgrades will not see this error
missing in 3.4 but still called

Max notified
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

It got accidently removed by the installer script.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Digi-web

Hi All, glad i found this thread because this forever loading in admin in a development environment got me crazy...

After re-installing the latest stable i also got these 404 errors:

404 /administrator/components/com_virtuemart/assets/css/toolbar_images.css?vmver=303fbd80

here is the code:
\administrator\components\com_virtuemart_allinone\script.vmallinone.php
Line 103:          $file = 'components/com_virtuemart/assets/css/toolbar_images.css';

administrator\components\com_virtuemart\assets\css\admin.styles.css

here is the code:
Line 31: .vm_thumb_image{background:url(../images/admin_ui/toolbar_background.png)
404 /administrator/components/com_virtuemart/assets/images/admin_ui/toolbar_background.png

Kind regards.
Custom Joomla - Virtuemart Development and Templates
Website: http://www.digi-web.gr

GJC Web Design

Still don't understand why a simple case of a missing file causes such delays?
(it doesn't on my servers .. is just treated as a 404 and moves on)
Is fixed I think in VM3.4.3 and will be definitely in 3.4.4
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

welrachid

Quote from: GJC Web Design on November 02, 2018, 09:51:40 AM
Still don't understand why a simple case of a missing file causes such delays?
(it doesn't on my servers .. is just treated as a 404 and moves on)
Is fixed I think in VM3.4.3 and will be definitely in 3.4.4
The problem is that VM has an internal 404 handling, which causes problems with Joomla's own 404 handling. This creates a redirect cycle that never ends. When it doesnt end the webserver waits for php execution timeout before it can serve the next client.
Best regards,
Wel

GJC Web Design

but that can't be right .. the only place if (VmConfig::get('handle_404',1))  is used is in the FE cat and detail views and the FE root  virtuemart.php...
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

welrachid

not sure if my setup has anything to do with this.
i had a category view as my index.
when reaching for a 404 - a index.php-based file is read, since all joomla files goes through this file.
Im not sure if helix 3 template had anything to do with it, but this caused it to spin out of control.
turning 404 handling off in VM solved it for me.
Best regards,
Wel

vaskern

Quote from: design609 on October 10, 2018, 00:05:45 AM
Anyway I just downloaded menu_images.css renamed the file and uploaded it again via FTP to the position
/administrator/components/com_virtuemart/assets/css/toolbar_images.css?vmver=3d25c33f
Thanks