Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2025-01-14 13:37:11

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,327
GitHub

`custom-fields` branch demo

Bloke wrote #338689:

My goodness, that was easy. The system works! Image custom fields have landed

Just need to retrofit the tags so they can read the values.

This gave me the kick to get custom-fields on the demo server:

dev-demo.textpattern.co/custom-fields/

dev-demo.textpattern.co/custom-fields/textpattern/

Some front-end warnings & errors at the moment, but they’re fixable, I’m sure.

Offline

#2 2025-01-14 14:30:59

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,640
Website GitHub

Re: `custom-fields` branch demo

Oh sweet. Thank you.

Hmmm Undefined array key "by_id" in textpattern/publish.php:961 filterAtts(). That doesn’t sound right… Needs investigation.

Fatal error: Uncaught TypeError: Unsupported operand types: null + array in txplib_publish.php:942
...

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

#3 2025-01-14 14:33:43

etc
Developer
Registered: 2010-11-11
Posts: 5,325
Website GitHub

Re: `custom-fields` branch demo

A clue (tab_meta)?

Fatal error: Uncaught mysqli_sql_exception: Table 'dev_demo.txp_meta' doesn't exist

Offline

#4 2025-01-14 14:46:52

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,327
GitHub

Re: `custom-fields` branch demo

etc wrote #338770:

A clue (tab_meta)?

Fatal error: Uncaught mysqli_sql_exception: Table 'dev_demo.txp_meta' doesn't exist...

Weird. It’s definitely there:

# ************************************************************
# Sequel Ace SQL dump
# Version 20074
#
# https://sequel-ace.com/
# https://github.com/Sequel-Ace/Sequel-Ace
#
# Host: donald.tlsvps.com (MySQL 8.4.3-3)
# Database: dev_demo
# Generation Time: 2025-01-14 14:45:11 +0000
# ************************************************************


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
SET NAMES utf8mb4;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE='NO_AUTO_VALUE_ON_ZERO', SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;


# Dump of table customfields_txp_meta
# ------------------------------------------------------------

DROP TABLE IF EXISTS `customfields_txp_meta`;

CREATE TABLE `customfields_txp_meta` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(63) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `content_type` varchar(31) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_type` varchar(31) COLLATE utf8mb4_unicode_ci DEFAULT '',
  `render` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 'textInput',
  `family` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `textfilter` tinyint DEFAULT NULL,
  `delimiter` varchar(31) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ordinal` smallint unsigned DEFAULT NULL,
  `created` timestamp NULL DEFAULT NULL,
  `modified` timestamp NULL DEFAULT NULL,
  `expires` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name_content` (`name`,`content_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;




/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

There’s no prefix shown on Fatal error: Uncaught mysqli_sql_exception: Table 'dev_demo.txp_meta' doesn't exist... – does that indicate a problem?

Offline

#5 2025-01-14 15:06:29

etc
Developer
Registered: 2010-11-11
Posts: 5,325
Website GitHub

Re: `custom-fields` branch demo

It does, unprefixed table name on line 201 of `txp_meta.php`. I don’t quite understand the conditional query used there and leave it with Stef.

Offline

#6 2025-01-14 15:14:38

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,327
GitHub

Offline

#7 2025-01-14 19:08:20

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,640
Website GitHub

Re: `custom-fields` branch demo

I’ll sort this later. Sorry about the mess up.


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

#8 2025-01-14 19:37:44

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,327
GitHub

Re: `custom-fields` branch demo

Bloke wrote #338785:

I’ll sort this later. Sorry about the mess up.

Absolutely no apology needed at all – and thank you.

Offline

Board footer

Powered by FluxBB