Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Image not shown on pages and in administraton

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2 3
Go to End
Author Topic: 6836 Views
  • Sirius
    Avatar
    Community Member
    7 Posts

    Image not shown on pages and in administraton Link to this post

    Hi,

    Please help me out with this problem:

    Problem#1:
    When I upload images from the administration-module, I can't see the image thumbnails.

    Problem#2:
    The image is not show om a page.

    File permissions:
    /assets/ - 777
    /assets/Uploads/ - 777

    File permission 644 and 777 do not help out the problem.

    When I select an image from the image chooser (Uploads directory) and press the insert image button it shows the image in the wysiwyg-editor.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image not shown on pages and in administraton Link to this post

    View the page source, find the image that it's looking for, and put that in your address bar. If you still can't see it, you know it has to be at the filesystem level.

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Image not shown on pages and in administraton Link to this post

    Sirius, are you sure the GD2 extension for PHP enabled?

    If you seem to be able to upload images, but the thumbnails and resampled images don't show up, that indicates to me that the image formatting bits are not working correctly. Also, have you made any changes to the default .htaccess file?

    Cheers

  • Sirius
    Avatar
    Community Member
    7 Posts

    Re: Image not shown on pages and in administraton Link to this post

    Hi again,

    As you suggested, I tried to paste the image-url from the source kode into the adress in my browser and the and i still can't se it.

  • Sirius
    Avatar
    Community Member
    7 Posts

    Re: Image not shown on pages and in administraton Link to this post

    My .htassess:

    ----------
    ### SILVERSTRIPE START ###
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$

    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    ### SILVERSTRIPE END ###

    ----------

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image not shown on pages and in administraton Link to this post

    Can you go in your filesystem and find the file that it's looking for?

  • Sirius
    Avatar
    Community Member
    7 Posts

    Re: Image not shown on pages and in administraton Link to this post

    I have tried that. It dosen't work.

  • pac
    Avatar
    Community Member
    25 Posts

    Re: Image not shown on pages and in administraton Link to this post

    could be a permission issue on _resampled and its content. try setting them to 755 rather than 644 or 777. Solved my problem but I have to do it manually for every new gallery. Not great I know, next I'll try to figure out where the permissions are set in the mkdir script...

    6836 Views
Page: 1 2 3
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.