Website was working fine and all of sudden its not working with HTTP 500 error

We are hosted at Godaddy and it was working fine until yesterday. All of sudden from today onwards, its not working and says “The www.kuwaitjournals.org page isn’t working www.kuwaitjournals.org is currently unable to handle this request. 500”

I contacted godaddy and they says everything from their end is fine and may be problem with the code. I haven’t changed or modified in the code during the recent days.

What could be the problem ? its running in the unix server.

Hi @sonbabyjohn,

Your server’s error log should contain more information. See also this FAQ entry.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Thank you for the immediate response, but i cannot find anything unusual.

Please find the below log file

[22-Mar-2015 11:24:10 UTC] PHP Warning: fopen(/home/e59278471/public_html/…/data/gdform_1427023450) [function.fopen]: failed to open stream: No such file or directory in /home/e59278471/public_html/gdform.php on line 12
[22-Mar-2015 11:24:10 UTC] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /home/e59278471/public_html/gdform.php on line 19
[22-Mar-2015 11:24:10 UTC] PHP Notice: Undefined variable: landing_page in /home/e59278471/public_html/gdform.php on line 20
[22-Mar-2015 11:24:33 UTC] PHP Warning: fopen(/home/e59278471/public_html/…/data/gdform_1427023473) [function.fopen]: failed to open stream: No such file or directory in /home/e59278471/public_html/gdform.php on line 12
[22-Mar-2015 11:24:33 UTC] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /home/e59278471/public_html/gdform.php on line 19
[22-Mar-2015 11:24:33 UTC] PHP Notice: Undefined variable: landing_page in /home/e59278471/public_html/gdform.php on line 20
[16-Apr-2016 02:31:07 America/Phoenix] PHP Notice: Undefined index: OS in /home/e59278471/public_html/mail_test.php on line 3525

Best Regards,

Johnson

Hi @sonbabyjohn,

Hmm, a 500 error generally means something gets logged. Without a message it’ll be difficult to debug.

I’d suggest checking whether your host has changed PHP versions. What version of OJS are you running?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Thank you for the reply and sorry for the trouble.

I had used wrong error file in my previous reply.

Kindly find the below correct error log file and help me to find a solution for it. I can send you the error file through email if you can send me your email id to sonbabyjohn@gmail.com

[14-Apr-2016 08:15:51 UTC] ojs2: 404 Not Found
[14-Apr-2016 08:50:25 UTC] ojs2: 404 Not Found
[14-Apr-2016 08:54:54 UTC] ojs2: 404 Not Found
[14-Apr-2016 09:03:47 UTC] NOTICE: Undefined offset: 0 (/home/e59278471/public_html/jer/pages/reviewer/SubmissionReviewHandler.inc.php:39)
[14-Apr-2016 09:44:06 UTC] ojs2: 404 Not Found
[14-Apr-2016 10:05:15 UTC] ojs2: 404 Not Found
[14-Apr-2016 10:10:11 UTC] ojs2: 404 Not Found
[14-Apr-2016 10:26:07 UTC] ojs2 has produced an error
Message: WARNING: array_unique() expects parameter 1 to be array, null given
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 79
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[14-Apr-2016 10:26:07 UTC] ojs2 has produced an error
Message: WARNING: array_map() [function.array-map]: Argument #2 should be an array
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 82
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[14-Apr-2016 10:44:34 UTC] ojs2: 404 Not Found
[14-Apr-2016 12:02:46 UTC] ojs2 has produced an error
Message: WARNING: array_unique() expects parameter 1 to be array, null given
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 79
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[14-Apr-2016 12:02:46 UTC] ojs2 has produced an error
Message: WARNING: array_map() [function.array-map]: Argument #2 should be an array
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 82
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[14-Apr-2016 12:19:27 UTC] ojs2: 404 Not Found
[14-Apr-2016 13:53:40 UTC] ojs2: 404 Not Found
[14-Apr-2016 14:07:46 UTC] ojs2: 404 Not Found
[14-Apr-2016 14:07:47 UTC] ojs2: 404 Not Found
[14-Apr-2016 18:39:12 UTC] ojs2 has produced an error
Message: WARNING: array_unique() expects parameter 1 to be array, null given
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 79
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[14-Apr-2016 18:39:12 UTC] ojs2 has produced an error
Message: WARNING: array_map() [function.array-map]: Argument #2 should be an array
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 82
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[14-Apr-2016 18:59:28 UTC] ojs2: 404 Not Found
[14-Apr-2016 22:52:25 UTC] ojs2 has produced an error
Message: WARNING: mime_content_type() [function.mime-content-type]: Empty filename or path
In file: /home/e59278471/public_html/jer/lib/pkp/classes/core/String.inc.php
At line: 376
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[14-Apr-2016 22:53:44 UTC] ojs2 has produced an error
Message: WARNING: array_unique() expects parameter 1 to be array, null given
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 79
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[14-Apr-2016 22:53:44 UTC] ojs2 has produced an error
Message: WARNING: array_map() [function.array-map]: Argument #2 should be an array
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 82
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[15-Apr-2016 01:41:05 UTC] ojs2 has produced an error
Message: WARNING: array_unique() expects parameter 1 to be array, null given
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 79
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[15-Apr-2016 01:41:05 UTC] ojs2 has produced an error
Message: WARNING: array_map() [function.array-map]: Argument #2 should be an array
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 82
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[15-Apr-2016 03:07:09 UTC] ojs2: 404 Not Found
[15-Apr-2016 06:02:55 UTC] ojs2 has produced an error
Message: WARNING: array_unique() expects parameter 1 to be array, null given
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 79
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[15-Apr-2016 06:02:55 UTC] ojs2 has produced an error
Message: WARNING: array_map() [function.array-map]: Argument #2 should be an array
In file: /home/e59278471/public_html/jer/lib/pkp/classes/user/InterestDAO.inc.php
At line: 82
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.3.29
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.45-cll-lve
[15-Apr-2016 08:03:39 UTC] ojs2: 404 Not Found

Best Regards,

Johnson K. Baby

Hi @sonbabyjohn,

I’ve sent you an email. Those warnings don’t look like something that should break the site, but it’s possible that something else is in the log.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I just sent you an email with error log. Please check it to figure out the issue.

Best Regards,

Johnson K. Baby

Hi @sonbabyjohn,

What version of OJS are you using? I see some error messages that seem to relate to an old version.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Yes, the version is bit old, its 2.3.8.0 (found from /jer/dbscripts/xml/version.xml).

Best Regards,

Johnson K. Baby

Hi @sonbabyjohn,

What’s likely happened is that your host has updated their PHP version to something that doesn’t like this old release of OJS. I would suggest upgrading your installation; that will likely fix the issue.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

But if we check the error.log, we can see the PHP Version: 5.3.29 from 26-Jan-2015.

Ok, if we upgrade to latest version, will it be ok ? as godaddy confirmed that they did not run any up gradation on the same.

Best Regards,

Johnson K. Baby

Hi @sonbabyjohn,

I can’t promise that an upgrade will fix the issue, but it’s very likely. There are fatal errors in your log that relate to functions that have been removed from more recent versions of PHP and are no longer invoked in recent releases of OJS.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Thanks a lot for the reply.

I will update to the recent version and let the forum know the outcome.

Thanks a lot.

Best Regards,
Johnson K. Baby

Hi @asmecher,

I just updated with the recent version (2.4.8), but the out was the same error (HTTP 500).

Steps followed are:

  • Download and decompress the package from the OJS web site
  • copied the config.inc.php provided in the new package
  • copied the following files and directories from old OJS
  • config.inc.php
  • public/
  • uploaded files directory (“files_dir” in config.inc.php)
  • Replaced the current OJS directory with the new OJS directory

Database did not updated

Again I used new config.inc.php and edited the following details

  • database setting
  • file setting
  • changed installed = on

the same result was returned.

Please help me on this …

Best Regards,
Johnson K. Baby

Hi @sonbabyjohn,

Can you check your error log again to see if there is anything new?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Thank you for the immediate reply.

Please find the below error log

[19-Apr-2016 18:32:36 UTC] Cannot read configuration file /home/e59278471/public_html/arun/config.inc.php

Only this is the information in the error log.

Kindly note that I kept installed = On in the config.inc.php.

Best Regards,
Johnson K. Baby

Hi @sonbabyjohn,

If that file does exist, then likely your file permissions are preventing OJS from reading it. Check the FAQ for an entry on file permissions and verify that the suggestions there apply to your installation.

Regards,
Alec Smecher
Public Knowledge Project Team