OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Blank Page After Install

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.

Blank Page After Install

Postby hehe » Wed Feb 19, 2014 1:47 am

Hey guys,

I installed OJS to my server maybe 10 times, and I was doing it without any problems. Now, however, I get a weird error. I get a blank page after I click the Install button.

There are no problems when I'm installing. The required permissions are all set and OJS tells me there are no problems in the install page.

This is my log:

Code: Select all
root@myserver:/var/www/ojs.mydomain.com/public_html# tail -f /var/log/apache2/error.log

[Wed Feb 19 10:34:49 2014] [error] [client 111.111.111.111] PHP Fatal error:  Call to undefined method FileCache::getCacheId() in /var/www/ojs.mydomain.com/public_html/classes/plugins/PluginSettingsDAO.inc.php on line 56

[Wed Feb 19 10:37:07 2014] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

[Wed Feb 19 10:37:07 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.5 configured -- resuming normal operations

[Wed Feb 19 10:37:23 2014] [notice] Graceful restart requested, doing restart

[Wed Feb 19 10:37:23 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

[Wed Feb 19 10:37:23 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.5 configured -- resuming normal operations

[Wed Feb 19 10:37:24 2014] [error] [client 111.111.111.111] PHP Fatal error:  Call to undefined method FileCache::getCacheId() in /var/www/ojs.mydomain.com/public_html/classes/plugins/PluginSettingsDAO.inc.php on line 56

[Wed Feb 19 10:38:42 2014] [error] [client 111.111.111.111] PHP Fatal error:  Call to undefined method FileCache::getCacheId() in /var/www/ojs.mydomain.com/public_html/classes/plugins/PluginSettingsDAO.inc.php on line 56


I did these before installing:

Code: Select all
scp ojs.tar.gz root@myserver:/var/www/path/to/ojs/installation/

tar xvf ojs.tar.gz

cd /var/www/path/to/ojs/installation/

chmod -R 777 cache/ plugins/ public/

chmod 777 config.inc.php

chown -R root:root .


What do you guys think my problem is?

Thank you very much.
hehe
 
Posts: 24
Joined: Tue Jan 07, 2014 2:59 am

Re: Blank Page After Install

Postby hehe » Wed Feb 19, 2014 2:21 am

After install, I see the "Installation Successful" page. It says you can login, register, etc... However, when I click on somewhere else, I got blank page.

Thanks in advance.

EDIT: This is my error message:

Code: Select all
Fatal error: Call to undefined method FileCache::getCacheId() in /var/www/ojs.mydomain.com/public_html/classes/plugins/PluginSettingsDAO.inc.php on line 56


EDIT:

After commenting out the 56th line, I get this error:

Code: Select all
Fatal error: Call to undefined method Validation::isLoggedIn() in /var/www/ojs.mydomain.com/public_html/lib/pkp/pages/login/PKPLoginHandler.inc.php on line 28


I hope I won't comment the whole system.
hehe
 
Posts: 24
Joined: Tue Jan 07, 2014 2:59 am

Re: Blank Page After Install

Postby JasonNugent » Wed Feb 19, 2014 6:33 am

Hi hehe,

You shouldn't have to comment anything. Also, are the steps you posted for moving your site posted in reverse order? I believe they are.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 895
Joined: Tue Jan 10, 2006 6:20 am

Re: Blank Page After Install

Postby hehe » Wed Feb 19, 2014 6:50 am

I don't want to move data from one server to another. There are lots of test records and they'll trouble me in the future.

So, I want to make a fresh install now. However, I can't. And I'm pretty sure the same errors will happen if I transfer the database and the other necessary stuff.

Waiting for your reply.
Thank you very much.
hehe
 
Posts: 24
Joined: Tue Jan 07, 2014 2:59 am

Re: Blank Page After Install

Postby JasonNugent » Wed Feb 19, 2014 6:58 am

Those methods definitely exist in those classes. Did anything change (PHP version, Apache version, cache system, etc) between old and new server? Did you try clearing your OJS data caches? Did you change any relevant file paths in your config.inc.php file? What version of OJS are you using?

Regards
Jason
JasonNugent
Site Admin
 
Posts: 895
Joined: Tue Jan 10, 2006 6:20 am

Re: Blank Page After Install

Postby hehe » Wed Feb 19, 2014 7:22 am

Since this is a fresh install, cache is empty - I guess.

I checked and it's not.

PHP, MySQL requirements met.

Working server's PHP version:

Code: Select all
root@e:~# php --version
PHP 5.3.10-1ubuntu3.9 with Suhosin-Patch (cli) (built: Dec 12 2013 04:24:43)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

root@e:~# mysql --version
mysql  Ver 14.14 Distrib 5.5.34, for debian-linux-gnu (i686) using readline 6.2


Problematic server's PHP & MySQL versions:

Code: Select all
root@R:~# php --version
PHP 5.4.6-1ubuntu1.5 (cli) (built: Dec 12 2013 04:41:00)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

root@R:~# mysql --version
mysql  Ver 14.14 Distrib 5.5.34, for debian-linux-gnu (i686) using readline 6.2


I'm using "OJS 2.4.3 (.tar.gz) (14 MB)" on both servers.

EDIT:

I deleted the cache folder and created a new one (Actually, I renamed the folder). Result is the same.

Here's what I did:

Code: Select all
mv cache/ cache2
mkdir cache
chmod -R 777 cache


And here's the error:

Code: Select all
Fatal error: Call to undefined method FileCache::getCacheId() in /var/www/ojs.mydomain.com/public_html/classes/plugins/PluginSettingsDAO.inc.php on line 56


I did not change
Code: Select all
config.inc.php
, but the
Code: Select all
base_url
is right.
Code: Select all
mod_rewrite
is enabled, but I'm not using RESTful URLs. I changed the values in
Code: Select all
base_url[index]
and
Code: Select all
base_url[journal]
, but the result is the same. So, I reverted it back.

Thank you very much.
Last edited by hehe on Wed Feb 19, 2014 7:29 am, edited 1 time in total.
hehe
 
Posts: 24
Joined: Tue Jan 07, 2014 2:59 am

Re: Blank Page After Install

Postby JasonNugent » Wed Feb 19, 2014 7:25 am

If you can, it might also be a good idea to normalize the PHP versions. I don't think there are problems with PHP 5.4 and OJS 2.4.3, but the Suhosin patch modifications can place some pretty heavy restrictions on PHP scripts for security reasons.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 895
Joined: Tue Jan 10, 2006 6:20 am

Re: Blank Page After Install

Postby hehe » Wed Feb 19, 2014 7:33 am

That's really weird. There are other scripts and applications in both servers. I can't change their versions. I'm pretty sure this'll make a bigger mess than this.

I better just change subdomain's A record.

I really couldn't understand the reason behind this.

Thank you very much.
hehe
 
Posts: 24
Joined: Tue Jan 07, 2014 2:59 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 3 guests