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.
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?
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
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
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.
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.
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
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
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
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
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
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.
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.
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
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.
This is official version, fresh download, the same version as we use.
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.