Problems after upgrading

After upgrading to 3.3.0.10 (and now to 3.3.0.11) OJS doesn’t show the info of the articles, but everyting is shown in backend, I tried using other themes, but I got the same problem, here is an example: https://cuadernos.cuadernosdejazz.es/index.php/cdj/issue/view/138

Any ideas?

Thanks !

Hi @SistemasOnline

This looks like a fatal error is being generated, and the template is being cut off. Please look in your error log for fatal errors and/or upgrade your theme for 3.3.0.11 compatibility.

Best
Jason

I tried installing other themes but I have the same problem, the last lines in the error log are:

[Tue Jul 12 12:44:25.087177 2022] [proxy_fcgi:error] [pid 3434466:tid 139718790801152] [client 185.16.208.46:0] AH01071: Got error ‘PHP message: PHP Warning: Zend OPcache API is restricted by “restrict_api” configuration directive in /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/cache/FileCache.inc.php on line 59PHP message: PHP Warning: Zend OPcache API is restricted by “restrict_api” configuration directive in /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/cache/FileCache.inc.php on line 59PHP message: PHP Warning: Zend OPcache API is restricted by “restrict_api” configuration directive in /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/cache/FileCache.inc.php on line 59PHP message: PHP Warning: Zend OPcache API is restricted by “restrict_api” configuration directive in /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/cache/FileCache.inc.php on line 59’, referer: https://cuadernos.cuadernosdejazz.es/index.php/index/admin/wizard/1

[Tue Jul 12 12:44:31.383568 2022] [proxy_fcgi:error] [pid 3434466:tid 139718666725120] [client 185.16.208.46:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given in /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php:39\nStack trace:\n#0 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php(39): htmlspecialchars(Array, 3, ‘ISO-8859-1’, true)\n#1 /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/template/PKPTemplateManager.inc.php(1784): smarty_modifier_escape(Array, ‘html’, ‘ISO-8859-1’)\n#2 /home/cuadernoscuadernosdejazz/www/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^7cf1cd52b8ba8108de77f197078de34b733dd394_0.app.frontendobjectsarticlesum.php(63): PKPTemplateManager->smartyEscape(Array)\n#3 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_62cd508f5cdc32_15997777(Object(Smarty_Internal_Template))\n#4 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor…’, referer: https://cuadernos.cuadernosdejazz.es/

:roll_eyes:

I have faced similar problem before.
This method solved my problem:

Can you try this?

I’ve done it but doesn’t work:

[Wed Jul 13 11:23:07.328180 2022] [proxy_fcgi:error] [pid 57147:tid 139718799193856] [client 185.16.208.46:0] AH01071: Got error ‘PHP message: PHP Warning: Zend OPcache API is restricted by “restrict_api” configuration directive in /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/cache/FileCache.inc.php on line 59’
[Wed Jul 13 11:23:07.670638 2022] [proxy_fcgi:error] [pid 57147:tid 139718389896960] [client 185.16.208.46:0] AH01071: Got error ‘PHP message: PHP Warning: Zend OPcache API is restricted by “restrict_api” configuration directive in /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/cache/FileCache.inc.php on line 59’, referer: https://cuadernos.cuadernosdejazz.es/
[Wed Jul 13 11:23:07.685354 2022] [proxy_fcgi:error] [pid 57147:tid 139718415075072] [client 185.16.208.46:0] AH01071: Got error ‘PHP message: PHP Warning: Zend OPcache API is restricted by “restrict_api” configuration directive in /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/cache/FileCache.inc.php on line 59’, referer: https://cuadernos.cuadernosdejazz.es/
[Wed Jul 13 11:23:12.171179 2022] [proxy_fcgi:error] [pid 57147:tid 139717861418752] [client 185.16.208.46:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given in /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php:39\nStack trace:\n#0 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php(39): htmlspecialchars(Array, 3, ‘ISO-8859-1’, true)\n#1 /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/template/PKPTemplateManager.inc.php(1784): smarty_modifier_escape(Array, ‘html’, ‘ISO-8859-1’)\n#2 /home/cuadernoscuadernosdejazz/www/cache/t_compile/00a0a0910209607cb33eb0fe6474f30ed7399ed7^7cf1cd52b8ba8108de77f197078de34b733dd394_0.app.frontendobjectsarticlesum.php(63): PKPTemplateManager->smartyEscape(Array)\n#3 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_62cd508f5cdc32_15997777(Object(Smarty_Internal_Template))\n#4 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor…’, referer: https://cuadernos.cuadernosdejazz.es/
[Wed Jul 13 11:23:15.818225 2022] [proxy_fcgi:error] [pid 57147:tid 139717886596864] [client 185.16.208.46:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given in /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php:39\nStack trace:\n#0 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php(39): htmlspecialchars(Array, 3, ‘ISO-8859-1’, true)\n#1 /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/template/PKPTemplateManager.inc.php(1784): smarty_modifier_escape(Array, ‘html’, ‘ISO-8859-1’)\n#2 /home/cuadernoscuadernosdejazz/www/cache/t_compile/e26d2de610226743d9feff244fb14ef53700227f^7cf1cd52b8ba8108de77f197078de34b733dd394_0.app.frontendobjectsarticlesum.php(63): PKPTemplateManager->smartyEscape(Array)\n#3 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_62cd53f24204b9_47741105(Object(Smarty_Internal_Template))\n#4 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor…’, referer: https://cuadernos.cuadernosdejazz.es/index.php/cdj
[Wed Jul 13 11:23:19.764582 2022] [proxy_fcgi:error] [pid 57147:tid 139718423467776] [client 185.16.208.46:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string in /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/i18n/LocaleFile.inc.php:102\nStack trace:\n#0 /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/i18n/LocaleFile.inc.php(102): str_replace(’{$copyrightHold…‘, Array, ‘Derechos de aut…’)\n#1 /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/i18n/PKPLocale.inc.php(266): LocaleFile->translate(‘copyrightHolder’, Array)\n#2 /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/i18n/PKPLocale.inc.php(922): PKPLocale::translate(‘submission.copy…’, Array, ‘es_ES’, Array)\n#3 /home/cuadernoscuadernosdejazz/www/plugins/generic/dublinCoreMeta/DublinCoreMetaPlugin.inc.php(114): __(‘submission.copy…’, Array)\n#4 /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/plugins/HookRegistry.inc.php(107): DublinCoreMetaPlugin->articleView(‘ArticleHandler:…’, Array)\n#5 /home/cuadernoscuadernosdejazz/www/pages/article/Article…’, referer: https://cuadernos.cuadernosdejazz.es/index.php/cdj/issue/view/138
[Wed Jul 13 11:23:21.493223 2022] [proxy_fcgi:error] [pid 57147:tid 139717265831680] [client 185.16.208.46:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given in /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php:39\nStack trace:\n#0 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php(39): htmlspecialchars(Array, 3, ‘ISO-8859-1’, true)\n#1 /home/cuadernoscuadernosdejazz/www/lib/pkp/classes/template/PKPTemplateManager.inc.php(1784): smarty_modifier_escape(Array, ‘html’, ‘ISO-8859-1’)\n#2 /home/cuadernoscuadernosdejazz/www/cache/t_compile/e26d2de610226743d9feff244fb14ef53700227f^7cf1cd52b8ba8108de77f197078de34b733dd394_0.app.frontendobjectsarticlesum.php(63): PKPTemplateManager->smartyEscape(Array)\n#3 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_62cd53f24204b9_47741105(Object(Smarty_Internal_Template))\n#4 /home/cuadernoscuadernosdejazz/www/lib/pkp/lib/vendor…’, referer: https://cuadernos.cuadernosdejazz.es/index.php/cdj

Hola Luis,
Al actualizar de 10 a 11 realmente se aplican parches y no hay movimiento en el core principal, así que si funcionaba bien en el 10 en el 11 debería hacerlo sin ningún problema, sin embargo, yo revisaría primero esto:

  • Revisar los permisos de la nueva instalación
  • Revisar el path correcto de FILES y PUBLIC
  • Borrar el cache de datos y de la plantilla (importante!)
  • Verificar si estas usando alguna opción de Cache que este interfiriendo

Saludos!

Hola !
No en el 10 no funcionaba bien, me hacía lo mismo, actualicé a 11 por si se solucionaba el acceso a datos con algún nuevo archivo o con la actualización de la base de datos, pero no.
A nivel de permisos está bien
Los path están correctos también
Las cachés de datos y plantilla también las había borrado (y vuelto a borrar)
Lo de la caché no sé como mirarlo
Lo que más me mosquea es que los datos están almacenados y son accesibles desde el panel administrativo, está todo, y sale bien y en su sitio, pero en el frontal de la web no sale, simplemente sale la portada, pone “Cubierta” y nada más, es más en Cubierta da error 500: https://cuadernos.cuadernosdejazz.es/index.php/cdj/issue/view/138
He probado poner plantillas nuevas pero el error es el mismo

¿Tu versión de PHP es 7.3 o más arriba?
¿La configuración de open base dir cómo la. tienes? en algunos casos hay que deshabilitarla para que se pueda ejecutar algunas aplicaciones.

Quizás te pueda ayudar esto:

madre mia !!! eso era, yo tenía la versión de php 7.4 y alguien(supongo que el hospedador sin consultar) la ha pasado a 8.0 y por eso no iba, madre mia que suplicio, menos mal que al decirme eso me ha dado por mirar ahí que jamás se me habría ocurrido, muchas gracias !

2 Likes

This topic was automatically closed after 18 hours. New replies are no longer allowed.