We have moved to Github. Please open tickets there.

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#267 closed Defect (worksforme)

Edit profile icon ERROR

Reported by: ncmonteiro Owned by:
Priority: normal Milestone: Elgg 1.0
Component: Core Version: 1.0
Severity: minor Keywords: profile, icon, picture, data
Cc: brettp Difficulty:

Description

I have my 'data' directory outside the elgg installation and with 777 permission. When i try to upload a profile icon it accepts but no picture is showed. I created a new data directory inside elgg's installation and updated server information in the administration panel and gave right permission. Still the same thing.
A curious thing happened, inside data directory there's a subdirectory called 'n'. I can't see what's inside because it returns me an error, permission error.
I only have one profile created, my own, and the username is ncmonteiro...
I also tried with different types of images.


Attachments (2)

groups-pic-error.gif (29.4 KB) - added by ncmonteiro 5 years ago.
error.gif (31.8 KB) - added by ncmonteiro 5 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 follow-up: Changed 5 years ago by ncmonteiro

The same appears to happen when trying to upload a group image.
I also notice that when i try to insert an image in description, the image appears in the edit box but when saved does not shows in the group profile description.
...

comment:2 Changed 5 years ago by ncmonteiro

Also when adding image inside 'Bookmarked item' description.
I can see the image in the description box when editing but when i save it doesn't appear.

comment:3 in reply to: ↑ 1 Changed 5 years ago by ncmonteiro

Replying to ncmonteiro:

The same appears to happen when trying to upload a group image.
I also notice that when i try to insert an image in description, the image appears in the edit box but when saved does not shows in the group profile description.
...

I don't know if this help but as you can see in attachment file the html editor in group profile adds "../../../" in the image's path.

attachment: groups-pic-error.gif

Changed 5 years ago by ncmonteiro

comment:4 follow-up: Changed 5 years ago by pete

  • Priority changed from major to minor

Your issues are likely due to you either incorrectly setting the full path to your data directory when you did the initial setup, or more likely (as you pointed out in your comment) have a permissions error on that directory.

comment:5 in reply to: ↑ 4 Changed 5 years ago by rht

I have the same problem. The dir should have no problem as it has full permissions for everyone (i'm running windows xp) and Apache allows access to it from php scripts. In actions\iconupload.php the call $filehandler->open("write"); appears to create a file pointer as shown below:

[handle:private] =>
[attributes:protected] => Array

(

[guid] =>
[type] => object
[subtype] => file
[owner_guid] => 2
[container_guid] => 2
[site_guid] => 0
[access_id] => 0
[time_created] =>
[time_updated] =>
[enabled] => yes
[tables_split] => 2
[tables_loaded] => 0
[title] =>
[description] =>

)

but the call $filehandler->write($large); dose not write anything. The variable $large contains image data.

any ideas?

comment:6 Changed 5 years ago by ncmonteiro

still not working!

i re-installed elgg, made several directories with all permissions inside elgg's installation folder and outside also. Nothing works.

inside data folder elggs creates profile folders with profile name's first letter but is inaccessible.

because my installation is in the root of www.iscapianos.net my .htaccess file is # on the line of RewriteBase.

any ideas?

Changed 5 years ago by ncmonteiro

comment:7 Changed 5 years ago by ncmonteiro

do you think that's a permission issue? check attachment erro.gif please!

thks

comment:8 Changed 5 years ago by ncmonteiro

Maybe i can help those whose problem is the same i had.

My server configuration was PHP Safe Mode ON. You must disable this option or ask your server administrator to do so.

After this the profile picture works just fine!

comment:9 Changed 5 years ago by dgrey

We also are having this same issue. When we try to upload either a profile or group icon, the system allows us to browse and submit the file. The URL looks like:
http://[domain]/elgg10/mod/profile/editicon.php

However, when we select the upload button, it looks like the system may be uploading but then the page goes white and nothing happens. I should note the URL also changes and then points to:
http://[our domain]/elgg10/action/profile/iconupload

Now I have gone to another person's test Elgg site and am able to upload a photo successfully. When I submit the file on their site, the URL doesn't change. I start at:
http://[domain]/mod/profile/editicon.php. I then browse to the same image and select the upload button. The image uploads successfully and the URL doesn't change. It stays http://[domain]/mod/profile/editicon.php.

Any ideas on how we can fix this?

Many thanks!

comment:10 Changed 5 years ago by kiamaru

hi

guys i have the same problem,
someone find the problem and fix that?

tahnls

comment:11 Changed 5 years ago by marcus

  • Resolution set to worksforme
  • Status changed from new to closed

This is a permission problem.

I suggest that you try this with the latest svn. Then if you are still seeing problems see if there are any errors in the apache log while uploading a file... things to look out for are anything to do with file writing - file exceptions etc

Closed since we can't replicate.

comment:12 Changed 4 years ago by computermacgyver

For others finding this thread and experiencing the issue, I had the same behavior as a result of missing GD. Installing GD Graphics Library fixed the issue.

Note: See TracTickets for help on using tickets.