Textpattern Forum

You are not logged in. Register | Login | Help

#1 2010-09-02 20:39:52

Sono Juventino
Member
From: Skedsmo, Norway
Registered: 2007-12-22
Posts: 81

cnk_soccer: Textpattern cuts plugin code = error message

Hello

Textpattern Live site version: 4.0.6 (r2805)
Textpattern Test site version: 4.2.0 (r3275)

I’m developing functions for the plugin cnk_soccer. The problem is, once I start adding code to the original plugin code, (77 lines of code) textpattern (Live version) erases 77 of the last lines in the plugin. This obviously gives an error message every time.

And yes, i’m checking that the last lines in questions are displayed before I save. It just don’t make any sense to me.

I’ve tried:

- To add long comments in the bottom to have “some lines to sacrifice”

- Add my code to a working version of the plugin

Yes, the code works on a test version on the same server. The problem is not the code, but the cutting of the last vital lines of plugin code.

Is this a known bug in Textpattern 4.0.6?

Last edited by Sono Juventino (2010-09-02 20:40:50)

Offline

#2 2010-09-03 07:47:20

Gocom
Developer
Registered: 2006-07-14
Posts: 4,410
Website

Re: cnk_soccer: Textpattern cuts plugin code = error message

Make sure that the plugins code doesn’t exceed the txp_plugin table’s code field’s size limit (4.2.0’s field limit is larger than it was during earlier TXP versions), and that the forms lenght doesn’t exceed the post size limit of the server.

Infact cnk_soccer v1.0.2 code is 62 KB in size, while the v4.0.6’s code field, being type text, can hold up to 64 KB.

To solve the issue you could:

  • Cut the amount of code the plugin uses.
  • Split the plugin in multiple smaller plugins.
  • Change the TXP 4.0.6’s field type to mediumtext…
  • …or use TXP 4.2.0.

Is this a known bug in Textpattern 4.0.6?

No.

Last edited by Gocom (2010-09-03 08:04:08)


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

#3 2010-09-05 23:59:35

Sono Juventino
Member
From: Skedsmo, Norway
Registered: 2007-12-22
Posts: 81

Re: cnk_soccer: Textpattern cuts plugin code = error message

Thank you very much, Gocom.

That solves my problem.

For anyone else. I just changed the field type from “Text” to “Medium text” in PhpMyAdmin. :)

Last edited by Sono Juventino (2010-09-06 00:00:07)

Offline

Board footer

Powered by FluxBB