| Main |

If You Suddenly Can’t Map Fields In a TemplaVoila Template…

Category: Content Management with TYPO3

Thursday, June 28, 2007

Thought I'd write this up in case anyone else out there runs into the same thing.

If you use TemplaVoila as your template engine, you know that a big part of changing the look and feel of your site is changing the mapping of data structures to fields in the template.

But what if one day you're making changes to a template -- say, adding a new field -- and the field just won't save in the template? Even if you clear out the caches?

If this has happened to you, check your Apache error log. If you see a bunch of errors in there that look like this:

PHP Warning:  mysql_num_rows(): supplied argument is not a valid MySQL result resource...

... then you can solve the problem by going into the Extension Manager and uninstalling, then reinstalling the TemplaVoila extension. Doing this fixes something in the database that is causing your problem. Once TemplaVoila is reinstalled, you will be able to map fields again.

Don't ask me why this works, I have no idea. But it does work.

Leave a comment


Recently on Just Well Mixed

Going Meta

Syndicate Me, Baby

Feed iconWeb feed

Share and Enjoy

Except where otherwise noted, all content on this site is provided under the terms of the Creative Commons Attribution-ShareAlike license.

Obligatory Disclaimer

If you think anything I write here represents the opinions of anybody but myself, you need more help than I can give you. The opinions are all mine, folks. Nobody else's.

If that's too hard to understand... well, I'm sorry. There's only so much I can do. I'm not a therapist, and I'm not a miracle worker. I wish I could help you work through your delusional belief that I'm speaking for anyone else but myself. Honestly, I do. But in the end, that's a monkey you'll have to get off your back on your own. Sorry.