OJS 3.3.0.11 : « Failed Ajax request or invalid JSON returned. » when trying to upload a final version

@asmecher This is from the user log from our cPanel when i clicked and error poped.

88.85.97.78 - - [07/Sep/2022:14:12:31 +0200] "GET /index.php/jhrs/$$$call$$$/grid/settings/sections/section-grid/add-section?gridId=grid-settings-sections-sectiongrid&_=1662552717975 HTTP/2" 500 0 "https://jhrs.almamater.si/index.php/jhrs/management/settings/context" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"

This is from the journal ftp domain/logs
Screenshot_6
the highlighted tar.gz was extracted and in that list i copied only todays errors, should contain the trigger for the sections problem because i tried to create/edit a section few times today.

216.244.66.228 - - [07/Sep/2022:00:07:20 +0200] "GET /robots.txt HTTP/1.1" 200 336 "-" "Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)"
216.244.66.228 - - [07/Sep/2022:00:34:43 +0200] "GET /files/downloads/APA%20for%20Academic%20Publishing.pdf HTTP/1.1" 200 260474 "-" "Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)"
40.77.167.72 - - [07/Sep/2022:00:55:01 +0200] "GET /index.php/jhrs/issue/current HTTP/1.1" 302 425 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
40.77.167.72 - - [07/Sep/2022:00:55:02 +0200] "GET /index.php/jhrs/issue/view/1 HTTP/1.1" 200 7601 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
216.244.66.228 - - [07/Sep/2022:00:57:53 +0200] "GET /robots.txt HTTP/1.1" 200 336 "-" "Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)"
157.55.39.104 - - [07/Sep/2022:01:22:13 +0200] "GET /index.php/jhrs/index HTTP/2" 200 9662 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
157.55.39.104 - - [07/Sep/2022:01:22:34 +0200] "GET /plugins/generic/sliderHome/swiper/js/swiper-bundle.js HTTP/2" 200 55133 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
207.46.13.60 - - [07/Sep/2022:01:22:38 +0200] "GET /plugins/generic/sliderHome/swiper/css/swiper-bundle.css HTTP/2" 200 4443 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
207.46.13.60 - - [07/Sep/2022:01:22:39 +0200] "GET /plugins/generic/sliderHome/swiper/css/swiper-bundle.min.css HTTP/2" 200 4141 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
207.46.13.60 - - [07/Sep/2022:01:22:39 +0200] "GET /plugins/generic/sliderHome/swiper/js/swiper-bundle.min.js HTTP/2" 200 36305 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
207.46.13.210 - - [07/Sep/2022:01:22:43 +0200] "GET /plugins/generic/sliderHome/swiper/css/sliderHome.css HTTP/2" 200 674 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
216.244.66.228 - - [07/Sep/2022:01:24:32 +0200] "GET /files/downloads/APA_Style_Citations2009.pdf HTTP/1.1" 200 52020 "-" "Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)"
173.252.95.13 - - [07/Sep/2022:01:55:18 +0200] "GET /public/journals/1/pageHeaderLogoImage_en_US.png HTTP/2" 200 110903 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)"

If this are not the right logs, please tell me where i can find them. Everything is setup by default on our server/ojs. Thank you.

Best regards,
JHRS

Hi @jhrs,

That looks like your access log, not your error log. See this post for hints on where to find your error log: How do I find my PHP error log?

Regards,
Alec Smecher
Public Knowledge Project Team

Hello @asmecher ,
I’ve searched everywhere for the error logs but i cannot find any, maybe they are not even logged anywhere, as shown above on the previous post i’ve posted a pic of my log dir, that is all there is. Those tar.gz files are the php logs?

Best regards,
JHRS

Hi @jhrs,

Unfortunately I can’t give you specific instructions – it’ll depend on your host’s server configuration – but it should always be possible to find the PHP error log stored somewhere. Without those it would be very hard to debug a PHP-based application (like OJS). You might need to ask your server admin.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello @asmecher,

I uploaded logs folder with latest updates, please check if there are logs from the php, thanks.

Best regards,
JHRS

Hi @jhrs,

At a glance, those all appear to be access logs, not PHP error logs. (I’ve removed the download link – it’s probably not a good thing to share publicly, as it associates e.g. IP addresses with website visits.)

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Thank you for removing the link. I will try to get to those PHP logs but seems like the logging is disabled because there is no trace from them. Thanks.

Best regards,
JHRS

Hi @asmecher,

I managed to find the php error logs and here is an error message right after i got the error 11:53 on 11.09.2022.

[11-Sep-2022 00:05:56 Europe/Ljubljana] PHP Fatal error:  Uncaught Error: Call to a member function getData() on null in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/d4e4672f03ccedebd0a355e5575950954ab0570f^c5a64687d825cbd410323f081b8e13fb7be00543_0.plugins-1-plugins-generic-webFeed-generic-webFeed.rss2.tpl.php:112
Stack trace:
#0 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_631747f52ce882_77141664(Object(Smarty_Internal_Template))
#1 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplug in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/d4e4672f03ccedebd0a355e5575950954ab0570f^c5a64687d825cbd410323f081b8e13fb7be00543_0.plugins-1-plugins-generic-webFeed-generic-webFeed.rss2.tpl.php on line 112
[11-Sep-2022 11:53:23 Europe/Ljubljana] PHP Warning:  filemtime(): stat failed for lib/pkp/templates/controllers/grid/settings/sections/form/sectionForm.tpl in /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51
[11-Sep-2022 11:53:23 Europe/Ljubljana] PHP Fatal error:  Uncaught  --> Smarty: Unable to load template 'app:controllers/grid/settings/sections/form/sectionForm.tpl' <-- 
  thrown in /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195

I guess this will be enough to identify the problem. Thanks.

Best regards,
JHRS

Hi @jhrs,

Try triggering the error message to appear using your browser, then immediately checking the PHP error log for a corresponding error message. I think the one cited above is unrelated to the issue you’re trying to debug.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher ,

I triggered it twice on create section button and once on edit the section that is already there called Articles, here is the error log.

[11-Sep-2022 23:14:55 Europe/Ljubljana] PHP Warning:  filemtime(): stat failed for lib/pkp/templates/controllers/grid/settings/sections/form/sectionForm.tpl in /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51
[11-Sep-2022 23:14:55 Europe/Ljubljana] PHP Fatal error:  Uncaught  --> Smarty: Unable to load template 'app:controllers/grid/settings/sections/form/sectionForm.tpl' <-- 
  thrown in /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195
[11-Sep-2022 23:16:49 Europe/Ljubljana] PHP Warning:  filemtime(): stat failed for lib/pkp/templates/controllers/grid/settings/sections/form/sectionForm.tpl in /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51
[11-Sep-2022 23:16:49 Europe/Ljubljana] PHP Fatal error:  Uncaught  --> Smarty: Unable to load template 'app:controllers/grid/settings/sections/form/sectionForm.tpl' <-- 
  thrown in /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195
[11-Sep-2022 23:16:54 Europe/Ljubljana] PHP Warning:  filemtime(): stat failed for lib/pkp/templates/controllers/grid/settings/sections/form/sectionForm.tpl in /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51
[11-Sep-2022 23:16:54 Europe/Ljubljana] PHP Fatal error:  Uncaught  --> Smarty: Unable to load template 'app:controllers/grid/settings/sections/form/sectionForm.tpl' <-- 
  thrown in /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195

Best regards,
JHRS

Hi @jhrs,

That suggests that the file lib/pkp/templates/controllers/grid/settings/sections/form/sectionForm.tpl is missing from your installation. This should’ve been included in the .tar.gz package for your version of OJS.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher ,

I’ve added the file sctionForm.tpl including the folders sections/form/ cuz they were missing. Here is the php error log after i tried to create a section.

[12-Sep-2022 08:37:10 Europe/Ljubljana] PHP Fatal error:  Uncaught Error: Class 'PKP\core\PKPApplication' not found in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php:34
Stack trace:
#0 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_631ed396aca4a6_76408793(Object(Smarty_Internal_Template))
#1 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php on line 34

I’ve added the files manually including the code inside the .tpl. Still getting error.

Update: Cleared the data and template cache and tried again to create or edit section and got this.

[12-Sep-2022 08:41:31 Europe/Ljubljana] PHP Notice:  Undefined offset: 0 in /home/jhrs/domains/jhrs.almamater.si/public_html/plugins/generic/customLocale/controllers/grid/CustomLocaleAction.inc.php on line 28
[12-Sep-2022 08:41:31 Europe/Ljubljana] PHP Notice:  Undefined offset: 0 in /home/jhrs/domains/jhrs.almamater.si/public_html/plugins/generic/customLocale/controllers/grid/CustomLocaleAction.inc.php on line 28
[12-Sep-2022 08:41:31 Europe/Ljubljana] PHP Notice:  Undefined offset: 0 in /home/jhrs/domains/jhrs.almamater.si/public_html/plugins/generic/customLocale/controllers/grid/CustomLocaleAction.inc.php on line 28
[12-Sep-2022 08:41:49 Europe/Ljubljana] PHP Fatal error:  Uncaught Error: Class 'PKP\core\PKPApplication' not found in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php:34
Stack trace:
#0 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_631ed396aca4a6_76408793(Object(Smarty_Internal_Template))
#1 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php on line 34
[12-Sep-2022 08:42:40 Europe/Ljubljana] PHP Fatal error:  Uncaught Error: Class 'PKP\core\PKPApplication' not found in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php:34
Stack trace:
#0 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_631ed4e08dc0f2_25464032(Object(Smarty_Internal_Template))
#1 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php on line 34
[12-Sep-2022 08:42:45 Europe/Ljubljana] PHP Fatal error:  Uncaught Error: Class 'PKP\core\PKPApplication' not found in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php:34
Stack trace:
#0 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_631ed4e08dc0f2_25464032(Object(Smarty_Internal_Template))
#1 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php on line 34

Thanks.

Best regards,
JHRS

Hi @jhrs,

Are you getting the missing files from github.com? I suspect they are the wrong version. Make sure to use the same version as the rest of your OJS installation. I’d suggest starting by downloading the same .tar.gz package you used to install OJS in the first place.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Yes i was getting the files from github but u had a zip from the installation client so i did as you suggested and i still get the same ajax error.

[12-Sep-2022 19:00:46 Europe/Ljubljana] PHP Fatal error:  Uncaught Error: Class 'PKP\core\PKPApplication' not found in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php:34
Stack trace:
#0 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_631f65be8f8498_90428431(Object(Smarty_Internal_Template))
#1 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php on line 34

I only copied the file PKPSectionForm.inc.php following the same folder structure. What else should i try? Thanks.

Best regards,
JHRS

Hi @jhrs,

You’re mixing files from different versions of OJS. Make sure to get the files you’re missing from the download package for OJS 3.3.0-11.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I double checked the version and the zip file i have, only starting from lib/pkp/controllers/gird/settings/sections, the sections folder was missing on main ojs, i moved that folder with all files inside, cleared cache and used incognito chrome to test out, still gettin the same error.

[12-Sep-2022 20:15:48 Europe/Ljubljana] PHP Fatal error:  Uncaught Error: Class 'PKP\core\PKPApplication' not found in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php:34
Stack trace:
#0 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_631f775445aad4_83090202(Object(Smarty_Internal_Template))
#1 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php on line 34
[12-Sep-2022 20:18:01 Europe/Ljubljana] PHP Fatal error:  Uncaught Error: Class 'PKP\core\PKPApplication' not found in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php:34
Stack trace:
#0 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_631f775445aad4_83090202(Object(Smarty_Internal_Template))
#1 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php on line 34

The first error is when i click create new section and the second one is when i try to edit the one sections i have from default, and thats articles. Thanks.

Best regards,
JHRS

Hi @jhrs,

If you’re sure all the files you’ve added are from the right version of OJS, it’s possible that some of the template code is cached. Try removing all .php files from templates/t_compile.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I cleared the cache and the route is domains/domain/public_html/cache/t_domain, got the following error.

[13-Sep-2022 08:30:41 Europe/Ljubljana] PHP Fatal error:  Uncaught Error: Class 'PKP\core\PKPApplication' not found in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php:34
Stack trace:
#0 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_63202389bbe6c0_32901533(Object(Smarty_Internal_Template))
#1 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php on line 34
[13-Sep-2022 08:36:05 Europe/Ljubljana] PHP Fatal error:  Uncaught Error: Class 'PKP\core\PKPApplication' not found in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php:34
Stack trace:
#0 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_632024d50cc9f7_42853206(Object(Smarty_Internal_Template))
#1 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#3 /home/jhrs/domains/jhrs.almamater.si/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase in /home/jhrs/domains/jhrs.almamater.si/public_html/cache/t_compile/3af9bcddc96ecae8db8efafe6b6221be04abbc6c^c3e41bcfd4f6ae321a07ea76eba0d6840e716fb7_0.app.controllersgridsettingsse.php on line 34

Tried two times to create new section. Thanks.

UPDATE: I tried clearing cache via administration panel and I saw that t_compile was empty after I used those 2 options: Clear Data Caches and Clear Template Cache.

Best regards,
JHRS

Hi @jhrs,

Where specifically are you getting the files that you’re using to repair the missing content in your installation?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

official download
This is official version, fresh download, the same version as we use.

original installation
This is the original zip we used to install the app.

I tried with both, the files from the original zip we have and from the fresh download https://pkp.sfu.ca/ojs/ojs_download/ and still facing the same error on both edit and create section.Thanks.

Best regards,
JHRS