Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-07-12 15:28:33
- lsabin
- New Member
- Registered: 2004-11-16
- Posts: 4
tag error
Hello,
I have upgraded to 4.0.3 version and now I’m getting errors with some tags.
For example:
tag_error <txp:search_input label=“buscas algo?” button=“busca” size=“15” /> -> Warning: mysql_query(): 6 is not a valid MySQL-Link resource on line 56.
Could you help me with this?
Regards.
Offline
#2 2006-07-12 22:59:06
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: tag error
Does the error message give the tag name?
Alex
Offline
#3 2006-07-13 06:28:25
- lsabin
- New Member
- Registered: 2004-11-16
- Posts: 4
Re: tag error
I have this error with <txp:search_input> and <txp:linklist>.
Last edited by lsabin (2006-07-13 06:29:45)
Offline
#4 2006-07-13 08:48:06
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: tag error
Do you have any plugins or PHP code included in your templates that might run mysql queries?
If so, try disabling them.
If not, can you post your diagnostics please?
Alex
Offline
#5 2006-07-13 09:14:01
- lsabin
- New Member
- Registered: 2004-11-16
- Posts: 4
Re: tag error
Yeah, you are right. If I disable my plugins (which uses mysql to get data) i don’t get any tag errors.
Does this mean my plugins are not correct?
Thanks.
Offline
#6 2006-07-13 09:30:09
- lsabin
- New Member
- Registered: 2004-11-16
- Posts: 4
Re: tag error
Hello,
I have fixed this problem by not closing the mysql connections with mysql_close in the plugin code.
Thanks for your help.
Offline