ancona5

Anonymous
ERROR

Matching CODE tag missing. Unable to format message.


ancona5

Anonymous
Hi guys ... my forum plugin has a problem!! when I click on a topic to read, I have this error:

Text Formatted Code
Warning: main(PHP/Compat.php): failed to open stream: No such file or directory in /home/ancona5/public_html/forum/include/gf_showtopic.php on line 39

Fatal error: main(): Failed opening required 'PHP/Compat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ancona5/public_html/forum/include/gf_showtopic.php on line 39
 


on line 39 of gf_showtopic.php there is this code:
Text Formatted Code
37 if( !function_exists( 'str_ireplace' ))
38 {
39     require_once( 'PHP/Compat.php' );
40     PHP_Compat::loadFunction( 'str_ireplace' );
41 }
 



what can I do?

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by ancona5: what can I do?


First of all, you could provide more details regarding forum version, GL version, etc.
Geeklog Polish Support Team

ancona5

Anonymous
sorry ...

geeklog 1.4.0sr5-1 and the forum plugin is Geeklog Forums Plugin 2.3

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
In this case Geelkog was shipped with required PEAR package (you could check it under system->pear->PHP).

Maybe you have in config.php
$_CONF['have_pear'] = false;
set to true.

Hope that helps
Geeklog Polish Support Team

ancona5

Anonymous
that setting was true ... setting to false make forum works!!!

but I have PHP 4.4.2 on my server and geeklog says that if I have PHP 4.3.0 or newer, I must set that to true ....

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
The function str_ireplace is only available as of PHP 5. The PEAR package PHP_Compat provides this function for older PHP versions. However, it looks like that package is not installed on your server, so you have to use the PEAR packages that come with Geeklog.

Please note that this is a requirement of the forum plugin, not of Geeklog itself.

bye, Dirk