I have an install of OJS that must use URL parameters instead of PATH_INFO (disable_path_info=On
) because I need to use mod_rewrite to rewrite the URL for access using various domain names for different journals. It seems, however, that saving static pages won't work with this setup. This persists even when I disable mod_rewrite so that the URL is untouched.
My setup is as follows:
one subdomain (ojs.mydomain.net) for us to manage journals.
one domain (journal1.com) to access one journal
one domain (journal2.com) to access another journalmod_rewrite
rewrites the url for journal1.com and journal2.com so that any parameter indicating the journal is rewritten to have the correct journal id (i.e. to ensure that it is not possible to access journal2 via journal1.com and vice versa).
We do all our maintenance and journal management using ojs.mydomain.net, and mod_rewrite does not touch any URLs for this domain. When attempting to edit a static page (e.g.
- Code: Select all
) the edit can be carried out, but clicking the save button returns me to the plugin management page. This is the case when mod_rewrite is enabled and when it is disabled by completely removing the .htaccess file. Having investigated the plugin a little, it is clear that the plugin's manage()
method is not being called for the save, either with or without mod_rewrite in operation.
The static page edit form's action attribute is
- Code: Select all
which looks correct to me.
As I say, I am having this problem regardless of whether mod_rewrite is in effect, and it only occurs when using URL parameters instead of PATH_INFO. Has anyone else come across this problem or have any hints on how to circumvent it? My current workaround is to revert to using PATH_INFO and disabling the individual journal domains while a colleague edits the static pages, but this is far from ideal.
The domains stated here are not the actual domains, they are illustrative.