Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
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
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
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
Pages: 1