500 error shown after installation

Dear support team

I have some troubles in the installation of OJS 3.0.01. PHP error log is as follow:

[20-Dec-2016 01:04:55 Asia/Shanghai] PHP Warning: assert(): Assertion failed in /home/wwwroot/lamp/domain/ta.org/web/lib/pkp/classes/core/PKPApplication.inc.php on line 326
[20-Dec-2016 01:04:55 Asia/Shanghai] PHP Fatal error: Call to a member function getVersionString() on a non-object in /home/wwwroot/lamp/domain/ta.org/web/lib/pkp/classes/file/FileWrapper.inc.php on line 133

Hi @littlemeizhi,

It looks like your install didn’t complete. A common cause of this is a PHP execution time limit that interrupts the installer before it completes; this should be logged. I would suggest reinstalling, and making sure that the install form completes.

Regards,
Alec Smecher
Public Knowledge Project Team

Sir

I have changed max_execution_time from 20 to 1200. However, it still doesn’t work.

Hi @littlemeizhi,

Do you still encounter a timeout? This should be logged somewhere. If the installation still stops after 20 seconds even after you’ve increased the php.ini setting, ensure that you’ve restarted your web server in order to get it load the new configuration.

Regards,
Alec Smecher
Public Knowledge Project Team

sir,

thanks for your response. I didn’t know which document logs the installation information. I will try to find that again. After increasing, I re-started the apache again. which server need i re-start again.

another question is i set the path_info to be on in config.inc.php. If path_info is off, i cann’t start installation via screen.does that result in the failure of installation?

Hi @littlemeizhi,

Do you mean the disable_path_info setting in config.inc.php?

Regards,
Alec Smecher
Public Knowledge Project Team

yes.

the access log is too long, i paste some here:
121.237.188.169 - - [20/Dec/2016:10:33:39 +0800] “GET /js/controllers/tab/issueEntry/IssueEntryTabHandler.js HTTP/1.1” 304 -
121.237.188.169 - - [20/Dec/2016:10:33:39 +0800] “GET /js/controllers/tab/issueEntry/form/IssueEntryPublicationMetadataFormHandler.js HTTP/1.1” 304 -
121.237.188.169 - - [20/Dec/2016:10:33:39 +0800] “GET /js/pages/search/SearchFormHandler.js HTTP/1.1” 304 -
121.237.188.169 - - [20/Dec/2016:10:33:39 +0800] “GET /lib/pkp/js/lib/jquery/plugins/jquery.pkp.js HTTP/1.1” 304 -
121.237.188.169 - - [20/Dec/2016:10:33:39 +0800] “GET /templates/images/structure/logo.png HTTP/1.1” 304 -
121.237.188.169 - - [20/Dec/2016:10:33:39 +0800] “GET /templates/images/ojs_brand.png HTTP/1.1” 304 -
121.237.188.169 - - [20/Dec/2016:10:33:35 +0800] “GET /index.php?journal=index&component=page.page&op=css HTTP/1.1” 200 108478
121.237.188.169 - - [20/Dec/2016:10:33:39 +0800] “GET /lib/pkp/templates/images/pkp_brand.png HTTP/1.1” 304 -
121.237.188.169 - - [20/Dec/2016:10:33:40 +0800] “GET /lib/pkp/fonts/fontawesome/fontawesome-webfont.woff2?v=4.3.0 HTTP/1.1” 304 -
121.237.188.169 - - [20/Dec/2016:10:33:40 +0800] “GET /index.php?journal=index&component=page.page&op=user-nav-backend&_=1482201223387 HTTP/1.1” 200 970
121.237.188.169 - - [20/Dec/2016:10:34:46 +0800] “POST /index.php?journal=index&page=install&op=install HTTP/1.1” 500 523
121.237.188.169 - - [20/Dec/2016:10:35:28 +0800] “POST /index.php?journal=index&page=install&op=install HTTP/1.1” 302 -
121.237.188.169 - - [20/Dec/2016:10:35:29 +0800] “GET /index.php?journal=index&page=index HTTP/1.1” 500 523

Hi @littlemeizhi,

That looks like the access log, not the PHP error log.

If you’re not able to access the system without turning on the disable_path_info setting, it means that your server environment isn’t able to handle PATH_INFO-style URLs. It’s best to get this working in your PHP/web server environment, but if you’re not able to, then OJS can operate in a different way (with disable_path_info turned on) in order to avoid the requirement. However, URLs are considerably uglier this way and certain features (like the OAI interface) will operate slightly out of specification.

Regards,
Alec Smecher
Public Knowledge Project Team

sir

how can i turn on disable_path_info in my cloud serve. my server environment is: apache-2.4+mysql-generic-5.5+php-generic-5.3.

i tried to find the setting, but failed.

Hi @littlemeizhi,

I’m not sure if I’m answering your question, but to turn on disable_path_info, edit config.inc.php and find:

 disable_path_info = Off

Change it to…

disable_path_info = On

Regards,
Alec Smecher
Public Knowledge Project Team

i re-install the system.

the php error log turned to be:
[20-Dec-2016 11:18:07 Asia/Shanghai] PHP Warning: require_once(/home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/plugins/metadata/nlm30/filter/Nlm30CitationSchemaCitationOutputFormatFilter.inc.php): failed to open stream: No such file or directory in /home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/includes/functions.inc.php on line 25
[20-Dec-2016 11:18:07 Asia/Shanghai] PHP Fatal error: require_once(): Failed opening required ‘/home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/plugins/metadata/nlm30/filter/Nlm30CitationSchemaCitationOutputFormatFilter.inc.php’ (include_path=’.:/home/wwwroot/lamp/domain/advancesin.org/web/classes:/home/wwwroot/lamp/domain/advancesin.org/web/pages:/home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp:/home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/classes:/home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/pages:/home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/lib/adodb:/home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/lib/phputf8:/home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/lib/pqp/classes:/home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/lib/smarty:.:’) in /home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/includes/functions.inc.php on line 25

sir,

many thanks for your patient response.

copied that and i have re-installed the system but 500 error still exists

Hi @littlemeizhi,

It looks like lib/pkp/plugins/metadata/nlm30/filter/Nlm30CitationSchemaCitationOutputFormatFilter.inc.php was missing. Did you add the missing file to your installation?

I’m wondering why this file would be missing – if it’s missing, others may be too, and missing files can be difficult to debug. Have you checked your PHP error log again since adding the file?

Regards,
Alec Smecher
Public Knowledge Project Team

thank you sir.

after uploading that document, the php error log turned to be:

[20-Dec-2016 11:27:10 Asia/Shanghai] PHP Warning: assert(): Assertion failed in /home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/classes/core/PKPApplication.inc.php on line 326
[20-Dec-2016 11:27:10 Asia/Shanghai] PHP Fatal error: Call to a member function getVersionString() on a non-object in /home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 230
[20-Dec-2016 11:27:10 Asia/Shanghai] PHP Warning: assert(): Assertion failed in /home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/classes/core/PKPApplication.inc.php on line 326
[20-Dec-2016 11:27:10 Asia/Shanghai] PHP Fatal error: Call to a member function getVersionString() on a non-object in /home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/classes/file/FileWrapper.inc.php on line 133

OMG, which is the same as before…

I have changed the max_execution_time from 20 to 1200. need i re-install again?

Hi @littlemeizhi,

The missing file probably prevented the installation process from completing. I would suggest performing the installation again with the missing file in place, and checking the log after doing so to see whether it reports anything else.

If it’s possible that you’re missing other files, I’d double-check the method you used to load files onto the system.

Regards,
Alec Smecher
Public Knowledge Project Team

thank you sir.

i will try again.i download the compressed files to my server from your server online and release the compressed files online.

sir,

it sitll doesn’t work. but the error log changed,

[20-Dec-2016 11:45:08 Asia/Shanghai] PHP Fatal error: Call to undefined method TemplateBasedFilter::TemplateBasedFilter() in /home/wwwroot/lamp/domain/advancesin.org/web/lib/pkp/plugins/metadata/nlm30/filter/Nlm30CitationSchemaCitationOutputFormatFilter.inc.php on line 33

Hi @littlemeizhi,

What does line 33 of lib/pkp/plugins/metadata/nlm30/filter/Nlm30CitationSchemaCitationOutputFormatFilter.inc.php look like?

Regards,
Alec Smecher
Public Knowledge Project Team