hi
Loading avatar gives error on 2 pages(admin panel and user panel.)
I upload .jpg image upload not error.
png image upload error
please help me
screen shoot
http://i.hizliresim.com/X9BqXo.png
Ups helpp
Fixed
source :
Which php version are you using?
(2016-11-29, 12:44 PM)Jones H Wrote: [ -> ]Which php version are you using?
PHP version : 5.4.45
OS : CentOS 6.7 (Final)
I have fixed
Error type : User carelessness
source :
https://community.mybb.com/thread-159855...pid1104547
File: inc/functions_image.php (Line no. 94)
Message
imagealphablending() expects parameter 1 to be resource, boolean given
Glad you fixed that, this can be rejected then
@Jones @Euan T Do we want to add a small error instead of it throwing a SQL error or shall we just reject this?
We can adjust setting description for this (I can do that if it is not already described properly)
The avatar function should probably validate the setting to avoid throwing an error. Doubt we can check the setting on input as we don't support RegEx there. Going to wait for Euan before pushing this.
What about to use same same format input for all image dimensions in ACP? We use "widthXheight and "width|height")
Sorry to bump an old issue but the problem still persists. As Eldenroot said we should use one format and stick to that. Alternately we can think of accepting both the formats (| and x) for every case. Just check the existence of separator and split accordingly.
Also we need to explore the possibility to validate the input while updating settings from ACP.
And we can extend this to consider default if a valid setting format not found.
Pushing it.
Hi,
Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.
Follow this link to visit the issue on Github:
https://github.com/mybb/mybb/issues/3192
Thanks for contributing to MyBB!
Regards,
The MyBB Group