Keyword

Error when uploading 2MB or bigger image

  • Nazmal Hossain
  • Nazmal Hossain's Avatar Topic Author
  • Offline
  • New Member
More
8 years 3 months ago #160670 by Nazmal Hossain
Error when uploading 2MB or bigger image was created by Nazmal Hossain
Hello

I selected system error notice to develoment and now when I try to upload image in k2 which is 2MB or bigger in size then I see message like below


Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; upload has a deprecated constructor in/home/verbeirenbael/public_html/administrator/components/com_k2/lib/class.upload.phpon line624

Notice: A non well formed numeric value encountered in/home/verbeirenbael/public_html/administrator/components/com_k2/lib/class.upload.phpon line3246

So please let me know what is the problem. Is k2 image processing/uploading is not ready for 2MB or bigger image?

Thanks

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #160680 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error when uploading 2MB or bigger image
Which version of K2 are you using?

Please Log in or Create an account to join the conversation.

  • Nazmal Hossain
  • Nazmal Hossain's Avatar Topic Author
  • Offline
  • New Member
More
8 years 3 months ago #160744 by Nazmal Hossain
Replied by Nazmal Hossain on topic Error when uploading 2MB or bigger image
I have used k2 2.7.1

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #160752 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error when uploading 2MB or bigger image
Try the following:
a) Install the DEV version github.com/getk2/k2
b) Disable error reporting.

Please Log in or Create an account to join the conversation.

  • Nazmal Hossain
  • Nazmal Hossain's Avatar Topic Author
  • Offline
  • New Member
More
8 years 3 months ago #160780 by Nazmal Hossain
Replied by Nazmal Hossain on topic Error when uploading 2MB or bigger image
Hello,

I have installed k2 dev version from your provided URL. But now when I am uploading images then its showing blank white screen. Then I enabled system error message and tried to upload image. Then I see error notice when uploading images


Notice: A non well formed numeric value encountered in /home/verbeirenbael/public_html/administrator/components/com_k2/lib/class.upload.php on line 2689

Please give me suggestion.

Thanks

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #160806 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error when uploading 2MB or bigger image
Can you look at your error_log.
It is most likely a PHP memory issue. You can also ask your hosting provider.

Please Log in or Create an account to join the conversation.

  • Nazmal Hossain
  • Nazmal Hossain's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago #160859 by Nazmal Hossain
Replied by Nazmal Hossain on topic Error when uploading 2MB or bigger image
I have checked error logs. Nothing is there. If you want I can send you login details for check. Please let me know.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #160870 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error when uploading 2MB or bigger image
I will need to see the actual PHP error, so you need to ask your hosting provider.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum