Hi everyone,
I developed a theme for a journal that works fine on my OJS installation but when I install on client server, file includes overriding (include file=""
) seems not work and I can’t find the reason.
Header and footer tpl files are always lodaded from OJS template, ignoring custom frontend/components/header.tpl
and frontend/components/footer.tpl
on theme folder. There is no error on path or filename on the theme, because it works fine on my OJS installation.
If I change the path of {include file="frontend/components/header.tpl"}
to {include file="frontend/gdComponents/header.tpl"}
, for example, custom header loads correctly, but
menus keep loading tpl structure from navigationMenu.tpl
. Even if I create custom position names on theme config file ($this->addMenuArea(array('position1', 'position2', 'position3', 'position4'));
), default OJS navigationMenu.tpl
keeps loaded.
This behavior happen only on client OJS installation.
Both servers uses:
- PHP 7.4
- Linux
- OJS 33014 version
- No php error log are generated
- PHP extensions in use are very similar
Is there any directive on config.inc.php that could explain this behavior? Should be any php extension causing it? How OJS manages this includes? @asmecher @NateWr
Client reported that the OJS code didn’t receive any customization and that other installed themes showed atypical behavior as well. Maybe the cause can be some server config, but I don’t know were to looking for.
Hope I was clear on explanation.
Thank you