OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



disable_path_info=ON: problem with trailing question-mark in

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.

disable_path_info=ON: problem with trailing question-mark in

Postby istoyanov » Mon Jan 21, 2008 6:35 am

Normally, when
Code: Select all
disable_path_info = Off
and
Code: Select all
base_url[myjournal] = http://BASEURL/myjournal
the URLs associated with myjournal that display in browser look as expected:
Code: Select all
http://BASEURL/myjournal
On the other hand, when I have, or rather need to set
Code: Select all
disable_path_info = On
and the same base_url setting, the mentioned URLs get an empty query string (or just a question-mark?) appended -- i.e. the top URL gets
Code: Select all
http://BASEURL/myjournal?


I have tried to get rid of the superfluous "?" via mod_rewrite, but to no avail. Hence my question: is there a way to remove the trailing question-mark from base_url? I suppose that it was added with purpose, but I may be wrong and then we have a bug here...

Any hints are greatly welcome!
istoyanov
 
Posts: 44
Joined: Mon Oct 29, 2007 6:04 am

Re: disable_path_info=ON: problem with trailing question-mark in

Postby smiri » Mon Jan 21, 2008 10:57 pm

Hi There,

The "?" at the end of a php page is needed to pass in some parameters to that page. If you turn disable_path_info to On, the pages look like this:

http://BASEURL/myjournal/index.php?conference=index&schedConf=index&page=login

In this case the "?" means it's the end of the page name and everything after it are the parameters that are passed in. So you can't remove the "?" as the script will not work anymore if you do so.

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

Re: disable_path_info=ON: problem with trailing question-mark in

Postby istoyanov » Tue Jan 22, 2008 1:49 am

Thanks for the reply, Siavash!

I know that the "?" is supposed to be followed by a query-string, but note that I have also modified the base_url variable (used to override the base URLs used by OJS) -- URLs (including the trailing "?") shouldn't be of any "real" use other than display then, a rewrite is supposed to be working "under the hood". Or am I wrong?
istoyanov
 
Posts: 44
Joined: Mon Oct 29, 2007 6:04 am

Re: disable_path_info=ON: problem with trailing question-mark in

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

Hi istoyanov,

Was this problem ever solved? If yes, would you mind telling us how you did it so other users can benefit from it.

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


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests