Skip to Content Skip to Menu

Cannot upload avatar

11 years 10 months ago - 11 years 10 months ago #214736 by Johnysnake
Cannot upload avatar was created by Johnysnake
When users of my website try to upload a avatar (image) they get the message:
Profile image : The file exceeds the maximum size of 500 kilobytes

Even though, the file size is a lot lower.

Is there any solution to solve this? Or is it a bug?

Edit: I saw on the forums that the solution was to reinstall CB 1.9 ( www.joomlapolis.com/downloads/doc_details/451-community-builder-19-package ). But i just did and i still have the same issue. Users cannot upload a own image.

Profile image : The file exceeds the maximum size of 2000 kilobytes




Joomla! 2.5.7
CB 1.9
Last edit: 11 years 10 months ago by Johnysnake.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
11 years 10 months ago #214746 by nant
Replied by nant on topic Re: Cannot upload avatar

Johnysnake wrote: When users of my website try to upload a avatar (image) they get the message:
Profile image : The file exceeds the maximum size of 500 kilobytes

Even though, the file size is a lot lower.

Is there any solution to solve this? Or is it a bug?

Edit: I saw on the forums that the solution was to reinstall CB 1.9 ( www.joomlapolis.com/downloads/doc_details/451-community-builder-19-package ). But i just did and i still have the same issue. Users cannot upload a own image.

Profile image : The file exceeds the maximum size of 2000 kilobytes


Joomla! 2.5.7
CB 1.9



You need to download another CB 1.9 version and then reinstall.

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

11 years 10 months ago #214750 by Johnysnake
Replied by Johnysnake on topic Re: Cannot upload avatar
I´ve reinstalled comprofiler. From the link that is provided on this CB link: www.joomlapolis.com/downloads/doc_details/451-community-builder-19-package

But i still have the same issue.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
11 years 10 months ago #214754 by nant
Replied by nant on topic Re: Cannot upload avatar

Johnysnake wrote: I´ve reinstalled comprofiler. From the link that is provided on this CB link: www.joomlapolis.com/downloads/doc_details/451-community-builder-19-package

But i still have the same issue.


what can I say .. it works for me.

Suggest you:

1. remove your existing CB 1.9 packages from your workstation (to make sure you are not in fact installing an older download)
2. Download again
3. Install again
4. Test
The following user(s) said Thank You: Josh Lewis

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

11 years 10 months ago #214798 by Johnysnake
Replied by Johnysnake on topic Re: Cannot upload avatar
Alright, that seems to work.

Thanks you very much.

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

  • yuratim
  • yuratim
  • OFFLINE
  • Posts: 1
  • Thanks: 1
  • Karma: 1
11 years 10 months ago #214905 by yuratim
Replied by yuratim on topic Re: Cannot upload avatar
I had the same problem.

It occurs because of this error ("components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php"):
Code:
2704: if ( filesize( $value['tmp_name'] ) * 1024 > $maxSize ) { 2705: $this->_setValidationError( $field, $user, $reason, sprintf( CBTxt::T("The file exceeds the maximum size of %s kilobytes"), $maxSize ) ); 2706: return false; 2707: }

filsize() returns result in bytes and $maxSize is measured in kilobytes, so $maxSize has to be multiplied by 1024.
The following user(s) said Thank You: veshmashina

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

Moderators: beatnantkrileon
Powered by Kunena Forum