Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#937 2011-10-24 06:42:26
Re: glz_custom_fields
With version 1.3 of the plugin, this is what my custom field overview page looks like:
What can I do about it?
Offline
#938 2011-10-24 08:54:34
Re: glz_custom_fields
to me this looks a little like you’ve installed another admin theme, right?
(just to isolate the problem)
Offline
#939 2011-10-24 08:59:33
Re: glz_custom_fields
Or is it not seeing the glz_custom_fields.css… I think the folder changed from ‘scripts’ to ‘plugins’ in this upgrade, or just check to see if you uploaded it
Offline
#940 2011-10-24 09:15:43
Re: glz_custom_fields
jens31 wrote:
to me this looks a little like you’ve installed another admin theme, right?
(just to isolate the problem)
I used “Remora” the newer one of the two that come pre-packed with TXP. I just changed back to the classic theme but the problem remains.
Offline
#941 2011-10-24 09:23:53
Re: glz_custom_fields
OK – solved it. I re-uploaded both the plugin and the support folder and now it works on both admin-themes.
There doesn’t seem to be a file called glz_custom_fields.css
– the CSS for the plugin, if I get this correctly, is packacked in the plugin code.
Thanks for your help.
Last edited by andreas (2011-10-24 09:24:36)
Offline
#942 2011-11-01 08:20:00
- Algaris
- Member
- From: England
- Registered: 2006-01-27
- Posts: 570
Re: glz_custom_fields
For some reason whenever I try to add a new Text Area using glz_custom_fields I keep getting the following error.
Warning: BLOB/TEXT column 'custom_10' can't have a default value ALTER TABLE `textpattern` MODIFY `custom_10` TEXT NOT NULL DEFAULT '' in C:\wamp\www\my-site\textpattern\lib\txplib_db.php on line 89
Offline
#943 2011-11-03 15:19:34
- Algaris
- Member
- From: England
- Registered: 2006-01-27
- Posts: 570
Re: glz_custom_fields
I’ve noticed that if I ignore the above error message I still get the text area in the Write tab. However I found when adding a lot of text (such as an HTML table) I get the following error message:
Warning: Data too long for column 'custom_10' at row 1 update textpattern set Title = 'Article-Title', Body = 'body-text' C:\wamp\www\mysite\textpattern\lib\txplib_db.php on line 89
Just so you know I’ve changed the Title, Body and site name in the generated error.
— Edit —
Just noticed when I get this error message all of the text I’ve entered into the custom field vanishes. Argh!
If it helps I’m using v1.3.0
Last edited by Algaris (2011-11-03 15:27:22)
Offline
#944 2011-11-03 19:44:16
Re: glz_custom_fields
Do you have PHPMyAdmin? You could try changing that field to mediumtext or longtext.
Offline
#945 2011-11-04 08:22:42
- Algaris
- Member
- From: England
- Registered: 2006-01-27
- Posts: 570
Re: glz_custom_fields
I do but was unsure where to look for it. I tried looking before posting here and found the custom_fields table but all I could see there were entries for custom_2_set.
Offline
#946 2011-11-04 09:05:13
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: glz_custom_fields
Algaris wrote:
I do but was unsure where to look for it. I tried looking before posting here and found the custom_fields table but all I could see there were entries for custom_2_set.
Hi,
you must change the value in the “textpattern” table for column custom_2
Offline
#947 2011-11-08 09:47:38
- Algaris
- Member
- From: England
- Registered: 2006-01-27
- Posts: 570
Re: glz_custom_fields
Thank you redbot. That’s very good to know.
Gerhard: Would it be possible for you to add an option when creating a new Text Area Custom Field to specify its text length? This would save me having to jump into PHPMyAdmin. I’m always afraid I’ll break something if I make a mistake while editing the tables.
Offline
#948 2011-11-08 12:05:30
- Algaris
- Member
- From: England
- Registered: 2006-01-27
- Posts: 570
Re: glz_custom_fields
I went into the Textpattern table to edit custom_10 which is the custom field I’m using for my text area. In PHPMyAdmin I changed the Type entry from VARCHAR
to LONGTEXT
and hit save. I then received the following error message which seems to be very similar to the error message I originally had when I created the text area using glz_custom_fields.
Error
SQL query:
ALTER TABLE `textpattern` CHANGE `custom_10` `custom_10` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''
MySQL said:
#1101 - BLOB/TEXT column 'custom_10' can't have a default value
I also tried to change the value for custom_2
as redbot suggested and received the same error message.
Offline