Image block won't show the image
Permalink
Hello.
The image block will only show images every now and then. I haven't managed to find the secret formula for reproducing the event, so I'll ask here to see if I'm the only one with this issue.
I have in my template set up a space for a content block like this:
When in edit mode, I add an Image block, pick and image and save the page. Everyting looks fine. I keep adding images to all pages, but at a certain point, the image of the previously edited pages disappears.
The image block is still there, and when I edit it the correct image is still shown. It's just not visible in either edit mode or when logged out. Viewing the source reveals the location of the image, and there is nothing wrong with that. I can copy and paste the file reference in the address bar, and the image shows up.
After having searched around the net and on this forum, I have tried setting the permissions on the /files directory and all files within this directory to 777 without any luck. I have set all the permissions I can find to be readable by anyone, without luck. I thought for a moment that it was a CSS issue, but it isn't (besides the image was showing at some point and the CSS just doesn't change for no reason).
Just to see if the Image block was OK, i added an extra echo 'HELLO!' in the view.php, and the text showed up.
I have tried removing the block and re-adding the image, and sometimes it works. But that's not something that I want to live with.
So, how come the Image block spits out the image, but it will only show up every now and then? Can a content area overwrite another?
I'm using Concrete5, version 5.4.1.1, on OS X with MAMP.
Hoping for any kind of help and comfort,
Thomas
The image block will only show images every now and then. I haven't managed to find the secret formula for reproducing the event, so I'll ask here to see if I'm the only one with this issue.
I have in my template set up a space for a content block like this:
$a = new Area('Header Image'); $a->setBlockLimit(1); $a->display($c);
When in edit mode, I add an Image block, pick and image and save the page. Everyting looks fine. I keep adding images to all pages, but at a certain point, the image of the previously edited pages disappears.
The image block is still there, and when I edit it the correct image is still shown. It's just not visible in either edit mode or when logged out. Viewing the source reveals the location of the image, and there is nothing wrong with that. I can copy and paste the file reference in the address bar, and the image shows up.
After having searched around the net and on this forum, I have tried setting the permissions on the /files directory and all files within this directory to 777 without any luck. I have set all the permissions I can find to be readable by anyone, without luck. I thought for a moment that it was a CSS issue, but it isn't (besides the image was showing at some point and the CSS just doesn't change for no reason).
Just to see if the Image block was OK, i added an extra echo 'HELLO!' in the view.php, and the text showed up.
I have tried removing the block and re-adding the image, and sometimes it works. But that's not something that I want to live with.
So, how come the Image block spits out the image, but it will only show up every now and then? Can a content area overwrite another?
I'm using Concrete5, version 5.4.1.1, on OS X with MAMP.
Hoping for any kind of help and comfort,
Thomas