AbanteCart Community

Shopping Cart Operations => Support => Topic started by: smggunsstore on May 09, 2017, 06:05:38 PM

Title: Files failing to upload to "resource library" today but not yesterday
Post by: smggunsstore on May 09, 2017, 06:05:38 PM
Yesterday, I uploaded a .rar file to the downloads section of my resource library and subsequently pushed it out to all customers who had purchased this a while back.  It was successful yesterday.  Today, I've made some revisions to the file in question, and so was trying to  upload the newer version of the file and was getting an error "2017-05-09 21:41:18 - warning: AbanteCart core v.1.2.7 Illegal string offset 'start' in <b>/home/smggun5/public_html/storefront/model/catalog/manufacturer.php</b> on line <b>63</b>"   I re-zipped and renamed the file, same error.  then I tried to upload a photo to the resource library and it went in no problem, same with a PDF file.  So I once again tried the archive .rar file and now am getting this error: "2017-05-09 21:31:44 - error: AbanteCart core v.1.2.7 Out of memory (allocated 813170688) (tried to allocate 63360 bytes) in <b>/home/smggun5/public_html/core/lib/image.php</b> on line <b>108</b>"

Ideas anyone?   

As for my level of expertise, most middle-schoolers are more proficient with website building than me...
Title: Re: Files failing to upload to "resource library" today but not yesterday
Post by: abolabo on May 10, 2017, 10:01:46 AM
please check this fix https://github.com/abantecart/abantecart-src/commit/973c0d7bef5ec5b9b2ce1cb6a477e24278653c45 and let us know

p.s. and this topic http://forum.abantecart.com/index.php/topic,5542.msg23963.html
Title: Re: Files failing to upload to "resource library" today but not yesterday
Post by: smggunsstore on May 10, 2017, 10:59:46 AM
Sorry to be so ignorant, but what am I suppose to do with the code you sent me?  I've not ever modified code of the pages before because I don't understand what I'm looking at.
Title: Re: Files failing to upload to "resource library" today but not yesterday
Post by: smggunsstore on May 12, 2017, 01:20:30 AM
Ok, so I got someone to help me change the files, but it made no difference.  Any other ideas?  thanks.
Title: Re: Files failing to upload to "resource library" today but not yesterday
Post by: Basara on May 12, 2017, 05:25:34 AM
Hello.
The warning/erros from log is looks old and not related. Please clear AbanteCart cache, then try to uplaod your file.
If fail check AbanteCart error log and important server error log.

Will be great if you provide file example and steps where you add it: to global downloads or to some products etc.
Title: Re: Files failing to upload to "resource library" today but not yesterday
Post by: smggunsstore on May 17, 2017, 10:50:02 PM
It doesn't matter which product I add to, or what file type.  Jpeg, RAR, ZIP all fail to upload and I get this error:

 Fatal error: Out of memory (allocated 813170688) (tried to allocate 63360 bytes) in /home/smggun5/public_html/core/lib/image.php on line 108

I also get this error just by going to the resource library by clicking on the button for it at the top of my backend.
Title: Re: Files failing to upload to "resource library" today but not yesterday
Post by: Basara on May 18, 2017, 01:11:23 AM
Hello.
Similar issue already reported in AbanteCart bug tracker https://github.com/abantecart/abantecart-src/issues/874
We will update this post after fixing or subscribe to github to receive instant update notification
Title: Re: Files failing to upload to "resource library" today but not yesterday
Post by: smggunsstore on May 20, 2017, 12:01:49 AM
I'll watch for the fix, thanks.
Title: Re: Files failing to upload to "resource library" today but not yesterday
Post by: abantecart on June 28, 2017, 06:22:11 PM
There is no fix in AbanteCart for this issue. Issue here is with bugs in GD library used by PHP to resize images.

As this problem related to server configuration, there is no fix.
Issue observed on older PHP 5.3.x and older DG library.

You can try to upgrade to newer PHP and GD and increase PHP operating memory.
As another suggestion, try to stay away from using very large main images for products.
Title: Re: Files failing to upload to "resource library" today but not yesterday
Post by: smggunsstore on June 28, 2017, 10:57:53 PM
Ok, on the PHP version, I was running 5.4 and so I switched it to 7.0 just to try, to no avail. So I increased the memory limit again, and even at 4096M, it's not working.  Other Ideas? 

Side note: if you read my original post, this problem started with me trying to upload an .rar file to the "archive" section, so i don't see how this relates to the images issue you spoke of.   Any other Ideas?
Title: Re: Files failing to upload to "resource library" today but not yesterday
Post by: Basara on June 29, 2017, 01:28:08 AM
Hello, smggunsstore.

We refer to image and memory problem because of error you post
error: AbanteCart core v.1.2.7 Out of memory (allocated 813170688) (tried to allocate 63360 bytes) in <b>/home/smggun5/public_html/core/lib/image.php</b> on line <b>108</b>"


About this warning it is just a not important notice not related to downloads or rar files.
warning: AbanteCart core v.1.2.7 Illegal string offset 'start' in <b>/home/smggun5/public_html/storefront/model/catalog/manufacturer.php</b> on line <b>63</b>"