OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OJS Support FAQ: Read this first!

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.

OJS Support FAQ: Read this first!

Postby asmecher » Tue Nov 20, 2007 12:51 pm

The FAQ has moved: you can find it at http://pkp.sfu.ca/wiki/index.php/PKP_Fr ... _Questions.
asmecher
 
Posts: 8426
Joined: Wed Aug 10, 2005 12:56 pm

Re: OJS Support FAQ: Read this first!

Postby GennadyK » Wed Jan 16, 2008 12:32 pm

Hi Alec,

This OJS Support FAQ is very good thing, but in my opinion it's better to have it on the support page (the one that need to be created and name of the menu will change to just "Support")for OJS divided by sections then at the end of each section it should say "If you are not found the answer pls proceed to the support forum".
Anyway just want to say few words about my PHP CLI importExport.php NativeImportExportPlugin experience. It's not easy to make it work - documentation isn't very complete.
There is no explanation what is journal_path, issue_id and where to get one from usage. And there is no samples with explanation. All things you need to guess. Also import is kind of slow until you change process priority for php.exe to "Above Normal".
Link to short and good manual how to work with PHP CLI will be appreciated. And suggestions where to put issue.xml and from where to run CLI command.
We found that we need to run it from C:\PHP, where php.exe and all dlls are located and issue.xml should be in the same folder:

C:\PHP>c:\php\php.exe -c C:\OJS\tools\php_cli.ini -f C:\OJS\tools\importExport.php NativeImportExportPlugin import issue1.xml Path user_name issue 1

Path is journal path from Home > User > Site Administration > Journals, same as you have in the URL just after index.php/
user_name - name of existing user for the journal

It works only when we change code in the tools\includes\cliTool.inc.php:
from
require('includes/driver.inc.php');
to
require(dirname(dirname(dirname(__FILE__))).'/includes/driver.inc.php');

Hope this will be helpful for some Windows users.
Thank you,
Gennady
GennadyK
 
Posts: 19
Joined: Tue Apr 24, 2007 9:16 am


Return to OJS Technical Support

Who is online

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