OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Fatal Error on Install

Open Harvester Systems support questions and answers, bug reports, and development issues.

Moderators: jmacgreg, michael, 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.

Fatal Error on Install

Postby davidWalker » Wed Jan 06, 2010 2:45 pm

Hi all,

Just trying to get the Harvester installed, and ran into this error:

Fatal error: Call to a member function getVersionString() on a non-object in F:\htdocs\harvester\lib\pkp\classes\template\PKPTemplateManager.inc.php on line 139

This same problem was reported by 'Arf' for OJS:

viewtopic.php?f=8&t=5096

But his solution (upgrading to the latest version of OJS) won't help me, since I've got the latest Harvester download.

My specs:

Windows 2003
Apache 2.2.13
MySQL 5.0.41
PHP 5.2.10

The steps I did:

Downloaded and unzipped OAI Harvester 2.3.0 (.tar.gz).

Uploaded to server.

Renamed the directory ‘harvester’.

Went to web install.

It says that ‘cache/t_cache’ and ‘cache/_db’ are not writeable, which is true. But, more importantly, they don’t exist. So created those manually. Refresh web install page, all is good.

Kept locale and security settings as-is.

Filled in the admin user info.

Filled in password for db user.

Hit ‘manual install’.

Copied the SQL text to a file. Note: It would be useful if the SQL had a ‘USE harvester2;’ statement after it creates the schema.

Run the SQL, all goes well.

Go back to the “login” link from the web install.

Get the error “DB Error: Access denied for user 'harvester2'@'localhost' (using password: YES)”. Makes sense, I didn’t grant privileges for this user. But what to grant?

Run: “GRANT SELECT, INSERT, DELETE, UPDATE ON harvester2.* TO 'harvester2'@'localhost' IDENTIFIED BY 'not-what-I-actually-typed';”

Go back to the “login” link from the web install.

Get this error: “Fatal error: Call to a member function getVersionString() on a non-object in F:\htdocs\harvester\lib\pkp\classes\template\PKPTemplateManager.inc.php on line 139”

Any help appreciated. Thanks!
davidWalker
 
Posts: 6
Joined: Wed Jan 06, 2010 2:24 pm

Re: Fatal Error on Install

Postby asmecher » Wed Jan 06, 2010 3:06 pm

Hi davidWalker,

Are there entries in the "site" and "versions" tables?

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

Re: Fatal Error on Install

Postby davidWalker » Wed Jan 06, 2010 3:19 pm

Hi Alec,

There are now. I started the web install over again, and put in my MySQL root user. That got me through the install process.

For obvious reasons, I'd prefer to user a different db user. But can't figure out what permissions that user will need. I'm looking through the code now, but any short-cuts would be appreciated.
davidWalker
 
Posts: 6
Joined: Wed Jan 06, 2010 2:24 pm

Re: Fatal Error on Install

Postby davidWalker » Wed Jan 06, 2010 3:34 pm

I guess I needed to grant 'CREATE' privileges as well. That may have even been in the instruction. ;-)
davidWalker
 
Posts: 6
Joined: Wed Jan 06, 2010 2:24 pm

Re: Fatal Error on Install

Postby asmecher » Wed Jan 06, 2010 4:34 pm

Hi davidWalker,

I tend to do a GRANT ALL on the database in question, i.e.:
Code: Select all
CREATE DATABASE myDatabase DEFAULT CHARACTER SET utf8;
GRANT ALL ON myDatabase.* TO myUser@localhost IDENTIFIED BY 'myPassword';
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 0 guests