OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



2.0 installion problem

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

2.0 installion problem

Postby osborne » Fri May 20, 2005 1:50 pm

When I try to open
ojs-2.0/index.php
(the first step) I get:

Fatal error: Failed opening required 'pages/install/InstallHandler.inc.php' (include_path='/home1/htdocs/osborne/te/ojs-2.0/includes:/home1/htdocs/osborne/te/ojs-2.0/classes:/home1/htdocs/osborne/te/ojs-2.0/pages:/home1/htdocs/osborne/te/ojs-2.0/lib:/home1/htdocs/osborne/te/ojs-2.0/lib/smarty:') in /home1/htdocs/osborne/te/ojs-2.0/includes/functions.inc.php on line 21

(I've omitted some other directories in my include path that are irrelevant to OJS.)

The file
ojs-2.0/pages/install/InstallHandler.inc.php
exists on my server (and is world readable).
osborne
 
Posts: 77
Joined: Mon Jun 07, 2004 1:24 pm
Location: Toronto, Canada

Postby kevin » Fri May 20, 2005 7:51 pm

Have you overridden the include_path setting in php.ini to not include "."?
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm

Postby osborne » Tue May 24, 2005 1:33 pm

OK, that's the explanation. I should have thought of it ...

But now I have a different problem:

The installation program says that
"The public files directory does not exist or is not writeable."
although the directory I specify is in fact (group and world) writeable. At least, the listing for the directory says
drwxrwxrwx
At the top of the page on which the error is reported, there are some PHP warnings:

Warning: Undefined property: currentNode in /home1/htdocs/osborne/te/ojs-2.0/classes/xml/XMLParserDOMHandler.inc.php on line 44

Warning: Cannot add header information - headers already sent by (output started at /home1/htdocs/osborne/te/ojs-2.0/classes/xml/XMLParserDOMHandler.inc.php:44) in /home1/htdocs/osborne/te/ojs-2.0/classes/template/TemplateManager.inc.php on line 152

Incidentally, it would seem that the text under the heading "Database settings", which is a copy of the text under the previous heading, is not appropriate.
osborne
 
Posts: 77
Joined: Mon Jun 07, 2004 1:24 pm
Location: Toronto, Canada

Postby Guest » Tue May 24, 2005 7:05 pm

OK, forget the middle part of my previous post. I confused the "public files directory" with the "directory for uploaded files". But ....... now I get

Warning: Undefined property: currentNode in /home1/htdocs/osborne/te/ojs-2.0/classes/xml/XMLParserDOMHandler.inc.php on line 44

Fatal error: Call to undefined function: file_get_contents() in /home1/htdocs/osborne/te/ojs-2.0/lib/adodb/adodb-xmlschema.inc.php on line 1739

when I press the button to install the system.
Guest
 

Postby kevin » Tue May 24, 2005 8:23 pm

It looks like ADOdb (a third-party library used by OJS) is using a function that is only available on PHP >= 4.3.0.

If you want try to fixing it yourself without upgrading PHP you could change every instance of

Code: Select all
file_get_contents(SOMETHING)


to

Code: Select all
join('', file(SOMETHING))


(although I can't guarantee there are no other compatibility problems -- we have not done any recent testing on anything earlier than PHP 4.3)
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm

Postby osborne » Fri May 27, 2005 8:04 pm

Thanks! (Yes, using PHP 4.3 solves the problem.)

A couple of other questions:

- The installation instructions say to make some directories and files "writeable". It's certainly sufficient that they are world writeable, but is group writeable enough?

- The installation script gives the following option under "File settings": "Do not create subdirectories". I couldn't see any explanation of this option. (Subdirectories of what? Why might doing so be good/bad?)
osborne
 
Posts: 77
Joined: Mon Jun 07, 2004 1:24 pm
Location: Toronto, Canada

Postby kevin » Sat May 28, 2005 1:24 am

- The installation instructions say to make some directories and files "writeable". It's certainly sufficient that they are world writeable, but is group writeable enough?


That depends on what group owns the directory. If your Apache server runs under apache:apache, then it is sufficient for the directory to be user-writeable with owner apache and/or group-writeable with group apache.

- The installation script gives the following option under "File settings": "Do not create subdirectories". I couldn't see any explanation of this option. (Subdirectories of what? Why might doing so be good/bad?)


That creates various required directories under the "public" and "files_dir" directories for site/journal files. There's no reason to select "Do not create" unless you intend to do a manual install.
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm

Postby Guest » Sat May 28, 2005 11:30 am

Thanks---that's helpful.
Guest
 


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest