Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-08-27 21:53:23

Suzone
New Member
From: Vienna, AT
Registered: 2014-08-27
Posts: 4

Cannot use plugin cxc template with TXP 4.4.1

Hi, I’m new here and an absolute beginner in using TXP and programming. So, sorry if my question sounds stupid:

To use a template like Gespaa or Yoko, I need to install the cxc_templates plugin, which is compatible only with TXP 4.5.x. Unfortunately, TXP 4.5.x doesn’t work on my server (PHP vers.5.3.26, MySQL version 5.5.30-cll, Apache version 2.2.24). I get an error when trying to start TXP saying something about a wrong string or php “” instead of “(“.
I managed successfully to install TXP 4.4.1 (including some plugins), which works fine and I would keep that for the moment.

But I cannot apply the template I would like to use due to the compatibility problem with the plugin cxc_templates: I get a “Fatal error: Call to undefined function: scandir()” when going to extensions tab to start the template. I tried version 0.0.3 which at least was successfully installed – but it does only export the current template, and not import the new template.
The plugin ‘mcw_template’ works fine with TXP 4.4.1 – but not with these two templates.
Could anyone help me? Thanks a lot.

Last edited by Suzone (2014-08-27 22:18:20)

Offline

#2 2014-08-27 22:43:32

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: Cannot use plugin cxc template with TXP 4.4.1

Sorry, I can’t help you, but for security reasons it’s better for you to solve the problem about the install of the latest version of TXP instead the one about the template plugin.
Using the latest version of the plugins could help you in the future to smoothly upgrade to the future TXP releases.

Offline

#3 2014-08-27 23:38:12

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Cannot use plugin cxc template with TXP 4.4.1

I agree. I would try and install Textpattern 4.5.5 to see if it installs or what the issues maybe. What hosting server are you using?


…. texted postive

Offline

#4 2014-08-28 01:25:23

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Cannot use plugin cxc template with TXP 4.4.1

Suzone wrote #283272:

Unfortunately, TXP 4.5.x doesn’t work on my server (PHP vers.5.3.26, MySQL version 5.5.30-cll, Apache version 2.2.24). I get an error when trying to start TXP saying something about a wrong string or php “” instead of “(“.

I really think it is more productive to focus on getting 4.5.5 working on your server rather than trying to fix a problem with 4.4.1.

Offline

#5 2014-08-28 06:30:19

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

Re: Cannot use plugin cxc template with TXP 4.4.1

Suzone wrote #283272:

PHP vers.5.3.26, MySQL version 5.5.30-cll, Apache version 2.2.24

Actually, that ticks the boxes for the minimum spec, so if that’s accurate you may be OK running 4.5.x after all.

Is this the error you get (roughly):

Parse error: syntax error, unexpected '=', expecting ')' in /path/to/site/www.example.com/httpdocs/textpattern/lib/txplib_misc.php on line 875

Here’s something to try: run phpinfo to confirm the version of PHP via the browser. That is to say, see what’s actually used rather than what your host control panel is reporting. Get this into a .php file, upload it and run it from your browser:

<?php phpinfo();?>

What version do you see?

Offline

#6 2014-08-28 14:45:23

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Cannot use plugin cxc template with TXP 4.4.1

Suzone as gaekwad said. – create a file called info.php. edit the file and insert

<?php phpinfo();?> 

into that file. Upload the file to the root of your server (where your textpattern directory is)
then point your browser to http://mysite.com/info.php

Last edited by bici (2014-08-28 14:45:45)


…. texted postive

Offline

#7 2014-08-29 10:43:21

Suzone
New Member
From: Vienna, AT
Registered: 2014-08-27
Posts: 4

Re: Cannot use plugin cxc template with TXP 4.4.1

Hello, thanks to all for the replies!
I also think that it would be better to focus on the installation of TXP 4.5.5. I’ve tried several times, but unfortunately it does not work, although it seems that my server fulfills all requirements for this version, as far as I understood: PHP vers.5.3.26, MySQL version 5.5.30-cll, Apache version 2.2.24

gaekwad and bici, I also checked the php version via running the phpinfo script, and in fact, you are right! The version differs from the cpanel – it is PHP Version 4.4.9. I just sent a ticket to the helpdesk of my provider to check whether they can upgrade the version.

Thank you – I hope the new version works then!

Last edited by Suzone (2014-08-29 10:44:23)

Offline

#8 2014-08-29 10:46:07

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

Re: Cannot use plugin cxc template with TXP 4.4.1

Suzone wrote #283336:

I also checked the php version via running the phpinfo script, and in fact, you are right! The version differs from the cpanel – it is PHP Version 4.4.9. I just sent a ticket to the helpdesk fo my provider to check, whether they can upgrade the version.

This is very likely to be what was causing the Textpattern 4.5 install problems, if they can upgrade you (and they should), the Textpattern upgrade should be straightforward. For info, PHP 4.4.9 was released about 6 years ago. Yikes.

Offline

#9 2014-08-29 10:57:02

Suzone
New Member
From: Vienna, AT
Registered: 2014-08-27
Posts: 4

Re: Cannot use plugin cxc template with TXP 4.4.1

gaekwad wrote #283337:

This is very likely to be what was causing the Textpattern 4.5 install problems, if they can upgrade you (and they should), the Textpattern upgrade should be straightforward. For info, PHP 4.4.9 was released about 6 years ago. Yikes.

ok, wow.. well, the provider is quite moderate in prices and I seem to be an easy user ;-)

Offline

#10 2014-08-29 11:25:33

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

Re: Cannot use plugin cxc template with TXP 4.4.1

Suzone wrote #283336:

The version differs from the cpanel – it is PHP Version 4.4.9.

Some hosts run parallel versions of PHP for compatability, instead of just forcing upgrades to the latest version and potentially breaking everyone’s sites. If you search their documentation you may find reference about your ability to choose the PHP platform for a particular site.

My hoster for instance, on the older servers before they migrated everyone, defaulted to PHP 4, but allowed you to elect PHP 5 by adding this line to your .htaccess file:

AddHandler application/x-httpd-php5 .php

You may find your host offers something similar. If so, add whatever they recommend to Textpattern’s .htaccess file (which may be hidden if you’re on Mac) and Txp 4.5.5 should then install.

Hope that helps.


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

#11 2014-08-29 12:33:20

Suzone
New Member
From: Vienna, AT
Registered: 2014-08-27
Posts: 4

Re: Cannot use plugin cxc template with TXP 4.4.1

Thx for this hint, Bloke. There is actually a php config option provided where I can choose PHP 4 or PHP 5, as I realized now (it’s was a bit hidden). I will try whether adapting the htaccess bypasses the need to change this config since I have other databases running on this domain too.

Offline

Board footer

Powered by FluxBB