Magento Error when uploading a downloadable products - magento

I first was getting a max_upload_size issue, which I resolved by modifying php.ini. I have increased it to 50M and I am getting a weird red box in Magento with no popup describing the error. Does anyone have any experience with this error?
The log shows:
2013-09-10T19:37:27+00:00 ERR (3): Strict Notice: Only variables should be passed by reference in /home/username/public_html/includes/src/__default.php on line 56826
Image showing error is here - http://s13.postimg.org/yb0my66t3/uploaderror.jpg

Ended up being another php.ini setting that Magento didn't error handle
Changed post_max_size to 30M
; Maximum size of POST data that PHP will accept.
post_max_size = 30M

Related

Laravel 4 - getting 500 Error when uploading large dimension image

When I am uploading large dimension photo (5625 * 5000 and size is 2MB) I got 500 error and if I reduce the dimension of this image then it uploads successfully..why is it happening? I am on GoDaddy server. please guide me through this.
My PHP.ini settings
max_execution_time = 1000
max_input_time = 1000
memory_limit = 500M
post_max_size = 1000M
upload_max_filesize = 1000M
Okay and I have troubleshooted the problem.. When I create a thumb it shows error, but when I remove that code it saves the image
My code to create thumb
anybody can explain why is it happening.. and how to get rid of it.
$img = Image::make($path.$name);

Request Entity Too Large issue

i have laravel application hosted on godaddy, i have multipe image upoader in form , when using small size images it work fine , but when add only one image of size 1 mb i got "Request Entity Too Large message" i have tied many solution like add php.ini file or even user.ini to public_html folder with this contents
file_uploads = On
upload_max_filesize = 256M
post_max_size = 257M
max_input_time = 300
max_execution_time = 300
max_file_uploads = 20
for both file but unfortunately still get the same error
I think you can't change the php.ini settings on GoDaddy shared hosting, but give this a try:
post_max_size xxM # change xxM to whatever you need

how to increase response time in laravel 5.2?

when filling a form in the software then if it takes more than 5 or 6 minutes it gives me an error like XML HTTP request response. Is there any way to increase the response time. The users of my software are very slow in writing.
please help me......
Place this at the top of your PHP script(php.ini file) and let your script loose!
ini_set('max_execution_time', 300); //300 seconds = 5 minutes
After this, restart your local server
Place beloved code in .htaccess to increase it,
<IfModule mod_php5.c>
php_value max_execution_time 300
</IfModule>

"There was an error processing your order. Please contact us or try again later." error on magento

I am developing a website with magento and for somereason I am getting this error and email when I try to check out.
Error :
"There was an error processing your order. Please contact us or try again later."
Email
Payment transaction failed.
Reason
Image is not a PNG
Checkout Type
onepage
Customer:
xxx
Items
Gift Certificate x 2 AUD 10
test product x 2 AUD 25
Gift Certificate x 1 AUD 10
test product x 2 AUD 25
test product x 1 AUD 25
Total:
AUD 155
Billing Address:
abhinab kayastha
ghj
gjhghj
g
jhgjhg, 7897
Togo
T: 234
Shipping Address:
abhinab kayastha
ghj
gjhghj
g
jhgjhg, 7897
Togo
T: 234
Shipping Method:
Free Shipping
Payment Method:
Check / Money order
Date & Time:
May 1, 2012 2:47:40 PM
Thanks
Ab
This sounds like there's an issue while creating a PDF file (probably the order PDF).
The error is thrown because at some point of the PDF creation Magento tries to include a .png file, which does not have the usual PNG signature in its first three bytes (like "real" .png files should).
See lib/Zend/Pdf/Resource/Image/Png.php.
Check your var/log/exception.log or set
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
in your index.php to get an exception trace, which should help you to pin down the file causing the error.
uploaded valid png file under
Configuration -> Sales -> Invoice and Packing Slip Design
and worked fine !!!
This error occur due to low memory_limit, Increase memory_limit in your root or store .htaccess file add this below line in your .htaccess file.
## adjust memory limit
php_value memory_limit 256M

How do I overcome the XHR FF POST size limit?

My XHR POST REQUEST is cut off. When I try to reload my page information is missing. Firebugs sends following message:
Firebug request size limit has been reached by Firebug.
My question is: What are my options?
Would it work if I declare the content.length in the header?
I added a line to my apache config file and restarted it: LimitRequestBody 0
I increased the size of transfer files in mysql config file
Or it is a browser issue?
The only solution I could think of was to cut the data in pieces and transmit the array one by one but I don't like this idea. The content length is 91691 according to firebug.
Any suggestions?
You just need to modify Firebug settings. In browser's address bar go to about:config, then look for option extensions.firebug.netDisplayedPostBodyLimit.
You should increase its value in order to see non truncated requests. Set it to 65535 for example.
Here you can find many other Firebug options you may want to change: http://getfirebug.com/wiki/index.php/Firebug_Preferences

Resources