Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 07:50 pm EST

Geeklog Forums

Error while trying to add new topic


Status: offline

vas

Forum User
Newbie
Registered: 01/21/08
Posts: 9
Location:Chennai, India
i receive this message when i tried to add new topic after i installed the forum plugin.

An error has occurred:
2 - main(PHP/Compat.php): failed to open stream: No such file or directory @ /mysite/weblog/public_html/forum/include/gf_showtopic.php line 44

why? please help
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
PHP::Compat is a PEAR package that provides backward-compatibility for certain PHP functions. We ship it with Geeklog, so make sure you have PEAR configured correctly: Geeklog and PEAR

bye, Dirk
 Quote

Status: offline

vas

Forum User
Newbie
Registered: 01/21/08
Posts: 9
Location:Chennai, India
If you can't use ini_set and PEAR is not installed on your server, then you are out of luck and should consider switching hosting services.


I thing this is the case with my hosting service! Hard Luck!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Do you see a message about problems with ini_set in your error.log?

Try asking your hosting service for help.

Plan B would be to find all the places where we load PEAR packages and hard-code the path to the supplied packages (in system/pear) there. But that's quite a bit of work ...

bye, Dirk
 Quote

Status: offline

vas

Forum User
Newbie
Registered: 01/21/08
Posts: 9
Location:Chennai, India
Text Formatted Code

*** dummy entry ***
Tue 22 Jan 2008 11:47:46 CST - Attempting to install the forum Plugin
Tue 22 Jan 2008 11:47:46 CST - executing CREATE TABLE gl_forum_categories (
  cat_order smallint(4) NOT NULL default '0',
  cat_name varchar(255) NOT NULL default '',
  cat_dscp text NOT NULL,
  id int(2) NOT NULL auto_increment,
  PRIMARY KEY  (id)
) TYPE=MyISAM;
Tue 22 Jan 2008 11:47:52 CST - executing CREATE TABLE gl_forum_forums (
  forum_order int(4) NOT NULL default '0',
  forum_name varchar(255) NOT NULL default '0',
  forum_dscp text NOT NULL,
  forum_id int(4) NOT NULL auto_increment,
  forum_cat int(3) NOT NULL default '0',
  grp_id mediumint(8) NOT NULL default '2',
  is_hidden tinyint(1) NOT NULL default '0',
  is_readonly tinyint(1) NOT NULL default '0',
  no_newposts tinyint(1) NOT NULL default '0',
  topic_count mediumint(8) NOT NULL default '0',
  post_count mediumint(8) NOT NULL default '0',
  last_post_rec mediumint(8) NOT NULL default '0',
  PRIMARY KEY  (forum_id),
  KEY forum_cat (forum_cat),
  KEY forum_id (forum_id)
) TYPE=MyISAM;
Tue 22 Jan 2008 11:47:53 CST - executing CREATE TABLE gl_forum_topic (
  id mediumint(8) NOT NULL auto_increment,
  forum int(3) NOT NULL default '0',
  pid mediumint(8) NOT NULL default '0',
  uid mediumint(8) NOT NULL default '0',
  name varchar(50) default NULL,
  date varchar(12) default NULL,
  lastupdated varchar(12) default NULL,
  last_reply_rec mediumint(8) NOT NULL default '0',
  email varchar(50) default NULL,
  website varchar(100) NOT NULL default '',
  subject varchar(100) NOT NULL default '',
  comment longtext,
  postmode varchar(10) NOT NULL default '',
  replies bigint(10) NOT NULL default '0',
  views bigint(10) NOT NULL default '0',
  ip varchar(255) default NULL,
  mood varchar(100) default 'indifferent',
  sticky tinyint(1) NOT NULL default '0',
  moved tinyint(1) NOT NULL default '0',
  locked tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (id),
  KEY `forum_idx` (`forum`),
  KEY `idxtopicuid` (`uid`),
  KEY `idxtopicpid` (`pid`),
  KEY `idxdate` (`date`),
  KEY `idxlastdate` (`lastupdated`)
) TYPE=MyISAM;
Tue 22 Jan 2008 11:47:54 CST - executing CREATE TABLE gl_forum_log (
  uid mediumint(8) NOT NULL default '0',
  forum mediumint(3) NOT NULL default '0',
  topic mediumint(3) NOT NULL default '0',
  time varchar(40) NOT NULL default '0',
  KEY uid_forum (uid,forum),
  KEY uid_topic (uid,topic),
  KEY forum (forum)
) TYPE=MyISAM;
Tue 22 Jan 2008 11:47:54 CST - executing CREATE TABLE gl_forum_moderators (
  mod_id int(11) NOT NULL auto_increment,
  mod_uid mediumint(8) NOT NULL default '0',
  mod_groupid mediumint(8) NOT NULL default '0',
  mod_username varchar(30) default NULL,
  mod_forum varchar(30) default NULL,
  mod_delete tinyint(1) NOT NULL default '0',
  mod_ban tinyint(1) NOT NULL default '0',
  mod_edit tinyint(1) NOT NULL default '0',
  mod_move tinyint(1) NOT NULL default '0',
  mod_stick tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (mod_id)
) TYPE=MyISAM;
Tue 22 Jan 2008 11:47:55 CST - executing CREATE TABLE gl_forum_settings (
  slogan varchar(255) NOT NULL default '',
  registrationrequired tinyint(1) unsigned NOT NULL default '0',
  registerpost tinyint(1) unsigned NOT NULL default '0',
  allowhtml tinyint(1) unsigned NOT NULL default '1',
  glfilter tinyint(1) unsigned NOT NULL default '0',
  use_geshi_formatting tinyint(1) NOT NULL default '1',
  censor tinyint(1) unsigned NOT NULL default '1',
  showmood tinyint(1) unsigned NOT NULL default '1',
  allowsmilies tinyint(1) unsigned NOT NULL default '1',
  allowavatar tinyint(1) unsigned NOT NULL default '1',
  allow_notify tinyint(1) unsigned NOT NULL default '1',
  post_htmlmode tinyint(1) NOT NULL default '1',
  allow_userdatefmt tinyint(1) NOT NULL default '0',
  showiframe tinyint(1) unsigned NOT NULL default '1',
  autorefresh tinyint(1) NOT NULL default '1',
  refresh_delay tinyint(1) NOT NULL default '0',
  xtrausersettings tinyint(1) unsigned NOT NULL default '0',
  viewtopicnumchars int(4) NOT NULL default '20',
  topicsperpage int(4) NOT NULL default '10',
  postsperpage int(4) NOT NULL default '10',
  messagesperpage int(4) NOT NULL default '0',
  searchesperpage int(4) NOT NULL default '0',
  popular int(4) NOT NULL default '0',  
  speedlimit int(1) NOT NULL default '60',
  edit_timewindow int(11) NOT NULL default '3600',
  use_spamxfilter tinyint(1) NOT NULL default '0',
  use_smiliesplugin tinyint(1) NOT NULL default '0',
  use_pmplugin tinyint(1) NOT NULL default '0',
  imgset varchar(30) NOT NULL default '',
  cb_enable tinyint(1) NOT NULL default '0',
  cb_homepage tinyint(1) NOT NULL default '0',
  cb_where tinyint(1) NOT NULL default '0',
  cb_subjectsize tinyint(1) NOT NULL default '0',
  cb_numposts tinyint(1) NOT NULL default '0',  
  sb_subjectsize tinyint(1) NOT NULL default '0',
  sb_numposts tinyint(1) NOT NULL default '0',
  sb_latestposts tinyint(1) NOT NULL default '0',
  min_comment_len tinyint(1) NOT NULL default '0',
  min_name_len tinyint(1) NOT NULL default '0',
  min_subject_len tinyint(1) NOT NULL default '0',
  html_newline tinyint(1) NOT NULL default '0',
  level1 int(5) NOT NULL default '1',
  level2 int(5) NOT NULL default '15',
  level3 int(5) NOT NULL default '35',
  level4 int(5) NOT NULL default '70',
  level5 int(5) NOT NULL default '120',
  level1name varchar(40) NOT NULL default 'Newbie',
  level2name varchar(40) NOT NULL default 'Junior',
  level3name varchar(40) NOT NULL default 'Chatty',
  level4name varchar(40) NOT NULL default 'Regular Member',
  level5name varchar(40) NOT NULL default 'Active Member'
) TYPE=MyISAM;
Tue 22 Jan 2008 11:47:55 CST - executing CREATE TABLE gl_forum_userprefs (
  uid mediumint(8) NOT NULL default '0',
  topicsperpage int(3) NOT NULL default '5',
  postsperpage int(3) NOT NULL default '5',
  popularlimit int(3) NOT NULL default '10',
  messagesperpage int(3) NOT NULL default '20',
  searchlines int(3) NOT NULL default '20',
  viewanonposts tinyint(1) NOT NULL default '1',
  enablenotify tinyint(1) NOT NULL default '1',
  alwaysnotify tinyint(1) NOT NULL default '0',
  membersperpage int(3) NOT NULL default '20',
  showiframe tinyint(1) NOT NULL default '1',
  notify_once tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (uid)
) TYPE=MyISAM;
Tue 22 Jan 2008 11:47:55 CST - executing CREATE TABLE gl_forum_watch (
  id mediumint(8) NOT NULL auto_increment,
  forum_id mediumint(8) NOT NULL default '0',
  topic_id mediumint(8) NOT NULL default '0',
  uid mediumint(8) NOT NULL default '0',
  date_added date NOT NULL default '0000-00-00',
  PRIMARY KEY  (id),
  KEY uid (uid),
  KEY forum_id (forum_id),
  KEY topic_id (topic_id)
) TYPE=MyISAM;
Tue 22 Jan 2008 11:47:55 CST - executing CREATE TABLE gl_forum_banned_ip (
  host_ip varchar(255) default NULL,
  KEY index1 (host_ip)
) TYPE=MyISAM;
Tue 22 Jan 2008 11:47:56 CST - executing CREATE TABLE gl_forum_userinfo (
  `uid` mediumint(8) NOT NULL default '0',
  `location` varchar(128) NOT NULL default '',
  `aim` varchar(128) NOT NULL default '',
  `icq` varchar(128) NOT NULL default '',
  `yim` varchar(128) NOT NULL default '',
  `msnm` varchar(128) NOT NULL default '',
  `interests` varchar(255) NOT NULL default '',
  `occupation` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`uid`)
) TYPE=MyISAM COMMENT='Forum Extra User Profile Information';
Tue 22 Jan 2008 11:47:56 CST - Success - Created  table
Tue 22 Jan 2008 11:47:56 CST - Inserting default data into gf_settings table
Tue 22 Jan 2008 11:47:56 CST - Success - inserting data into gf_settings table
Tue 22 Jan 2008 11:47:56 CST - Inserting default data into block1 table
Tue 22 Jan 2008 11:47:57 CST - Success - inserting data into block1 table
Tue 22 Jan 2008 11:47:57 CST - Inserting default data into block2 table
Tue 22 Jan 2008 11:47:57 CST - Success - inserting data into block2 table
Tue 22 Jan 2008 11:47:57 CST - Attempting to create forum admin group
Tue 22 Jan 2008 11:47:57 CST - ...success
Tue 22 Jan 2008 11:47:57 CST - About to save group_id to vars table for use during uninstall
Tue 22 Jan 2008 11:47:57 CST - ...success
Tue 22 Jan 2008 11:47:57 CST - Adding forum.edit feature
Tue 22 Jan 2008 11:47:58 CST - Success
Tue 22 Jan 2008 11:47:58 CST - Adding forum.edit feature to admin group
Tue 22 Jan 2008 11:47:58 CST - Success
Tue 22 Jan 2008 11:47:58 CST - Adding forum.user feature
Tue 22 Jan 2008 11:47:58 CST - Success
Tue 22 Jan 2008 11:47:58 CST - Adding forum.user feature to admin group
Tue 22 Jan 2008 11:47:58 CST - Success
Tue 22 Jan 2008 11:47:58 CST - Attempting to give all users in Root group access to forum admin group
Tue 22 Jan 2008 11:47:59 CST - Registering forum plugin with Geeklog
Tue 22 Jan 2008 11:47:59 CST - Succesfully installed the forum Plugin!
 


Thats all in the weblog/logs/error.log

I dont know where the problem lies!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Assuming you have $_CONF['have_pear'] = false (which is the default), then Geeklog will try to set the proper path to its PEAR packages on every page. And if that fails, it would log "ini_set failed - there may be problems using the PEAR classes."

In other words, if something with the PEAR setup was wrong, you should have lots of those messages in your error.log.

Can you send emails from your Geeklog site? That's another function that depends on PEAR.

bye, Dirk
 Quote

Status: offline

vas

Forum User
Newbie
Registered: 01/21/08
Posts: 9
Location:Chennai, India
This is what is the response form my web server


We do have Pear installed on your web server and you may also use ini_set function in your php scripts, so please recheck it once again with your web application developers and let us know should you need any further assistance from our side.


Now that settles one issue. what else bugging me. could you please help?!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
So I assume sending emails from Geeklog worked? If so, this may be an issue with the Forum plugin.

bye, Dirk
 Quote

Status: offline

vas

Forum User
Newbie
Registered: 01/21/08
Posts: 9
Location:Chennai, India
Quote by: Dirk

So I assume sending emails from Geeklog worked? If so, this may be an issue with the Forum plugin.

bye, Dirk



what do you mean by "this is an issue with Forum Plugin" ?

My mistake or there is inherent problem in the software? is there a way can trouble shoot?

By the by, i tried mail users and send a mail to the user admin.

This is the message I got. Thanks Dirk!

Successfully sent 1 messages and unsuccessfully sent 0 messages. If you need them, the details of each message attempts is below. Otherwise you can Send another message or you can go back to the administration page.

Failures
No failures
Successes
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I meant that it could simply be a bug in the Forum plugin - in the way it tries to load that PEAR package.

Actually, this has already been discussed over on Blaine's site, it seems:

http://www.portalparts.com/forum/viewtopic.php?showtopic=7534
http://www.portalparts.com/forum/viewtopic.php?showtopic=5673

bye, Dirk
 Quote

All times are EST. The time is now 07:50 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