News:

Looking for documentation? Take a look on our wiki

Main Menu

Changing category image broke my front and back end.

Started by Underwater-Merch, June 02, 2016, 11:35:32 AM

Previous topic - Next topic

Underwater-Merch

I changed the category thumbnail and it broke my front end category view and i can't edit that category or make new ones any more.

When changing the thumbnail i used the replace image upload action.

I am using virtuemart 3.0.12 and joomla 3.4.8 , all my exstensions are up to date.

I'm gonna guess this is a bug, i have a older backup that still works but i would like to fix this so I don't break it again.

The back end looks like this https://snag.gy/3CXBEn.jpg

And the category view looks like this https://snag.gy/9quTpW.jpg

When changing the thumbnail i used the replace image upload action

Ghost


jenkinhill

Quote from: Underwater-Merch on June 02, 2016, 11:35:32 AM

I am using virtuemart 3.0.12 and joomla 3.4.8 , all my exstensions are up to date.


But your Joomla and VirtueMart are not up to date. Current is Joomla 3.5.1  and  VirtueMart 3.0.16 - and VM3.0.17 is available for experienced users.

I have never heard of anyone breaking a site simply by replacing an image, but as Ghost intimates, turn on debugging to see what is going on.  Could be a JavaScript problem.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

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

Underwater-Merch

Quote from: jenkinhill on June 02, 2016, 12:05:21 PM
Quote from: Underwater-Merch on June 02, 2016, 11:35:32 AM

I am using virtuemart 3.0.12 and joomla 3.4.8 , all my exstensions are up to date.


But your Joomla and VirtueMart are not up to date. Current is Joomla 3.5.1  and  VirtueMart 3.0.16 - and VM3.0.17 is available for experienced users.

I have never heard of anyone breaking a site simply by replacing an image, but as Ghost intimates, turn on debugging to see what is going on.  Could be a JavaScript problem.

After strugeling to get some custom plugins working I'm not updating even if 3.0.12 is SkyNet incarnet :)

No logs are created, no errors reported.

Guess I'm going back to the backup, time to create 50 products from scratch, again.

GJC Web Design

logs are always written some where!

did u try the fatal error detect plugin?
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

Underwater-Merch

Finaly i got the error log
Allowed memory size of 134217728 bytes exhausted (tried to allocate 58982384 bytes) in file: /home/underwat/public_html/administrator/components/com_virtuemart/helpers/img2thumb.php line: 111

I'm guessing that i created a memory leak by uploadin a corupted image or something...
Any idea how to fix it?

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Underwater-Merch

Quote from: jenkinhill on July 01, 2016, 15:21:49 PM
What is the file size of the image you uploaded?
5.4 MB, I removed it from the server after i noticed the problem but my front and back end still are broken.

GJC Web Design

there is no purpose in having display images of that size in ANY web site
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

rs3511

What about using PHPmyAdmin to change the virtuemart_media_id for the category in question to a media_ID that you know is okay?  Then, I think, you might be able to get back into frontend and backend. 

Thanks for mentioning the error detecting plugin GJC, I have found it very useful.