Author Topic: toolbar_images.css takes FOREVER to load  (Read 627 times)

welrachid

  • Jr. Member
  • **
  • Posts: 260
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
toolbar_images.css takes FOREVER to load
« on: October 09, 2018, 12:38:57 pm »
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

  • Jr. Member
  • **
  • Posts: 68
Re: toolbar_images.css takes FOREVER to load
« Reply #1 on: October 10, 2018, 00:05:45 am »
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

  • Jr. Member
  • **
  • Posts: 260
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
Re: toolbar_images.css takes FOREVER to load
« Reply #2 on: October 10, 2018, 10:36:32 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8592
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: toolbar_images.css takes FOREVER to load
« Reply #3 on: October 10, 2018, 11:10:23 am »
/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 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

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9743
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: toolbar_images.css takes FOREVER to load
« Reply #4 on: October 21, 2018, 21:10:31 pm »
It got accidently removed by the installer script.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Digi-web

  • Beginner
  • *
  • Posts: 35
    • Digi Web
Re: toolbar_images.css takes FOREVER to load
« Reply #5 on: November 02, 2018, 08:30:41 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8592
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: toolbar_images.css takes FOREVER to load
« Reply #6 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
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
Re: toolbar_images.css takes FOREVER to load
« Reply #7 on: November 03, 2018, 08:53:45 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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8592
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: toolbar_images.css takes FOREVER to load
« Reply #8 on: November 03, 2018, 10:03:19 am »
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 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
Re: toolbar_images.css takes FOREVER to load
« Reply #9 on: November 04, 2018, 17:05:35 pm »
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