Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-07-07 18:17:16

TomBus
Member
From: Bavaria
Registered: 2005-07-06
Posts: 85

txp_plugin.php on line 152

I do not have success to install a plugin in 1.0rc3.
Always i get this message : “Warning: Wrong parameter count for highlight_string() in /home/fimf/htdocs/textpattern/include/txp_plugin.php on line 152”
Does somebody have an idea?
TomBus

Offline

#2 2005-07-07 18:24:52

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

Re: txp_plugin.php on line 152

do you use the latest subversion from <a href=“http://dev.textpattern.com/browser/current/”>http://dev.textpattern.com/browser/current/</a>, if not try that one.


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

Offline

#3 2005-07-07 19:01:08

TomBus
Member
From: Bavaria
Registered: 2005-07-06
Posts: 85

Re: txp_plugin.php on line 152

Thank You! I did it now, but i still got this message. In all my textpattern websites i have this problem. Perhaps it is the server?

Offline

#4 2005-07-08 03:55:59

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: txp_plugin.php on line 152

I’m thinking it’s the version of php on your server. Check the diagnostics tab for the php version.

The help for highlight_string() has this note.

The return parameter became available in PHP 4.2.0. Before this time it behaved like the default, which is FALSE

Offline

#5 2005-07-08 05:10:40

TomBus
Member
From: Bavaria
Registered: 2005-07-06
Posts: 85

Re: txp_plugin.php on line 152

Hi, it is the PHP-Version: 4.1.2. What can I do now?

Offline

#6 2005-07-08 08:41:25

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: txp_plugin.php on line 152

Exchange line 152 in your /textpattern/include/txp_plugin.php file (<code>$source = highlight_string($plugin[‘code’], true);</code>) with:

<code>$source = $plugin[‘code’];</code>

As far as I understand the highlight function, this should work.

Offline

#7 2005-07-08 11:20:53

TomBus
Member
From: Bavaria
Registered: 2005-07-06
Posts: 85

Re: txp_plugin.php on line 152

i changed the line (here it was 155) and it works now :)
thank You very much

Offline

Board footer

Powered by FluxBB