Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: textpattern error adding new custom field after upgrade
mmelon wrote #292197:
Do I have an out of date GLZ?
Maybe. Latest version, although someone did complain recently that there are a few slightly different compiled versions knocking around with the same version number, so keep your wits about you! As far as I’m aware, the Github source code is the latest version so to be sure you could upload that .php
file via ied_plugin_composer.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#14 2015-06-28 15:02:59
- mmelon
- Member
- Registered: 2006-03-02
- Posts: 95
Re: textpattern error adding new custom field after upgrade
ha really struggling today! trying to install the latest version I get
internal_error “Data too long for column ‘version’ at row 1”
in /home/pbxrlqbp/public_html/textpattern/lib/txplib_db.php at line 95.
Do I have to delete the 1.3.0 version first?
Offline
Re: textpattern error adding new custom field after upgrade
mmelon wrote #292200:
“Data too long for column ‘version’ at row 1”
You’re not trying to “install” the .php
code version are you? Try the compiled version of 1.4.0beta1 in that archive, but note you should add the .txt
extension to the glz_custom_fields-1.4.0-beta1
file so your text editor picks it up more easily.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#16 2015-06-28 15:13:56
- mmelon
- Member
- Registered: 2006-03-02
- Posts: 95
Re: textpattern error adding new custom field after upgrade
no. it gets to the preview but then the yellow install button does
internal_error “Data too long for column ‘version’ at row 1”
in /home/pbxrlqbp/public_html/textpattern/lib/txplib_db.php at line 95.
adminErrorHandler()
textpattern/lib/txplib_db.php:95 trigger_error()
textpattern/lib/txplib_db.php:118 safe_query()
textpattern/include/txp_plugin.php:401 safe_update()
textpattern/include/txp_plugin.php:34 plugin_install()
I’m sorry. I’m afraid I can’t do that. I think plugin plugin_install is no safe operation at this time.
starting to regret being brave and upgrading the core :(
Mike
Offline
#17 2015-06-28 15:24:41
- mmelon
- Member
- Registered: 2006-03-02
- Posts: 95
Re: textpattern error adding new custom field after upgrade
it’s almost certainly this http://forum.textpattern.com/viewtopic.php?id=39382
Offline
#18 2015-06-28 15:33:54
- mmelon
- Member
- Registered: 2006-03-02
- Posts: 95
Re: textpattern error adding new custom field after upgrade
ok to wrap up. I upgraded my core to 4.5.7. Trying to add a custom field after using GLZ 1.3.0 killed my textpattern. Stef graciously helped me fix it. GLZ 1.3.0 no longer works properly on 4.5.7 because of an issue with input attribute names. I couldn’t upgrade to 1.4.0-beta1 because my SQL server is running in strict mode. In the above post Gocom solved it for someone else by saying increase the size of the version column in txp_plugin to 255. Now seems fine.
Phew! My neck and back hurt!
Mike
Offline
Re: textpattern error adding new custom field after upgrade
mmelon wrote #292202:
internal_error “Data too long for column ‘version’ at row 1”
Bobbins, the plugin version field probably can’t handle the fact that Gerhard’s version string is rather long or is defined oddly in the plugin. He’s done some non-standard things in the Github version of the plugin that need “compiling” into a complete plugin. So yeah, follow Gocom’s advice. Simplest all round.
Humbug. I have a version in my development environment but it’s labelled v1.5.0
so I’m not sure if it’s even production ready. Can’t remember how far I got with tweaking it to fix the bugs.
Man, this is a mess.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#20 2015-06-28 22:18:01
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: textpattern error adding new custom field after upgrade
There’s a “max_custom_fields” preference as well – it seems to be set to the total number of CFs defined. Would be worth checking that it’s set correctly.
Offline