Cameron White

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • Cameron White replied on the discussion topic All images are not displaying - New Install
    ok, you have helped point me in the right direction for what to look for. I see now that in the user's directory, the file folder is at 755 but the profile folder is at 700. Is there a reason why the security would be different? I am guessing... view reply
  • Cameron White replied on the discussion topic All images are not displaying - New Install
    It is both elgg images from default theme and uploaded images/profile images.  I am on Release - 2.3.2, Version - 2016092300 view reply
  • Cameron White replied on the discussion topic All images are not displaying - New Install
    All images are not displaying. I have not installed any 3rd party plugins at this time. I just tried uploading a .pdf to the files section and I was able to download it. I tried uploading a word document and was able to download it but it was... view reply
  • Cameron White added a new discussion topic All images are not displaying - New Install in the group Beginning Developers
    I have been slowly working through all of the errors for the last 3 months. I am new to server management but have worked through most of the issues until now and haven't found any help on the forums that can help me get past this...
    • If the static images also fail to show up, it's quite unlikely a problem with the GD php extension on image resizing alone if at all.

      You can also check if image resizing has worked for an uploaded image, e.g. a profle image, by looking into the data directory to see if you find the resized image file belonging to a original uploaded image. If you have uploaded a profile image for your account, look into /tmp/data/<NUMBER>/<ACCOUNT_GUID>profile to see if you find more than 1 image file there of the profle image in different sizes. If they are there the problem is with displaying the images only.

      If you are also not using ANY 3rd party plugins (this means also no theme plugin in case you thought this is differenent), there are three possible reasons I can currently think of why the images don't show. Also, as Ismayil mentioned already the log file(s) (Apache and/or php error log in case there's a separate php error log) might give some hints what could be wrong.

      If the logs don't give any further information it could be

      • a problem with Elgg's caching mechanisms, especially if you are using the "cache" symlink in the Elgg root folder that points to the views_simplecache folder in the data directory. For testing if there's a problem with caching you can disable all caching options in the advanced site settings to see if it makes a difference.
      • some damaged file(s) of Elgg core somewhere in the install folder (though I think this is rather a unlikely possibility if everything else works fine). Simply overwriting the install folder with the content of the Elgg zip archive (in case you have installed with the zip) would likely replace any damaged file with an undamaged version of the file.
      • or it might be a problem with the Apache config. I came across this posting https://ubuntuforums.org/showthread.php?t=1385583 where someone also had problem with images not showing up. In this case it helped to add a line to the Apache config to disable the sendfile syscall. The line to be added would be

      EnableSendfile off

      But I'm not sure how exactly the Apache config is to be done on your system as it might be handled differently on different server flavours, possibly with vitual servers in use etc. Maybe you would need to ask the Amazon support with regards where to add it.

      The problem with the sendfile usage of Apache (if it is an Apache config problem) could also be caused by the location of your data directory in the /tmp folder. It might be caused by how the /tmp folder is mounted if it's for example on a separate partition or network device.

      In any case I think the /tmp folder is a bad place for the data directory anyway. As the name "tmp" already indicates this folder is for temporary stuff that is not critical when lost. On some system the /tmp folder is even cleaned up (content deleted!) on a regular basis to save disc space - and you surely do NOT want that to happen with the content of your data directory. So, I would suggest you migrate the data directory to another location (as long as it's outside /var/www and enough disc space is available you can place it whereever you think it fits best).

    • ok, you have helped point me in the right direction for what to look for. I see now that in the user's directory, the file folder is at 755 but the profile folder is at 700. Is there a reason why the security would be different? I am guessing that might be the reason why the pictures are not displaying? They are both set to apache is the owner and group though.

    • I don't think the 700 permissions are the reason the images are not shown. The data directory contains the files uploaded by the users and the files in the data directory are written by Apache (and need to be readable by Apache). Apache saves them with 700 permissions and then can also read them again when they are needed.

      Any wrong permissions of content in the data directory would also not explain why static images of the theme are not showing up (and apparently only image type files have a problem?) as they are not within the data directory. Have you tried the change in the Apache config I suggested? Even if this doesn't work there might be something else wrong with the Apache setup (difficult for us to guess as it seems an unusual issue not happening under normal circumstances with the images being displayed for us apparently).