OJS 3.1.2 Not load any custom template theme files

Hi I wonder why the latest version of the OJS 3.1.2 not load any of my template files such as header.tpl and other file.

I tested it for another theme such as HealthSciences and Boostrap 3 by NateWr and they does not work too.

Is there any customization so that the OJS 3.1.2 would load any of custom templates files.

Thanks

Hi

Had you trying clean up caché of your browser?

Hi

Yes already doing that and try the theme on the fresh new install of OJS 3.2.1.
The problem however still persist for any of custom theme.

I try to activate display error on config.inc.php.

Here the healthScience theme on index page :
image

This is what I got and I think this error not specifically about my problem as I explained above

image

And in the apache error log, I can say that there are not any single line that related to the this template load error.

I have same problem.

This problem only happen on windows environment.

I have create issue on the pkp github page. Hope they will fix it soon

Updated :
They mark this as a bug and fixed it.
https://github.com/pkp/pkp-lib/issues/4600

Hi all
This fix Merge pull request #4610 from Vitaliy-1/i4600_pluginpath_windows · pkp/pkp-lib@f87a87d · GitHub doesn’t work for me.
PHP Error:
[Mon Apr 29 16:19:23.832723 2019] [php7:error] [pid 11436:tid 1888] [client ::1:51194] PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "app:app:frontendpagesindexJournal" on line 50 "{php}break;{/php}" {php}{/php} tags not allowed. Use SmartyBC to enable them <-- \n thrown in C:\\xampp\\htdocs\\ojs\\lib\\pkp\\lib\\vendor\\smarty\\smarty\\libs\\sysplugins\\smarty_internal_templatecompilerbase.php on line 50, referer: https://localhost/ojs/index.php/test/management/settings/website

OJS 3.1.2.0 , Windows 10, XAMPP environment

Thanks for help!
Jan

… the custom theme itself is loading. But when customized templates in plugins/themes/custTheme/templates folder are available it produces a 500 error.

Hi @trace,

This {php} tag was deprecated in Smarty 3 on which OJS 3.1.2 relies on. You can use {break} instead: https://www.smarty.net/docs/en/language.function.foreach.tpl#foreach.construct.break

Yes i’ve imported theme templates from V 3.1.1. to V 3.1.2. Thanks @Vitaliy modifying the tag resolved the problem.