Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#81 2020-02-26 16:56:35

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 595
Website

Re: glz_custom_fields v2 beta for Textpattern v4.7

Thank both of you very much.

I ended updating my WAMP server to a newer PHP and MySQL versions:

Before it was:
WAMP server v3.0
PHP7.0
MySQL 5.6 I think.

Now:
WAMP server v3.2
PHP7.4
MariaDB 10.4.10
MySQL 8.0.18.

and now everything seems to be working fine,
by creating a new custom field and deleting it, it “refreshed” whatever was “stuck” and need from the old version and I am able to create/delete new fields with no problems and no errors (at least for now LOL).

I was doing lots of testing today, the reason I have decided to update WAMP server it is because I couldn’t run a query to search for “0000-00-00 00:00:00” in Expires filed in “textpattern” table and replace it with “NULL”.
But after updating to the new WAMP version I do not receive that error anymore and even that there are still lots of “0000-00-00 00:00:00” values in the textpattern table, I do not seems to need to do anything about it as I do not get that error message unlike before.
Is it still better to search-replace the “0000-00-00 00:00:00” values into “NULL” or should I keep it as it is please?

Offline

#82 2020-02-26 21:00:46

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,913
Website

Re: glz_custom_fields v2 beta for Textpattern v4.7

Thanks for the feedback and glad you got it working again.

FWIW: I’ve done some very preliminary testing on a new 4.8.0 release with some sample articles using v2.0beta as found here and the following have all worked without any problems:

☑ Adding new custom fields of types textarea, text input, date input
☑ Changing custom field order per drag and drop
☑ Adding field label titles and instruction text
☑ Switching language and adding field label titles and instruction text
☑ Switching back to the original language and field label titles and instructions are still intact
☑ Deleting custom fields

Obviously that’s not conclusive by any means, but it looks like the main functionality works out of the box. Oleg has since added the possibility to bundle dependencies along with a plugin as part of a zip installer file, e.g. a zip file one imports via the Plugins panel: that would make it possible to include the javascript and css that currently needs installing separately and could allow one to simplify the prefs. I will investigate.


TXP Builders – finely-crafted code, design and txp

Offline

#83 2020-02-26 22:00:21

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,104
Website

Re: glz_custom_fields v2 beta for Textpattern v4.7

jakob wrote #321952:

Thanks for the feedback and glad you got it working again.

FWIW: I’ve done some very preliminary testing on a new 4.8.0 release with some sample articles using v2.0beta as found here and the following have all worked without any problems:

FWIW – I haven’t had any issues with the plugin on TXP 4.8.0 or dev, save for the hiccup I mentioned up thread

Everything working with PHP v7.2+ and mySQL 5.7 or 8


Where is that emoji for a solar powered submarine when you need it ?

Offline

#84 2020-09-10 14:00:58

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 652
Website

Re: glz_custom_fields v2 beta for Textpattern v4.7

Just for clarity: Does the the beta 2.0 from github work with 4.8.2 or should one be careful? I read through the thread here, but can’t see a clear “yes! it works!”

thanx in advance!


a hole turned upside down is a dome, when there’s also gravity.

Offline

#85 2020-09-10 16:54:37

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,419

Re: glz_custom_fields v2 beta for Textpattern v4.7

In various installations it works without problems so far.

Offline

#86 2020-09-10 23:32:12

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,104
Website

Re: glz_custom_fields v2 beta for Textpattern v4.7

jayrope wrote #325870:

Just for clarity: Does the the beta 2.0 from github work with 4.8.2 or should one be careful? I read through the thread here, but can’t see a clear “yes! it works!”

ditto what GugUser says – the latest from GH you linked to works OK from here.

(as always have a backup of the DB at hand before any upgrading etc etc and so on)


Where is that emoji for a solar powered submarine when you need it ?

Offline

#87 2020-09-19 15:18:12

peterj
Member
From: Melbourne, Australia
Registered: 2005-06-02
Posts: 45

Re: glz_custom_fields v2 beta for Textpattern v4.7

Hi, I’m just playing with the multi-select, as I build up the courage to make a custom script based field. My multi-select field is throwing an alert on the write tab (see below), though values save.
Running 2.0 Beta on TXP 4.8.2 on PHP 7.4. In debug mode.

8192 "implode(): Passing glue string after array is deprecated. Swap the parameters"
in /home/xoxoxo/2020dev/textpattern/plugins/glz_custom_fields/glz_custom_fields.php at line 1808.
adminErrorHandler()
textpattern/plugins/glz_custom_fields/glz_custom_fields.php:1808 implode()
textpattern/lib/txplib_misc.php:1506 glz_custom_fields_before_save()
textpattern/index.php:224 callback_event()

I found the code in glz_custom_fields_before_save():

$value = implode($value, '|');

Changed this around to

$value = implode('|', $value);

Now it’s happy. Old way deprecated in 7.4.

Last edited by peterj (2020-09-19 15:18:48)

Offline

Board footer

Powered by FluxBB