OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



fatal error keeps coming back

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

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. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

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 OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

fatal error keeps coming back

Postby hda.lib@cbs.dk » Tue May 27, 2008 4:48 am

We only have OCS (OCS 2.0) for test, but almost every time I access the system I get the error:
Fatal error: Class 'Config' not found in /www/ocs/includes/functions.inc.php on line 105

The problem is easily solved by restarting the http server, but it is a little worrying......

At the moment we also have a test insatllation of OCS 2,1 but right now the page is completely blank.....

Restating the http server also solves this problem.

Any ideas ?
hda.lib@cbs.dk
 
Posts: 16
Joined: Tue May 06, 2008 1:28 am

Re: fatal error keeps coming back

Postby asmecher » Tue May 27, 2008 7:06 am

Hi hda.lib@cbs.dk,

Have you checked your web server's error log to see if anything shows up there? It sounds like a peculiarity of your PHP or web server integration. You might try increasing your PHP memory_limit to see if that fixes the problem.

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

Re: fatal error keeps coming back

Postby hda.lib@cbs.dk » Wed Jun 04, 2008 3:27 am

Well the problem keeps coming back.
On OCS 2.1 the page is completely blank (also blank source code).
We have 2 GB memory so that should be enough

We tried to insert the files that functions.inc.php were missing:
require_once("classes/core/Core.inc.php");

require_once("classes/config/Config.inc.php");

require_once("classes/config/ConfigParser.inc.php");
But we still get php error:
PHP Fatal error: Class 'ConfigParser' not found in /www/ocs2/classes/config/Config.inc.php on line 56

[04-Jun-2008 09:01:00] PHP Fatal error: Class 'Config' not found in /www/ocs/includes/functions.inc.php on line 105

[04-Jun-2008 09:01:08] PHP Fatal error: Class 'ConfigParser' not found in /www/ocs2/classes/config/Config.inc.php on line 56

[04-Jun-2008 11:04:55] PHP Fatal error: Class 'ConfigParser' not found in /www/ocs2/classes/config/Config.inc.php on line 56

[04-Jun-2008 11:47:06] PHP Fatal error: Class 'ConfigParser' not found in /www/ocs2/classes/config/Config.inc.php on line 56

This is our php version:
php-pdo-5.2.5-1.rh5Server

php-mysql-5.2.5-1.rh5Server

php-pdo-mysql-5.2.5-1.rh5Server

php-5.2.5-1.rh5Server

php-ldap-5.2.5-1.rh5Server

mod_php-5.2.5-1.rh5Server

Any ideas ?
hda.lib@cbs.dk
 
Posts: 16
Joined: Tue May 06, 2008 1:28 am

Re: fatal error keeps coming back

Postby asmecher » Wed Jun 04, 2008 9:11 am

Hi hda.lib@cbs.dk,

I think OCS is having trouble reporting an error message -- you can try applying the patch at http://pkp.sfu.ca/cvs/cvsweb.cgi/ocs2/includes/functions.inc.php.diff?r1=1.5;r2=1.6, which may result in a more specific error message, but I suspect the problem is something like a missing file when the system was installed.

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

Re: fatal error keeps coming back

Postby hda.lib@cbs.dk » Fri Jun 13, 2008 3:06 am

Thanks - this seems to have solved the problem - 5 days without any problems...
hda.lib@cbs.dk
 
Posts: 16
Joined: Tue May 06, 2008 1:28 am

Re: fatal error keeps coming back

Postby hda.lib@cbs.dk » Mon Jun 16, 2008 1:53 am

That was a little early - this morning the problem was back. same thing:
ocs. 2.0 reports: Fatal error: Class 'Config' not found in /www/ocs/includes/functions.inc.php on line 105
ocs2.1: a blank page
Both version run on the same server
These are the error messages:
PHP Warning: require_once(config/ConfigParser.inc.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /www/ocs2/includes/functions.inc.php on line 54
[16-Jun-2008 10:47:04] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'config/ConfigParser.inc.php' (include_path='.:/usr/share/pear') in /www/ocs2/includes/functions.inc.php on line 54
[16-Jun-2008 10:47:19] PHP Fatal error: Class 'Config' not found in /www/ocs/includes/functions.inc.php on line 105
[16-Jun-2008 10:48:54] PHP Fatal error: Class 'Config' not found in /www/ocs/includes/functions.inc.php on line 105
Any ideas?
hda.lib@cbs.dk
 
Posts: 16
Joined: Tue May 06, 2008 1:28 am

Re: fatal error keeps coming back

Postby asmecher » Mon Jun 16, 2008 8:56 am

Hi hda.lib@cbs.dk,

Hmm, the odd thing about this is that it's intermittent. Do you see any pattern in how it's happening, i.e. does it always appear on one page but not another, or does it seem to be totally random?

What do lines 54 and 105 of includes/functions.inc.php look like?

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


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 6 guests