OJS 3.1 blank index page

Hi,

I upgraded one of our OJS 2.4.8 sites to OJS 3.1, the site was running fine for a couple of weeks.
Al of a sudden when I try and access the site this morning, I just get a blank page. No browser errors at all.

I had a look at the error log and all I get in there is the following, and im not sure where to begin to troubleshoot this?

[Tue Mar 27 09:49:50.809982 2018] [:error] [pid 26566] [client 216.244.66.238:47066] ojs2: 404 Not Found
[Tue Mar 27 09:49:53.632311 2018] [:error] [pid 26547] [client 216.244.66.238:55914] ojs2: 404 Not Found
[Tue Mar 27 09:50:17.901699 2018] [:error] [pid 26547] [client 216.244.66.238:50504] ojs2: 404 Not Found
[Tue Mar 27 09:50:21.186078 2018] [:error] [pid 26565] [client 216.244.66.238:33612] ojs2: 404 Not Found
[Tue Mar 27 09:51:10.982236 2018] [:error] [pid 26540] [client 207.46.13.5:20519] ojs2: 404 Not Found
[Tue Mar 27 09:51:50.564913 2018] [:error] [pid 26768] [client 216.244.66.238:56428] ojs2: 404 Not Found
[Tue Mar 27 09:53:54.464938 2018] [:error] [pid 26764] [client 207.46.13.5:10307] ojs2: 404 Not Found
[Tue Mar 27 09:55:40.242748 2018] [:error] [pid 26767] [client 54.36.148.192:50030] ojs2: 404 Not Found
[Tue Mar 27 09:58:59.886800 2018] [:error] [pid 26764] [client 54.36.148.74:27048] ojs2: 404 Not Found
[Tue Mar 27 09:59:20.006332 2018] [:error] [pid 26823] [client 207.46.13.5:19517] ojs2: 404 Not Found
[Tue Mar 27 10:00:14.889845 2018] [:error] [pid 26837] [client 141.8.183.6:58658] ojs2: 404 Not Found
[Tue Mar 27 10:01:11.187769 2018] [:error] [pid 26853] [client 123.125.71.117:38401] ojs2: 404 Not Found
[Tue Mar 27 10:03:28.921487 2018] [:error] [pid 26813] [client 66.249.75.128:39476] ojs2: 404 Not Found
[Tue Mar 27 10:03:32.545319 2018] [:error] [pid 26764] [client 66.249.75.130:61890] ojs2: 404 Not Found
[Tue Mar 27 10:04:12.941023 2018] [:error] [pid 26852] [client 66.249.69.8:40669] ojs2: 404 Not Found
[Tue Mar 27 10:05:33.733079 2018] [:error] [pid 26868] [client 66.249.69.4:50479] ojs2: 404 Not Found
[Tue Mar 27 10:19:59.868413 2018] [:error] [pid 26813] [client 216.244.66.238:55426] ojs2: 404 Not Found
[Tue Mar 27 10:20:03.830861 2018] [:error] [pid 26874] [client 54.36.149.54:44952] ojs2: 404 Not Found
[Tue Mar 27 10:21:26.704515 2018] [:error] [pid 26984] [client 216.244.66.238:36782] ojs2: 404 Not Found

Regards
Nardus

The errors indicate that, whatever the users where trying to access, was not on the server. Could you double-check your directories and files haven’t accidentally been deleted or removed?

Also, if you use multiple virtual hosts on your machine, for example using name based virtual hosts where Apache determines the document root depending on the url/domain being called, you might like to check your server configuration (in case your users are being routed somewhere else by the server).

Thanks you for the reply.

Apache is routing the request to the correct files, if I dump data in index.php it is printed out to the screen.
All the files and directories are present. I have turned on debug in the config file but still blank screen.
Is there a way I can find out which file it is trying to access that does not exist?

Regards

Have you tried to empty the template cache in cache/t_compile?

Awesome thank you very much, that fixed the blank screen issue. I am now only getting the raw page without any css applied?

have you tried to empty the css files under cache folder?

If you have a custom theme, there could be an error in one of the less files?

I don’t have a custom theme no, the standard 3.1 theme.
I cleared the css files inder cache folder but still not working.

If I log into the site everything works 100% and the styling is applied correctly as well…

for some reason your css file is not being loaded. If you look at the page source and click on the link of the css file, do you see something?

After clearing cache do you have something in your error log?

That’s strange, I cannot find any reference to a css file in the source

is the default theme enabled in Settings => Website => Plugins? Maybe try disabling/enabling it?
It could be a good idea to empty the whole ojs cache as well, meaning all php and css files in cache and the php files in t_compile folder.

Hard to say what exactly is going on.

1 Like

Thank you very much, I ended up clearing the entire cache folder, and that solved the issue.

1 Like