1
xoobaru
Avatar upload failure
  • 2012/9/26 20:52

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


Hello everyone,
Recently updated and avatars fail to upload under the 2.5.5 profile user interface (uploaded as webmaster).

Getting the
Errors Returned While Uploading file: something.jpg Invalid image file
message.

-Image size limit is 35Kb. 120 x 120. Tried jpg,gif, and png "valid" images in compliance with these limits.
-Target folders exist and paths are correct.
-All chmods are set correctly (in and out of root).
-No special .htaccess settings.
-Avatars enabled under user system preferences
-Avatars enabled under group rights settings

But still craps out.

Whats up with this?

2
zyspec
Re: Avatar upload failure
  • 2012/9/26 21:50

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


You said
Quote:
All chmods are set correctly (in and out of root).


I assume this means that you have chmod-ed the /uploads and /uploads/avatars directories too?

Do you have the same failure if you try and upload the avatar through the System control panel (System -> Avatars)?

Have you turned on debug to see if there are any errors?

3
xoobaru
Re: Avatar upload failure
  • 2012/9/26 22:17

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


hey zyspec,

Yes -avatar folders and everything recommended at install.

Yes -same failure for both modes, however under avatar admin interface, it says the usual database updated and LOOKS like it completed, but ftp sees no such file under declared path of xoopspath/uploads/avatars/

Yes -debug mode w/popups enabled. No popups occur when this error is received. I will know if anything is in the php error log shortly.

Also just reinstalled profiles module but same result.

4
irmtfan
Re: Avatar upload failure
  • 2012/9/27 7:57

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


1- do you have any error_log file inside the profile module?
2- do you install protector? disable protector and see if it cause error.

5
xoobaru
Re: Avatar upload failure
  • 2012/9/27 15:59

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


Thanks.
Found no logfiles. What path is the debug mode log stored under?

Yes, I did turn off protector even before I opened this thread (to disable bad upload feature). Forgot to list it with the other things I tried above. Just tried it again but....

same error.

The message indicates it is seeing them as a invalid file. Is there somewhere that filetype extensions get declared (i.e. jpg|gif|png)? Maybe something is not set there? I did not find any related settings so far.

6
irmtfan
Re: Avatar upload failure
  • 2012/9/29 8:43

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

Is there somewhere that filetype extensions get declared (i.e. jpg|gif|png)? Maybe something is not set there? I did not find any related settings so far.

yes. Your issue is strange and now i can find that it is like this issue:
https://xoops.org/modules/newbb/viewtopic.php?post_id=348793
class/uploader.php

follow from this function:
function &getErrors($ashtml true)
    {
        if (!
$ashtml) {
            return 
$this->errors;
        } else {
            
$ret '';
            if (
count($this->errors) > 0) {
                
$ret '<h4>' sprintf(_ER_UP_ERRORSRETURNED$this->mediaName) . '</h4>';
                foreach (
$this->errors as $error) {
                    
$ret .= $error '<br />';
                }
            }
            return 
$ret;
        }
    }



7
invertigo7
Re: Avatar upload failure
  • 2013/11/3 6:02

  • invertigo7

  • Just popping in

  • Posts: 14

  • Since: 2005/7/1 1


So, is there a fix? I'm having the same issues as the original poster here.

Login

Who's Online

174 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits