Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-03-12 23:28:09

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

[solved] Parse error ... 'yield' (T_YIELD)

Getting this consistently across my domains at Kaizen Garden. Sites are all running Txp…

Parse error: syntax error, unexpected ‘yield’ (T_YIELD), expecting ‘(’ in /users/home/[user]/domains/[domain]/web/public/textpattern/publish/taghandlers.php on line 313

KG’s servers run PHP 5.5.4 (says their specs), and it doesn’t look like downgrades are possible (says Jacques).

Host compatibility issue? ;)

Last edited by Gocom (2014-03-30 09:44:59)

Offline

#2 2014-03-12 23:37:43

lazyadmin
Member
From: Germany
Registered: 2009-08-08
Posts: 25
Website

Re: [solved] Parse error ... 'yield' (T_YIELD)

Destry wrote #279701:

Host compatibility issue? ;)

It’s a PHP 5.5.x issue.
You could either switch to the nightly builds or patch two files to get rid of the bug.

Last edited by lazyadmin (2014-03-12 23:38:27)

Offline

#3 2014-03-12 23:41:04

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: [solved] Parse error ... 'yield' (T_YIELD)

lazyadmin wrote #279702:

It’s a PHP 5.5.x issue.
You could either switch to the nightly builds or patch two files to get rid of the bug.

Thank you.

Offline

#4 2014-03-30 09:44:42

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [solved] Parse error ... 'yield' (T_YIELD)

The first Textpattern version that is compatible with PHP 5.5 and greater is 4.5.5. You can safely update to it if you are already running a 4.5.x release. Running nightlies in production is not necessary or even advised.

Offline

#5 2014-03-30 13:36:00

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: [solved] Parse error ... 'yield' (T_YIELD)

Yep. Running 4.5.5 and all is well.

Offline

Board footer

Powered by FluxBB