First off I apologise if this is the wrong SE community to post this on, however since it is the software package I use I hoped you guys could help me out.
I have set up a couple of image upload directories for me to use, one being for static images used over the site and another for images relating to articles posted on the site. I currently have a custom directory set up for static images at <root>/img/<imagename>
which works perfectly fine when directly linked to in the template. However, this is not an ideal solution since I would need to manually manage images.
The problem effects both upload directories and new ones, but I will refer to the directory used for the static images for convenience unless noted. The logo which is used in the custom directory was also uploaded to the new ExpressionEngine upload directory, however when it is accessed nothing will appear. Any links to the image will show up as the broken image icon, and opening the image link directly will just produce a blank screen.
News article images are stored at <root>/news/images/<newsimage>
. At the same time news articles themselves are stored/displayed at <root>/news/article/<channelcontent>
. This suffers the same issue as the static image directory, however opening a direct link to one of the images will load up the news overview section of the site, the homepage of the /news/ section. In short, it effectively ignores the image and displays the news homepage instead, as the image below demonstrates.
(the second black box at the bottom happens all the time, not just in this particular scenario).
You can see that while hotlinking to the image, I get redirected instead of showing an image. Below, you can also see that the images hotlinked alongside the articles do not display, instead showing a broken image icon.
The same issue does not occur just in the articles, but also in the editor!
I instantly assumed it was a server permissions error, but following the guide I set the image and folder permissions to 755 and even 777, but the bug remains present.
The following is the setup for the news image directory.
Descriptive name: News Images
Server path of upload directory: /home/<hidden>/public_html/beta/img/news/
URL of upload directory: http://beta.bowl-of-soup.co.uk/news/images/
Images only
And this is how it is used in the broken images above.
{exp:channel:entries channel="news" limit="10"}
<hr />
<h4><img class="left" src="{news_headimg:thumb}"/><a href="{url_title_path='news/article'}">{title}</a></h4>
<p><i>A wonderful testing article by your adoring {author}</i></p>
<p>{news_headline}</p>
{/exp:channel:entries}
(Removing :thumb makes no difference).
Please can anyone help with this issue? I can provide more details happily as this issue is a blocker in the site development. I tried searching multiple solutions but none seemed to work.
ExpressionEngine covers the whole site at , so please check it out to see the bug first-hand (advertising not intended - I'll switch off adverts until the issue is resolved).