-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom theme not work on OJS 3.1.2 #4600
Comments
Hi @navotera, OJS 3.1.2 included an update from Smarty 2 to 3 that requires minor changes in syntax. Regarding Health Sciences theme, it's already updated, you can view the latest commits there to get yourself familiarized with needed changes, starting from 4th of March: https://github.com/pkp/healthSciences/commits/master |
Thank for your reply sir. Yes I know that there update on smarty and I try the latest (claimed supported for OJS 3.1.2 by you as the author of the theme). I am not sure since your theme is work flawlessly on the previous version 3.1.1 (with the right version of your theme) but all the theme is not work (except the default which is not using any of custom template). I tried for two computer and it both not work. Can you give me a guide which of this PKP lib source code that loads the theme, so I can evaluate it myself? |
I cannot reproduce the problem that you are describing, e.g., I've activated Health Science on OJS 3.1.2 right now with no issues. Can you confirm that the latest release of Health Science theme and Bootstrap 3 theme is not working properly? If they are not working, can you specify the error in PHP logs? If you are not sure if there is an error, it's better to open a topic on the forum.
There are many classes involved in all levels of processing. I'm not sure what you want to accomplish but the class that extends Smarty functionality is PKPTemplateManager |
Yes it does not work on windows 10 But work on my Ubuntu, seems like there some problem with path on the _overridePluginTemplates on file /pkp/classes/Plugin.inc.php on Ubuntu it return : on windows it return : I tried to fix the slash symbol on windows but seem like it does not work, not sure which file and line that has some function that would choose which template file that would load to the user? Can you make these issues open again? |
Thanks @navotera Confirming this; requires further examination. |
On first glance lib-pkp prefix should be fixed to be compatible with Windows directory separator (e.g. |
…lugin on Windows OS
it works with you code : is this official ? |
#4600 update directory separator to override template file…
Merged f87a87d and cherry-picked to |
the official download of ojs 3.1.2 not work (this code never merge to the official OJS download https://pkp.sfu.ca/ojs/ojs_download/) |
@navotera, this is filed against the 3.1.2-1 milestone, which has not been released yet. |
I have done a fresh install the OJS 3.1.2 on my localhost before doing some update to the production site.
Seem like OJS 3.1.2 failed when load the custom smarty template files. It always use the default layout provided by pkp library for any page although the custom layout provided in the plugin/themes/custom_theme/templates.
I try another theme, such as NateWr Boostrap 3 theme, HealthSciences, however, the problem still persists.
I had cleared the cache and still not work out.
here the preview of healthsciences index page (only css loaded).
![image](https://user-images.githubusercontent.com/1424851/54327568-8cc63b00-4645-11e9-8357-292437f1ca59.png)
and this is the error (when i activate display error on config.inc.php), but I guess this is not related to this problem.
![image](https://user-images.githubusercontent.com/1424851/54327607-a9fb0980-4645-11e9-8602-2d2e4f029208.png)
The text was updated successfully, but these errors were encountered: