You are viewing the PKP Support Forum | PKP Home Wiki

OJS development under eclipse with pdt

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

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.

OJS development under eclipse with pdt

Postby Szdnez » Wed Dec 30, 2009 10:57 am


is it possible to run OJS under eclipse? I have installed the pdt-plugin and zend-debugger and created a new project with the ojs code. But when I run the index.php I always get the error message: Fatal error: Cannot redeclare class Locale in G:\OJS\eclipse\ojs\src\classes\i18n\Locale.inc.php on line 43. Can anyone tell me what is the problem? Do I need more libraries? Must I exclude some php code from the eclipse project?

Thanks a lot, Szdnez
Posts: 17
Joined: Tue Oct 20, 2009 12:48 pm

Re: OJS development under eclipse with pdt

Postby mcrider » Mon Jan 04, 2010 10:50 am

Hi Szdnez,

I think a couple people on the team use or did use eclipse as their development environment without any issues.. Its been some time since I've used eclipse myself, and never for PHP development, but are you trying to run OJS as an executable or as a web page? It'll need to run in the context of a web server to work. You could also turn on the show_stacktrace option in config.inc.php to provide more information on the error you are receiving.

Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: OJS development under eclipse with pdt

Postby jmacgreg » Mon Jan 04, 2010 12:52 pm

Hi all,

I'll also chime in with the following link, with information provided Florian, a developer on the team: http://pkp.sfu.ca/wiki/index.php/Config ... or_PHPUnit.

Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: OJS development under eclipse with pdt

Postby Szdnez » Mon Jan 04, 2010 3:22 pm


thanks for your advices. I have tried how it is described in link about PHPUnit (it is for web page). But the result is the same: Compile Error: /ojs/classes/i18n/Locale.inc.php line 43 - Cannot redeclare class Locale

After that I have tried it again to run it as web page and after a while it works :D
The problem was to find the right configuration in php.ini. Now it looks like this
Code: Select all

Thanks :-)
Posts: 17
Joined: Tue Oct 20, 2009 12:48 pm

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest