×
Kunena 5.2 Beta 1 Released (24 Sep 2020)

The Kunena team is thrilled to announce the first public beta release of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.

The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 B1 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.

Question Avatar size exceed limit allowed by configuration

More
2 years 3 months ago #1 by Kallehak
Getting "Avatar size exceed limit allowed by configuration" regardless of image size. Have tried all 3 resize methods. Upload sizes are set to 8.5 MB and PHP upload limit is set to 64 MB.

This message contains confidential information

Database collation check: The collation of your table fields are correct

Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 120 seconds | Max execution memory: 96M | Max file upload: 64M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : protostar | author: Kyle Ledbetter | version: 1.0 | creationdate: 4/30/2012

Kunena default template details : Blue Eagle5 | author: Kunena Team | version: 1.5.0-RC3-DEV | creationdate: 2017-08-30

Kunena template params:

Warning: Spoiler!

Kunena version detailed: Kunena 5.1.0 | 2018-05-13 [ Ariel ]
| Kunena detailed configuration:

Warning: Spoiler!
| Kunena integration settings:
Warning: Spoiler!
| Joomla! detailed language files installed:
Warning: Spoiler!

Third-party components: None

Third-party SEF components: None

Plugins: None

Modules: Kunena Latest 5.1.0

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

More
2 years 3 months ago - 2 years 3 months ago #2 by infermieriattivi
Hi
confirm a problem.
"La dimensione Avatar supera il limite consentito dalla configurazione"
Non si modifica più l'avatar.
Questo è un problema.
Last edit: 2 years 3 months ago by infermieriattivi.

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

More
2 years 3 months ago - 2 years 3 months ago #3 by EfEm
Same here. Both with avatars and with file attachments. I tried uploading a file with only 64 bytes as well as setting the size limits to ridiculously high values. Nothing worked.

My config:
This message contains confidential information

Database collation check: The collation of your table fields are correct

Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 120 seconds | Max execution memory: 256M | Max file upload: 64M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : rt_fluent | author: RocketTheme, LLC | version: 1.0.3 | creationdate: December 26, 2017

Kunena default template details : Crypsis | author: Kunena Team | version: 5.1.0 | creationdate: 2018-05-13

Kunena template params:

Warning: Spoiler!

Kunena version detailed: Kunena 5.1.0 | 2018-05-13 [ Ariel ]
| Kunena detailed configuration:

Warning: Spoiler!
| Kunena integration settings:
Warning: Spoiler!
| Joomla! detailed language files installed:
Warning: Spoiler!

Third-party components: UddeIM 4.0

Third-party SEF components: None

Plugins: None

Modules: None

Last edit: 2 years 3 months ago by EfEm.

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

More
2 years 3 months ago #4 by xillibit
Hello,

Did-you had checked that the width and height settings are more high that the resolution of images ?

I don't provide support by PM, because this can be useful for someone else.

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

More
2 years 3 months ago #5 by Kallehak

xillibit wrote: Hello,

Did-you had checked that the width and height settings are more high that the resolution of images ?


Avatar settings are 800x800 pixels. Tried upload pictures from 1500x1500 down to 32x32 pixels. Nothing worked.

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

More
2 years 3 months ago - 2 years 3 months ago #6 by Kallehak
I checked libraries/kuena/upload/upload.php and found that the functions:

checkFileSizeAvatar
checkFileSizeFileAttachment
checkFileSizeImageAttachment

did return 0 when a file/image were not bigger than allowed. So I changed:

return (int) max(
0,
min(
$this->toBytes(ini_get('upload_max_filesize')) - 1024,
$this->toBytes(ini_get('post_max_size')) - 1024,
$this->toBytes(ini_get('memory_limit')) - 1024 * 1024
)
);

to:

return true;

in the functions and now it works :-)
Last edit: 2 years 3 months ago by Kallehak.

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

More
2 years 3 months ago #7 by unker
Hi,

indeed, I have the same issue and followed Kallehak's steps and it seems to be OK, so far.

However, I do not understand why this worked in 5.0.14, where the code in this respect is identical....:dry:

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

More
2 years 3 months ago #8 by EfEm

unker wrote: However, I do not understand why this worked in 5.0.14, where the code in this respect is identical....:dry:

I don't know, that sounds to me like the actual problem is somewhere else.

With the update to 5.1.1, nothing changed for me sadly :(

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

More
2 years 3 months ago #9 by xillibit

Kallehak wrote: I checked libraries/kuena/upload/upload.php and found that the functions:

checkFileSizeAvatar
checkFileSizeFileAttachment
checkFileSizeImageAttachment

did return 0 when a file/image were not bigger than allowed. So I changed:

return (int) max(
0,
min(
$this->toBytes(ini_get('upload_max_filesize')) - 1024,
$this->toBytes(ini_get('post_max_size')) - 1024,
$this->toBytes(ini_get('memory_limit')) - 1024 * 1024
)
);

to:

return true;

in the functions and now it works :-)

With that you can never check if the avatar size exceed the limits set in configuration

I don't provide support by PM, because this can be useful for someone else.

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

More
2 years 3 months ago #10 by unker
Yes, xillibit,

you are absolutely right.

So we have the choice:
no avatars, attachments and images
or
no size control...

...as long as nothing will be corrected ;)

Best Regards
Hartmut

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.149 seconds