VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Underwater-Merch on June 02, 2016, 11:35:32 AM

Title: Changing category image broke my front and back end.
Post by: Underwater-Merch on June 02, 2016, 11:35:32 AM
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
Title: Re: Changing category image broke my front and back end.
Post by: Ghost on June 02, 2016, 11:41:53 AM
Enable error reporting.
Title: Re: Changing category image broke my front and back end.
Post by: 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.
Title: Re: Changing category image broke my front and back end.
Post by: GJC Web Design on June 02, 2016, 14:21:19 PM
this is an excellent tool if logs are hard to find

https://www.rupostel.com/utilities-for-joomla/extensions/fatal-catcher-plugin
Title: Re: Changing category image broke my front and back end.
Post by: Underwater-Merch on June 03, 2016, 10:18:11 AM
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.
Title: Re: Changing category image broke my front and back end.
Post by: GJC Web Design on June 03, 2016, 14:03:26 PM
logs are always written some where!

did u try the fatal error detect plugin?
Title: Re: Changing category image broke my front and back end.
Post by: Underwater-Merch on July 01, 2016, 14:34:42 PM
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?
Title: Re: Changing category image broke my front and back end.
Post by: jenkinhill on July 01, 2016, 15:21:49 PM
What is the file size of the image you uploaded?
Title: Re: Changing category image broke my front and back end.
Post by: Underwater-Merch on July 01, 2016, 15:36:28 PM
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.
Title: Re: Changing category image broke my front and back end.
Post by: GJC Web Design on July 01, 2016, 17:07:19 PM
there is no purpose in having display images of that size in ANY web site
Title: Re: Changing category image broke my front and back end.
Post by: rs3511 on July 06, 2016, 22:06:34 PM
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.