OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Issues with OJS 2.2 and site header settings? [RESOLVED]

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Issues with OJS 2.2 and site header settings? [RESOLVED]

Postby stormfin » Wed Feb 06, 2008 9:53 am

Hi,

I'm having a strange issue trying to make my OJS site header be an image versus the text title. In the admin/settings page, I can successfully upload an image, but the radio button is always stuck on "Title text" no matter how many times I save and go back to the admin settings. Also, as long as I have an image defined there, it tries to display both the text and the image. Here's the HTML grabbed from the IE source:

<div id="header">
<div id="headerTitle">
<h1>
<img src="http://scholarworks.iu.edu/journals/public/site/pageHeaderTitleImage_en_US.jpg" width="" height="" style="border: 0;" alt="" />
IUScholarWorks Journals
</h1>

This functionality works perfectly for an actual Journal. That is, I can choose between an image and text, and it displays as I expect, and the journal admin page shows it as being selected correctly.

The underlying database table for journal settings has settings to track the header usage (the image object, which type to use, etc.), like:

select ... from journal_settings
where setting_name like 'pageHeader%'
==========================
pageHeaderTitleImage (object reference)
pageHeaderTitleType 1

I would expect the site settings table to have the same setting names to track which kind of title to use (text or image), but it does not have the one for type:

select ... from journal_settings
where setting_name like 'pageHeader%'
==========================
pageHeaderTitleImage (object reference)

I am running OJS 2.2 that I upgraded with the patch mechanism versus a complete package installation. Both the code and the database upgrade patch completed successfully.
stormfin
 
Posts: 10
Joined: Thu Jan 31, 2008 12:07 pm

Re: Issues with OJS 2.2 and site header settings?

Postby stormfin » Wed Feb 06, 2008 10:23 am

After further investigation, I would also add that manually adding that setting name into the site_settings table has no effect. Maybe that isn't relevant in the site settings like it is in the journal header mechanism.

Also, what I've now noticed is that the image will display (along with the title text) in Firefox, but not in IE. That is, you can choose an image and it will never show in IE even though the HTML source shows it in there. I believe this is because the width and height attributes end up being null (see original post for snippet). So, it seems like whatever is causing the choice between the image and text to fail, is also resulting in not being able to get some required parameters to render the header title HTML.

I should also add that once I have uploaded an image, I can go in and delete it using the settings page, but it never goes away. The actual image file in the public files area gets deleted, but the entry is still in the database, so that everytime you come back into the settings page, it is there. This actually causes the title HTML to have an 'img' tag for the image but it is no longer physically there, resulting in errors in the Apache log files.
stormfin
 
Posts: 10
Joined: Thu Jan 31, 2008 12:07 pm

Re: Issues with OJS 2.2 and site header settings?

Postby smiri » Wed Feb 06, 2008 2:55 pm

Hi stormfin,

This is fixed here:

http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3239
http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3240

Please apply these two patches and that should fix your problem. I would suggest reversing all the changes you've manually made before applying these patches.

Regards,
smiri
 
Posts: 183
Joined: Thu Sep 06, 2007 7:01 pm

Re: Issues with OJS 2.2 and site header settings?

Postby stormfin » Thu Feb 07, 2008 2:21 pm

Hey thanks for that. I knew it couldn't be something I was doing wrong, but I guess I should have searched the bug databases first before posting here. Thanks!
stormfin
 
Posts: 10
Joined: Thu Jan 31, 2008 12:07 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 3 guests