Description of issue or problem I’m having: When we upload the journal logo, homepage image,journal thumbnail, add image in footer or in custom block in sidebar, or even when admin user adds its profile image, it is uploaded without indicating an error and corresponding image is uploaded in respective files directory; however, it is not displayed. only a tiny image icon along with alternate text is displayed (see attached screenshots). The page source shows it as:
<a href=" https://sub_domain.main_domain.com/index.php/journal/index " class="is_img"> <img src="https://sub_domain.main_domain.com/public/journals/2/pageHeaderLogoImage_en_US.png" width="400" height="150" alt="journal logo" /> </a>
<div class="homepage_image"> <img src="https://sub_domain.main_domain.com/public/journals/2/homepageImage_en_US.jpg" alt="homepage image"> </div>
I have checked the the config.inc.php file and the files settings are as:
files_dir = /home/hostusername/articlesfiles public_files_dir = public public_user_dir_size = 5000 umask = 0022 filename_revision_match = 70
And in general settings the baseURL is as: (OJS installation on subdomain):
base_url = "https://sub_domain.main_domain.com"
The permissions setting for
public folder is 744 while all other permissions are as default when installed.
Steps I took leading up to the issue: I followed the recommended steps in PKP OJS docs for journal and website settings while logged in as admin user. Briefly:
- Uploaded the Logo at HostedJournal>settings>website>appearance>setup>logo
- Uploaded the Journal thumbnail at HostedJournal>settings>website>appearance>setup>journal thumbnail
- similarly for other images…
Note: On localhost with similar setting there is such problem when I upload the images.
What I tried to resolve the issue: Tried to search the forum for similar issues and either posts were related to outdated versions or some suggestions were to check the file settings such as
public_files_dir = public for typos, but I found no typo and not changed anything regarding it.
Application Version: OJS 3.3.0-10
Additional information, such as screenshots and error log messages if applicable: