Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 08:11 pm EDT

Geeklog Forums

Forum error on new post


Status: offline

Chaos Creator

Forum User
Junior
Registered: 02/10/08
Posts: 24
Location:Asheville, NC
I get the following error when I try to post a new topic in the forum, followed by all kinds of arrays:

An error has occurred:
2 - main(PHP/Compat.php): failed to open stream: No such file or directory @ /home/www/therealmsbeyond.com/forum/include/gf_showtopic.php line 52


It points to this line:

Text Formatted Code
if( !function_exists( 'str_ireplace' ))
{
    require_once( 'PHP/Compat.php' );
    PHP_Compat::loadFunction( 'str_ireplace' );
}


Does this mean my host doesn't provide this Compat.php file or that I'm missing a file? Is there a workaround?
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
The str_ireplace function was added for PHP5 and if your are running an earlier version of PHP, then you need the PEAR compat package installed.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Chaos Creator

Anonymous
Is PHP5 required to run forum plugin? I'll have to look at my host's PHP settings...
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
No thats why you use the compat library to provide the compatibility for older PHP4 installations.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Chaos Creator

Anonymous
Got ya. Okay. I got the issue resolved, so everything's great. Thanks.
I have another question, though.
I was originally trying to use SMTP to send mail out of my site. I got all the relevant information from my host and set it up in the config.php file. But for some reason it wouldn't send.
I switched to sendmail, and it works fine. The only problem is, the emails are usually marked as spam by the recipient's mail service.
I can deal with that, I suppose, but if you have any ideas as to how to get the SMTP to work, I'd greatly appreciate it.
 Quote

All times are EDT. The time is now 08:11 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content