OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Wrong JournalURL

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.

Wrong JournalURL

Postby sean » Mon Jul 02, 2007 9:09 am

Hi,

I would appreciate a little help in tracking down a bug. Recently the very first issue of a journal on our OJS installation was created. However the announcement email that was sent out by the system had the wrong URL for the journal. The proper url is http://ojs.institution.edu/index.php/journal, however the email had http://ojs/index.php/journal in it.

The baseURL in the config.inc.php file has http://ojs.institution.edu , so I'm not sure where the abbreviated (and incorrect) url is coming from.

Thanks,

Sean
Last edited by sean on Mon Jul 16, 2007 3:54 pm, edited 2 times in total.
sean
 
Posts: 37
Joined: Thu Mar 15, 2007 3:25 pm

journal setup

Postby jalperin » Mon Jul 02, 2007 11:57 am

Check what it says in the field for "Signature" under:
Journal Manager -> Setup -> 1.4 Email Identification

This field gets populated with some default parameters when you first install OJS and does not get automatically updated when you change the base URL for your installation.

Juan Alperin
jalperin
 
Posts: 155
Joined: Thu Jul 06, 2006 1:03 pm
Location: Buenos Aires

Postby sean » Mon Jul 02, 2007 12:03 pm

Thanks for the reply, but that was already changed to show the correct URL. Is there anywhere else beside the baseURL in config.inc.php that the journal gets its {JournalURL} parameter from?
sean
 
Posts: 37
Joined: Thu Mar 15, 2007 3:25 pm

Postby asmecher » Mon Jul 02, 2007 12:46 pm

Hi Sean,

When OJS creates a journal, the URL is stored in several settings. If you change the URL, aside from making sure that your config.inc.php file contains the new URL, you may have to review your 5 pages of settings (e.g. page 5, in the Information textboxes) for incorrect URLs.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8869
Joined: Wed Aug 10, 2005 12:56 pm

Postby sean » Mon Jul 02, 2007 1:01 pm

Thanks Alec,


After moving the installation, I had updated those urls as well as the baseURL to be the correct one, which is why I don't see why it gave the wrong url in the email. By the way, its not the original url that is being shown as that is something quite different, but what is being shown is an abbreviation of the full url that only works on campus.

Also the announcement email has the correct url in the signature, just in the body of the message it has the abbreviated url links.

Any ideas?
sean
 
Posts: 37
Joined: Thu Mar 15, 2007 3:25 pm

Postby asmecher » Tue Jul 03, 2007 11:28 am

Hi Sean,

Are you using mod_rewrite to change the OJS URL? If so, that may be the source of the problem. You might be able to work around it by specifying additional base_url[...] configuration directives in the config.inc.php file, one for base_url[index] and one for each journal path (e.g. base_url[my_journal_path]).

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8869
Joined: Wed Aug 10, 2005 12:56 pm

Postby sean » Tue Jul 03, 2007 12:09 pm

Thanks Alec,

mod_rewrite is enabled, but I wasn't using it (at least not knowingly) to change the OJS URL. I will try your suggestion.

Thanks
sean
 
Posts: 37
Joined: Thu Mar 15, 2007 3:25 pm

Postby sean » Mon Jul 16, 2007 3:53 pm

Hi Alec,

Unfortunately this did not work. What's more, it seems that all the links on the site lead to the abbreviated version when the site is viewed on campus. i.e. if I hover over "home" the URL shows as http://ojs/index.php rather than http://ojs.institution.edu/index.php. Off-campus the urls work as they should. Any ideas?

I do have mod_rewrite enabled. Should I disable it?

Thanks,

Sean
sean
 
Posts: 37
Joined: Thu Mar 15, 2007 3:25 pm

Postby asmecher » Mon Jul 16, 2007 4:13 pm

Hi Sean,

Very strange -- unless you've configured mod_rewrite specifically for OJS, or you've got an unusual proxy or Apache setup, URLs shouldn't appear differently depending on where you're browsing from. Have you tried the base_url[...] settings suggested above?

You might try disabling mod_rewrite just to see if that's the problem.

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

Postby sean » Tue Jul 17, 2007 1:40 pm

I got this fixed by using the base_url[journals] settings. mod_rewrite is still enabled, so that wasn't the problem.

I had tried to use the base_url[journals] before, but I had also used base_url[index] as well and that resulted in a "Page not found", but using the base_url[journal] alone seems to work fine. Thanks for the assistance.
sean
 
Posts: 37
Joined: Thu Mar 15, 2007 3:25 pm

Postby asmecher » Tue Jul 17, 2007 1:54 pm

Hi Sean,

Glad to hear it's working. If you're able to shed light on the cause of the problem -- unusual proxy configuration? -- please post it here.

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


Return to OJS Technical Support

Who is online

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