Hi. I am using OJS 3.2.1.2 and I am experimenting problems with the search button of my site. None of the buttons work:
Button 1 is the one that appears on the main page
Button 2 is the one that is used for a filtered search
I tried to find the error and it says that I have a 500 Internal Server Error.
I don´t have a file “smarty_internal_t” on /lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/ I do have the following files:
smarty_internal_testinstall.php
smarty_internal_templatebase.php
Do you have any idea about the cause of the problem? Everything will be apprecieted.
Hola compatriota @elementslive … I don’t have /lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/ either, but the search does work in our 3.0.0.5 system …
it would be useful if you include a couple lines that come before the ones you already shared from your error log …
Also, have you tried the search function inside of each of the journals? do they work?
One final thing … check if the version of PHP you are using is higher than the minimum required for the 3.2.1.2
Hi @hilongo how are you? I hope that you are fine. Thanks for have taken the time to response and sorry for the late reply. I tried to search articles in differents journals of the site and it worked . The problem is only related with the search at the home page. I found in another post, that this error could be related with the OJS version. I uploaded to 3.3.0.2 but I am experimenting the same problem. The PHP version is OK. I will share my complete error log:
2021/09/28 11:56:23 [error] 1454#1454: *4259536 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.16.16.199, server: revistas.unc.edu.ar, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "revistas.unc.edu.ar"
2021/09/28 11:56:24 [error] 1454#1454: *4259539 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.16.16.199, server: revistas.unc.edu.ar, request: "GET /xmlrpc.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "revistas.unc.edu.ar"
2021/09/28 11:56:31 [error] 1454#1454: *4259552 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to a member function getBestArticleId() on null in /var/www/revistas.psi.unc.edu.ar/revistas/cache/t_compile/c18f74cb7ec86d000ca85f6baec01c420e4e3321^7cf1cd52b8ba8108de77f197078de34b733dd394_0.app.frontendobjectsarticlesum.php:25
Stack trace:
#0 /var/www/revistas.psi.unc.edu.ar/revistas/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6148ca5866ba18_79816887(Object(Smarty_Internal_Template))
#1 /var/www/revistas.psi.unc.edu.ar/revistas/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /var/www/revistas.psi.unc.edu.ar/revistas/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /var/www/revistas.psi.unc.edu.ar/revistas/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_t" while reading response header from upstream, client: 172.16.16.200, server: revistas.unc.edu.ar, request: "POST /index.php/index/search/search HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "revistas.unc.edu.ar", referrer: "https://revistas.unc.edu.ar/index.php/index/search"
2021/09/28 11:57:00 [crit] 1454#1454: *4259782 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /status HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "127.0.0.1"
2021/09/28 11:57:00 [crit] 1454#1454: *4259784 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /opcache.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "localhost"
2021/09/28 11:57:00 [crit] 1454#1454: *4259786 connect() to unix:/var/run/php/php7.4-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /opcache.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "localhost"
If you or somebody else has an idea it really will help me.
Hi @janiosarmiento. Thanks for the reply, I really appreciate it. I tried to fix the problem by doing what you advised, but sadly it didn’t work. I cleared the data cache and template cache from the Administration panel in the user interface. Do I have to clear it from another place?
Hi @janiosarmento how are you? Thanks again for your answer. I could solve the problem. It was related with OJS version and Immersion Theme version. Once I upgrade both OJS version to 3.3.0.2 and Inmmersion Theme it started working.