Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2020-07-22 04:11:03

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Textpattern 4.8.2 is nearly ready

philwareham wrote #324744:

Pretty sure you need to be testing 4.8 not Dev branch?

I first tested the one linked by Pete and yesterday i downloaded from github.com/textpattern/textpattern.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#38 2020-07-22 04:19:56

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,058
Website

Re: Textpattern 4.8.2 is nearly ready

colak wrote #324745:

I first tested the one linked by Pete and yesterday i downloaded from github.com/textpattern/textpattern.

yes that’s is TXP.next aka TXP-4.9.0-dev. What you want right now is this branch, which is the latest of the latest for TXP 4.8.2.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#39 2020-07-22 04:48:58

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Textpattern 4.8.2 is nearly ready

phiw13 wrote #324746:

yes that’s is TXP.next aka TXP-4.9.0-dev. What you want right now is this branch, which is the latest of the latest for TXP 4.8.2.

Great! Uploaded and I am only getting this error (added line breaks for legibility)


<pre dir="auto">Tag error: <b>&lt;txp:permlink /&gt;</b> -> 
<b> Warning: array_change_key_case() expects parameter 1 to be array, null given while parsing form
<strong>None</strong> on page <strong>default</strong></b></pre>
<pre dir="auto">Tag error: <b>&lt;txp:permlink /&gt;</b> -> 
<b> Warning: Invalid argument supplied for foreach() while parsing form <strong>None</strong>
on page <strong>default</strong></b></pre>

Having said that, the page appears that it is all there, and there are no visible issues when on live mode.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#40 2020-07-22 06:32:09

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,058
Website

Re: Textpattern 4.8.2 is nearly ready

It is a warning, it seems so nothing disastrous. That said, I don’t see anything here with __my_ use of <txp:permlink />, which means little of course.

What is the context in which the tag is used ? And also: anything special on the server set up?


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#41 2020-07-22 06:42:08

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Textpattern 4.8.2 is nearly ready

phiw13 wrote #324751:

It is a warning, it seems so nothing disastrous. That said, I don’t see anything here with __my_ use of <txp:permlink />, which means little of course.

What is the context in which the tag is used ? And also: anything special on the server set up?

Hi Philippe,

I think that the errors appear because I do not use a form/listform and favour container tags instead: <pre dir="auto">Tag error: <b>&lt;txp:permlink /&gt;</b> -> <b> Warning: array_change_key_case() expects parameter 1 to be array, null given while parsing form <strong>None</strong> on page <strong>default</strong></b></pre>

Last edited by colak (2020-07-22 06:45:54)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#42 2020-07-22 06:48:05

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

Re: Textpattern 4.8.2 is nearly ready

phiw13 wrote #324746:

yes that’s is TXP.next aka TXP-4.9.0-dev. What you want right now is this branch, which is the latest of the latest for TXP 4.8.2.

To clarify for anyone else reading – I posted this link:

github.com/textpattern/textpattern/archive/482-recovery-bloke.zip

…which is 4.8.2-dev at the time you download it. This is what will become 4.8.2 in the next day or so, barring any showstopping issues.

Offline

#43 2020-07-22 10:39:59

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

Re: Textpattern 4.8.2 is nearly ready

colak wrote #324752:

I think that the errors appear because I do not use a form/listform and favour container tags instead

Yes, but please would you post an example of your tag in use and its surrounding context (article list, individual article, etc), so we can try and emulate this?

As far as I can tell from the code we might be able to defend against this, but it’ll only happen if you’re not in individual article context and trying to (incorrectly) use the tag without an id attribute.


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

#44 2020-07-22 13:02:06

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Textpattern 4.8.2 is nearly ready

Bloke wrote #324764:

Yes, but please would you post an example of your tag in use and its surrounding context (article list, individual article, etc), so we can try and emulate this?

As far as I can tell from the code we might be able to defend against this, but it’ll only happen if you’re not in individual article context and trying to (incorrectly) use the tag without an id attribute.

There are a lot of intstances

ie


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#45 2020-07-22 13:20:39

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

Re: Textpattern 4.8.2 is nearly ready

colak wrote #324770:

article_id outside an article context

Not sure I follow. There are no permlink tags in those lines.

Permlink cannot be used outside an article context.

And all these, bar the Facebook usage, are in article scope so shouldn’t trigger any issue.

The Facebook line will throw an error, so maybe that one is the culprit and needs wrapping in some <txp:if_individual_article> context?


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

#46 2020-07-22 13:42:02

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Textpattern 4.8.2 is nearly ready

Sorry Stef, all the above through errors on debug. The last example demonstrates one of my permlinks which also shows as an error when on testing or debug.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#47 2020-07-22 13:53:06

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

Re: Textpattern 4.8.2 is nearly ready

colak wrote #324773:

Sorry Stef, all the above through errors on debug.

The <txp:article_id> tag cannot be used outside a corresponding article context, so the errors are expected.

The last example demonstrates one of my permlinks which also shows as an error when on testing or debug.

On 4.8.2-dev, I get “Unknown tag attribute: c10” when I try it. If I take that attribute out, the tag functions perfectly. What am I missing?


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

#48 2020-07-22 14:36:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Textpattern 4.8.2 is nearly ready

C10 is a custom field so it is expected that you may get an error there. Apologies guys, I am juggling too many converging, pre holiday, deadlines… yet again. The errors I get are only when I am on debug or testing mode. When I switch to live mode the site behaves as expected.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB