OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



I manually edit TPL file. Then the page was gone!!

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

I manually edit TPL file. Then the page was gone!!

Postby khun_panya » Sat May 20, 2006 9:26 am

I was just try to edit templates/search/authorIndex.tpl
When I refresh that page in IE. It then completely gone.
I did try to "Clear Template Cache" but no helps.
I quite not familiar with Smarty (though ever heard of).
Can some body tell me how to recover that page?
Thanks.
khun_panya
 
Posts: 7
Joined: Sat Feb 18, 2006 12:36 am

Postby asmecher » Mon May 22, 2006 11:12 pm

Hi khun_panya,

Usually when OJS starts serving a blank page, it's because there was a typo in the template (or PHP code, if it has been changed). Try restoring the template to the stock version and re-introducing your changes one at a time; you can also try checking your server log to see if any more specific errors were logged.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 8311
Joined: Wed Aug 10, 2005 12:56 pm

Postby khun_panya » Sat Aug 05, 2006 7:43 am

Well, havn't come back for a long time.

Retoring original TPL files did fix the problem.
But what if I really want to edit TPL file?
I want to rearrange some page layout.
I've found that even I open TPL with vi and just save it, No changes.
The page goes blank too.
Is it about file timestamp?
What is the correct way to deep customize page layout?

Thanks.

PS. I have no permission to access server log.
khun_panya
 
Posts: 7
Joined: Sat Feb 18, 2006 12:36 am

Postby khun_panya » Sat Aug 05, 2006 8:07 am

I've found it!
The problem is that the temp directory for Smarty
(templates/t_cache, templates/t_compile, templates/t_config)
is not writable by web server.
After chmod them. It then works now.

Thanks for your reading.
khun_panya
 
Posts: 7
Joined: Sat Feb 18, 2006 12:36 am


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 3 guests