Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2014-01-05 12:19:55
- Marcos
- Member
- Registered: 2004-04-08
- Posts: 70
[Solved] parse error in tag
Hi.
I did a new installation of txp and I got a parse error when I tried to load index.php. Searching here I got a solution: change the function yield() to function yield2().
Now, I can see the index and post new article, and modify everything in the admin installation, but I get a parse error always I try to txp_tag.php: when I try to get the html code of an image or when I try to use the tag builder.
Some idea?
Thanks in advance.
Last edited by uli (2014-01-05 20:22:15)
Offline
#2 2014-01-05 13:49:25
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: [Solved] parse error in tag
Marcos, did you install TXP v4.5.5? The last poster in this topic seems to be content with his versions combo. Seems that your yield2
hack stems from that topic, so you might have missed the last post because of Gallex’s exultation on yield2, some posts above.
In case it is 4.5.5 already you still have the options Gocom mentions in the same topic, here, until the potential new issues(?) are fixed.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#3 2014-01-05 14:52:05
- Marcos
- Member
- Registered: 2004-04-08
- Posts: 70
Re: [Solved] parse error in tag
Ok, I see. I can not come back to last version of PHP, then I must to remove the function… can you, please, give me precise instructions to do it?
Offline
#4 2014-01-05 15:34:02
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: [Solved] parse error in tag
Did you install 4.5.5 (which has a fix for the yield issue) or did you install a version prior to 4.5.5?
Edited to add: If there’s still an issue with 4.5.5 and PHP 5.5 it’d be good to know and let it get to our devs’ attention.
Last edited by uli (2014-01-05 15:40:38)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#5 2014-01-05 15:52:12
- Marcos
- Member
- Registered: 2004-04-08
- Posts: 70
Re: [Solved] parse error in tag
Yes, I have installed 4.5.5… and PHP version is 5.4.
Offline
#6 2014-01-05 16:07:17
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: [Solved] parse error in tag
Marcos, can you please post the exact error message and your diagnostics? TXP should run fine on PHP 5.4, and a parse error isn’t solely connected to the yield issue.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#7 2014-01-05 16:11:54
- Marcos
- Member
- Registered: 2004-04-08
- Posts: 70
Re: [Solved] parse error in tag
Ok, for example:
In the tag builder, permalink: <code>Parse error: syntax error, unexpected $end in /home1/librodel/public_html/textpattern/include/txp_tag.php on line 2441</code>
In the “Image tab”, html tag: <code>Parse error: syntax error, unexpected $end in /home1/librodel/public_html/textpattern/include/txp_tag.php on line 2441</code>
Diagnostics (are in spanish, if you want I can change for you the language of site and get them in english):
Versión de Textpattern: 4.5.5 (r5575)
Última actualización: 2014-01-03 14:24:56/2014-01-03 13:12:48
Document root: /home1/librodel/public_html
$path_to_site: /home1/librodel/public_html
Ruta a Textpattern: /home1/librodel/public_html/textpattern
Modo de enlace permanente: section_id_title
Ruta al directorio temporal: /home1/librodel/public_html/textpattern/tmp
URL del sitio: librodeloscuervos.com
Versión de PHP: 5.2.17
GD Graphics Library: bundled (2.0.34 compatible); formatos soportados: GIF, JPG, PNG.
Servidor TZ: America/Denver
Tiempo local del servidor: 2014-01-05 09:10:26
¿Activar horario de verano?: 0
¿Ajustar automáticamente la preferencia ‘Horario de verano’?: 0
Zona Horaria: Europe/Madrid (3600)
MySQL: 5.5.35-log
Local: es_ES.UTF-8
Servidor: Apache
PHP Server API: cgi-fcgi
Cabeceras RFC 2616: 0
Sistema operativo del servidor: Linux 2.6.32-20130307.60.9.bh6.x86_64
Plugins activos: rss_auto_excerpt-0.5, chh_if_data-0.10, etz_striptags-0.2, arc_social_share-1.1m, cxc_templates-0.4.5
Tema de administración: din 4.5.5
Comprobación previa:
————————————
Algunos archivos de Textpattern han sido modificados:
/home1/librodel/public_html/textpattern/include/txp_tag.php,
/home1/librodel/public_html/textpattern/publish/taghandlers.php
————————————
Contenidos del archivo .htaccess:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
————————————
Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
17 Tables: OK
10 Campos personalizados: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10)
Extensiones de PHP: date/5.2.17, libxml, openssl, pcre, zlib/1.1, bcmath, bz2, calendar, ctype, curl, dba, dbase, dom/20031129, hash/1.0, filter/0.11.0, ftp, gd, gettext, gmp, session, iconv, standard/5.2.17, json/1.2.1, ldap, mbstring, mcrypt, mhash, mime_magic/0.1, mysql/1.0, SimpleXML/0.1, ncurses, odbc/1.0, pcntl, SPL/0.2, PDO/1.0.4dev, pdo_dblib/1.0.1, pdo_mysql/1.0.2, PDO_ODBC/1.0.1, pdo_pgsql/1.0.2, pdo_sqlite/1.0.1, pgsql, posix, pspell, readline, Reflection/0.1, imap, shmop, mysqli/0.1, soap, sockets, SQLite/2.0-dev, exif/1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $, sysvmsg, sysvsem, sysvshm, tidy/2.0, tokenizer/0.1, wddx, xml, xmlreader/0.1, xmlrpc/0.51, xmlwriter/0.1, xsl/0.1, zip/1.8.11, cgi-fcgi, Zend Optimizer
pretext_data: array (
‘status’ => ‘200’,
‘id’ => ‘’,
‘s’ => ‘’,
‘c’ => ‘’,
‘context’ => ‘’,
‘q’ => ‘’,
‘m’ => ‘’,
‘pg’ => ‘’,
‘p’ => ‘’,
‘month’ => ‘’,
‘author’ => ‘’,
‘request_uri’ => ‘/b7b0804728a4987320f2a525701846d0/?txpcleantest=1’,
‘qs’ => ‘txpcleantest=1’,
‘subpath’ => ‘\\/’,
‘req’ => ‘/b7b0804728a4987320f2a525701846d0/?txpcleantest=1’,
)
/home1/librodel/public_html/index.php:
r4086 (7c8f7b74a3d44eaf4d8e221dbe1de536)
/home1/librodel/public_html/css.php:
r4086 (7b429045ff48c3461fc4ba37de2cf500)
/home1/librodel/public_html/textpattern/css.php:
r3189 (c455346b3d1c5abf5b45d2e8ccea590e)
/home1/librodel/public_html/textpattern/include/import/import_b2.php:
r3997 (397579d273b3dd2f20e663ee84e88574)
/home1/librodel/public_html/textpattern/include/import/import_blogger.php:
r3901 (4cda4a23d9f76081e4a443ea12bf7fc5)
/home1/librodel/public_html/textpattern/include/import/import_mt.php:
r3446 (5b5999bbb8a29e372fdad09f9cc5e016)
/home1/librodel/public_html/textpattern/include/import/import_mtdb.php:
r3997 (dacbf7179ca5216e752de57de8e0122f)
/home1/librodel/public_html/textpattern/include/import/import_wp.php:
r3997 (2cd0575f9eb8915547005c34ed290f6b)
/home1/librodel/public_html/textpattern/include/txp_admin.php:
r4092 (cfa50f672a5fde5dcfdcb5f0f8e815f8)
/home1/librodel/public_html/textpattern/include/txp_article.php:
r4270 (0112b048dabfc7702cb0584b36dea2c9)
/home1/librodel/public_html/textpattern/include/txp_auth.php:
r3964 (cb35dd5f4861157e9fbdf0fff31b0fe1)
/home1/librodel/public_html/textpattern/include/txp_category.php:
r4972 (e9b6e89fca3e4df146adf0c4f33fa8b0)
/home1/librodel/public_html/textpattern/include/txp_css.php:
r4090 (705a4c8074a427ece2e17a3f442a8753)
/home1/librodel/public_html/textpattern/include/txp_diag.php:
r4192 (e5049ec19f0fb1b186ab97ea69b79f3f)
/home1/librodel/public_html/textpattern/include/txp_discuss.php:
r4089 (7e0e238adbcc9e1bf9d45dee98f0daa1)
/home1/librodel/public_html/textpattern/include/txp_file.php:
r4089 (7b00a49d22d9df75e271e947eb780890)
/home1/librodel/public_html/textpattern/include/txp_form.php:
r4156 (bc110432b581fb0764fef6236601b69b)
/home1/librodel/public_html/textpattern/include/txp_image.php:
r5084 (cb6e8dc1e09edbf29b89760fda8270da)
/home1/librodel/public_html/textpattern/include/txp_import.php:
r3997 (e8d53cc3a9cc2efb9edeaeee5b9dad12)
/home1/librodel/public_html/textpattern/include/txp_link.php:
r4089 (8b3878012b0bce4cebf0d7a67eb535a6)
/home1/librodel/public_html/textpattern/include/txp_list.php:
r4089 (45d5fc2987308057624d331be0d2dca3)
/home1/librodel/public_html/textpattern/include/txp_log.php:
r4062 (71a66ef82421e2d9e0bbb9248a084cab)
/home1/librodel/public_html/textpattern/include/txp_page.php:
r4873 (cba88dbb7bc3ab9d53a347dd43efd1ba)
/home1/librodel/public_html/textpattern/include/txp_plugin.php:
r5005 (94f17b9d962970a39f827bb5d8e42b0e)
/home1/librodel/public_html/textpattern/include/txp_prefs.php:
r4062 (94cd4b26dcca8346d55e1da7f6f822fd)
/home1/librodel/public_html/textpattern/include/txp_section.php:
r4089 (434cc7db21b65ebeac333e60157fb12b)
/home1/librodel/public_html/textpattern/include/txp_tag.php:
r4095 (d01ffc389cf2087568df09b79a01b3d8)
/home1/librodel/public_html/textpattern/index.php:
r5575 (54064df0385b5f4158e3a133a445fdac)
/home1/librodel/public_html/textpattern/jquery.js:
unknown (3576a6e73c9dccdbbc4a2cf8ff544ad7)
/home1/librodel/public_html/textpattern/lib/IXRClass.php:
r3394 (495fe307b8f0ded8914f9205a0642977)
/home1/librodel/public_html/textpattern/lib/admin_config.php:
r3896 (cd1d49c0d2d433c0fd6c7c4ec6145427)
/home1/librodel/public_html/textpattern/lib/class.thumb.php:
r3733 (3ab2785a4c31bb9d4bd5728189b1bc26)
/home1/librodel/public_html/textpattern/lib/classTextile.php:
r4096 (a0f75fce2e967e1a7303ad3a2a7fe83f)
/home1/librodel/public_html/textpattern/lib/constants.php:
r4060 (85b7fad72670ebb43c3b85d684dc0295)
/home1/librodel/public_html/textpattern/lib/taglib.php:
r2868 (ee10f1e37addac783128c28fd2ec20a7)
/home1/librodel/public_html/textpattern/lib/txplib_admin.php:
r3818 (6e2cd9a1fec5b5f2c2af27443c0c7c67)
/home1/librodel/public_html/textpattern/lib/txplib_db.php:
r3752 (65b836dbfe8852ac0279aadec8f932cd)
/home1/librodel/public_html/textpattern/lib/txplib_forms.php:
r4872 (ee8c3b93e718e918a16da27384c6ea65)
/home1/librodel/public_html/textpattern/lib/txplib_head.php:
r3989 (e30bf0ea28e14d17842554e6a1c1faee)
/home1/librodel/public_html/textpattern/lib/txplib_html.php:
r4163 (9f314c018602a19a25ecc0294530f22f)
/home1/librodel/public_html/textpattern/lib/txplib_misc.php:
r4816 (778c774bbc3bfd21fbc9091dd8af7832)
/home1/librodel/public_html/textpattern/lib/txplib_publish.php:
r5569 (85b7467371d5243cf2f91d9e357f38fb)
/home1/librodel/public_html/textpattern/lib/txplib_theme.php:
r3944 (75e2ed6c231d81485028fa991e459376)
/home1/librodel/public_html/textpattern/lib/txplib_update.php:
r4020 (89cdcf59b9312cccd178b33278b803e9)
/home1/librodel/public_html/textpattern/lib/txplib_validator.php:
r3802 (4f44f94088d0b8cd943b4f0149e83c67)
/home1/librodel/public_html/textpattern/lib/txplib_wrapper.php:
r2931 (6934a3894a9fa7f2cc310c9be3d698c0)
/home1/librodel/public_html/textpattern/publish.php:
r4461 (2ab8e2901040c317bce940ba8d8013fa)
/home1/librodel/public_html/textpattern/publish/atom.php:
r4011 (c365392b69fcdfc639fe91aca967cea6)
/home1/librodel/public_html/textpattern/publish/comment.php:
r4058 (858fa22746e23af64369ae661937decc)
/home1/librodel/public_html/textpattern/publish/log.php:
r3505 (0e4df284a74748c87946438828c232dc)
/home1/librodel/public_html/textpattern/publish/rss.php:
r4011 (c9b6f913f2116d62e4f2a246b625d2d1)
/home1/librodel/public_html/textpattern/publish/search.php:
r2812 (cede84b93e80c3d3ea82dcffb13841d7)
/home1/librodel/public_html/textpattern/publish/taghandlers.php:
r5569 (828dd0992559da90c4b002c702a5c942)
/home1/librodel/public_html/textpattern/textpattern.js:
r5004 (e784f52cac5356e7f28d16647d94a562)
/home1/librodel/public_html/textpattern/theme/classic/classic.php:
r4055 (c667673480e072ad61da66e7c33dfc15)
/home1/librodel/public_html/textpattern/update/_to_1.0.0.php:
r4011 (6465dd220dbe0e77bf4cf47411d8bfae)
/home1/librodel/public_html/textpattern/update/_to_4.0.2.php:
r4011 (840b6f94abc9c248458020cec8d4aa56)
/home1/librodel/public_html/textpattern/update/_to_4.0.3.php:
r4011 (fa08b73c287c1fb8cfa349471986a68b)
/home1/librodel/public_html/textpattern/update/_to_4.0.4.php:
r4011 (06912f2b293d284ffbb2ebc5fcb3fff1)
/home1/librodel/public_html/textpattern/update/_to_4.0.5.php:
r4011 (6cacc8b80e88750434cce73a327d7107)
/home1/librodel/public_html/textpattern/update/_to_4.0.6.php:
r4011 (8f76b9e8e2e13a6969f05fc1309997a0)
/home1/librodel/public_html/textpattern/update/_to_4.0.7.php:
r4011 (8d46ad11dd81b8884307c92c1e59f1ff)
/home1/librodel/public_html/textpattern/update/_to_4.0.8.php:
r3057 (8580c3ed413afbfe812876d7b7acbeea)
/home1/librodel/public_html/textpattern/update/_to_4.2.0.php:
r4011 (fd7ba1886e6e624e7958a65bbcb9f006)
/home1/librodel/public_html/textpattern/update/_to_4.3.0.php:
r4011 (33c861b017dd3c223ba834f30c5ea349)
/home1/librodel/public_html/textpattern/update/_to_4.4.0.php:
r4011 (12f0889bfb5c87ac1f609ee7a255b56b)
/home1/librodel/public_html/textpattern/update/_to_4.4.1.php:
r4011 (024b592e28689bd384af9991c8e9f833)
/home1/librodel/public_html/textpattern/update/_to_4.5.0.php:
r4020 (e3aefaa6d3b4a6b21a435bdde2fa8c85)
/home1/librodel/public_html/textpattern/update/_update.php:
r5572 (70b45a49957f60ac2993b2d759bb4309)
————————————
Offline
#8 2014-01-05 16:27:50
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: [Solved] parse error in tag
These are the errors for the patched version. I think it would be better to get a factory 4.5.5 running, so assume it would be more interesting for the devs to have information on the unchanged installation, but then you can’t login anymore?
Edit: Think-o ;)
Last edited by uli (2014-01-05 16:28:36)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#9 2014-01-05 16:32:24
- Marcos
- Member
- Registered: 2004-04-08
- Posts: 70
Re: [Solved] parse error in tag
Um… Yes, if I change again the function yield2() to function yield()? I could not login again to get the diagnostic :(
Offline
#10 2014-01-05 16:53:17
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: [Solved] parse error in tag
Have you thought of disabling the plugins prior to patching TXP? If not, you could now disable them, then revert the two files and see what happens. If the errors are gone, enable the plugins again, one by one and hereby isolate any potential culprit.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: [Solved] parse error in tag
According to your diagnostics, the server you have your site on is running PHP 5.2.17. What makes you think it is running PHP 5.4?
The problems with the yield() function only occur with Textpattern 4.5.4 and lower running on PHP 5.5, so Textpattern 4.5.5 on PHP 5.2.17 should present no problems.
Have you tried downloading Textpattern again and installing a clean version (no plugins) to see if you can get that working on the server?
Offline
#12 2014-01-05 17:15:41
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: [Solved] parse error in tag
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline