Hello,
I try to customize Mediawiki, so I changed some things in templates/xhtml_slim.pt. After dropping the database and reinstalling the wiki I saw my first changes. OK.
But now I try to change something again and it does not work anymore, I still see my first changes.
I even tried to install the original wiki again, but even now I see my first changes...
What is this? Maybe information in the PHP namespace? If so: how do I empty that namespace? I used another name for this wiki...
Is there maybe a better way to change things in xhtml_slim.pt without dropping the database and do a reinstall?
With regards, Paul van der Vlis.
Paul van der Vlis wrote:
I try to customize Mediawiki, so I changed some things in templates/xhtml_slim.pt. After dropping the database and reinstalling the wiki I saw my first changes. OK.
Why would you drop the database and reinstall to change the HTML template? These are completely unrelated activities.
But now I try to change something again and it does not work anymore, I still see my first changes.
Make sure the compiled template file (usually put in /tmp) is not newer than the xhtml_slim.pt file. If you continue to have trouble, upgrade to 1.4 and use the new template system which is not as fragile.
-- brion vibber (brion @ pobox.com)
Brion Vibber schreef:
Paul van der Vlis wrote:
I try to customize Mediawiki, so I changed some things in templates/xhtml_slim.pt. After dropping the database and reinstalling the wiki I saw my first changes. OK.
Why would you drop the database and reinstall to change the HTML template? These are completely unrelated activities.
I look likes you are right. I first thought, the template was loaded in the database during install.
But now I try to change something again and it does not work anymore, I still see my first changes.
Make sure the compiled template file (usually put in /tmp) is not newer than the xhtml_slim.pt file.
Thanks for this tip!
I've removed all the files with start with "wiki_" and "tpl_0_7_0_" and this works. I am not sure about the files starting with "wiki_", maybe they belong to another wiki.
If you continue to have trouble, upgrade to 1.4 and use the new template system which is not as fragile.
Maybe I should take a look at 1.4.
Thanks, Paul.
mediawiki-l@lists.wikimedia.org