OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Missing images and style sheets

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.

Missing images and style sheets

Postby dbd » Thu Nov 21, 2013 7:58 am

Since upgrading to 2.4.2.0, moving to a new server, and being new at OJS, with my job being to provide support, I'm having a problem I've not been able to figure out.

When a user is editing a submission, through:
Home > User > Editor > Submissions > #no > Editing

They are working with the layout, upload it, upload images and the style sheet. I can download them, so I believe they are there, but when we view the proof, the proof does not see the style sheet or the images.

Where are these files saved? How should they be reference in the in the Galley Format html file that is uploaded. Looking at the docs, it appeared there should be a reference link, but I'm not seeing it on the page I'm on?

Thanks for any help/pointing in the right direction.
dbd
 
Posts: 13
Joined: Fri Jul 19, 2013 1:24 pm

Re: Missing images and style sheets

Postby asmecher » Thu Nov 21, 2013 1:24 pm

Hi dbd,

When an HTML file is presented to the viewer, OJS will wrap it in <html><body> tags, including its own <head> tag to reference stylesheets. There is no need to refer to the stylesheet from your uploaded HTML. As for images, references to them from your HTML should refer to them by filename, without specifying a directory, e.g.:[code]<img src="myImage.png" ...></code]...and then the image should be uploaded with that filename exactly. This will cause OJS to rewrite references to that image with the appropriate URL to its own storage area.

If you're having trouble with these, look at the HTML source in the "proof galley" area to see how/if the CSS is being included and how image references are being rewritten.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8668
Joined: Wed Aug 10, 2005 12:56 pm

Re: Missing images and style sheets

Postby dbd » Fri Nov 22, 2013 9:18 am

With my Console debugger in Chrome on, when I go to /sectionEditor/proofGalley/ I am getting a jquery is not defined error -- where should jquery be defined at? I'm wondering if that is what is causing the issue?

side note: I think you are commenting on another thread about some errors I'm seeing in the error log, the debug code I pasted on that thread with the 404 was only for this page (proof gallery). I'm not seeing any other 404's anywhere else.
dbd
 
Posts: 13
Joined: Fri Jul 19, 2013 1:24 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests