The installation does not work, no funciona la instalacion,

Greetings I am trying to install in an external web server and after the decompression, the permission to the suggested folders and the creation of the external directory, when I enter the navigation it says: http error 500

Saludos estoy tratando de instalar en un servidor web externo y luego de la descompresion, el permiso a las carpetas sugeridas y la creacion del directorio externo, cuando ingreso a la navegacion dice: http error 500

Hi @charlie

If you’re getting a 500 error, there should be a detailed error message in Apache’s error log.

Cheers,

[14-Jun-2019 01:28:12 UTC] PHP Parse error: syntax error, unexpected ‘[’ in /home1/upacifico/public_html/ojs/lib/pkp/classes/core/PKPString.inc.php on line 723

What version of OJS, and what version of PHP?

Cheers
Jason

====================================
=== Open Journal Systems
=== The Public Knowledge Project
=== Version: 2.4.8-5
=== GIT tag: ojs-2_4_8-5
=== Release date: May 23, 2019
====================================

PHP Version 5.5.38

help me, please…

ctgrahan can you help me?

That is a bug in this line:

It should read:

                $str = PKPString::regexp_replace_callback('~&#([0-9]+);~', function ($matches) { return PKPString::code2utf($matches[0]); }, $str);

(with a dollar sign before matches[0])

1 Like

ready!!! it was solved with your recommendation, just missing that $ in the code. thank you.