Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 01:19 am EST
Geeklog Forums
Privmessages error
Status: offline
kemal
Forum User
Regular Poster
Registered: 04/05/05
Posts: 103
Location:Turkey
when i reading a messages giving this error
Warning: main(language/): failed to open stream: No such file or directory in /home/kcellat/public_html/mt/privmessages/viewmessage.php on line 32
Warning: main(): Failed opening 'language/' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kcellat/public_html/mt/privmessages/viewmessage.php on line 32
what is the problem??
_KEMAL_
Warning: main(language/): failed to open stream: No such file or directory in /home/kcellat/public_html/mt/privmessages/viewmessage.php on line 32
Warning: main(): Failed opening 'language/' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kcellat/public_html/mt/privmessages/viewmessage.php on line 32
what is the problem??
_KEMAL_
12
12
Quote
Status: offline
romantaran
Forum User
Junior
Registered: 03/19/05
Posts: 34
Location:Russia
You must place privmessages folder into public_html directory, where Geeklog lib-common.php is. The language folder must be in privmessages directory.
11
11
Quote
Status: offline
romantaran
Forum User
Junior
Registered: 03/19/05
Posts: 34
Location:Russia
In viewmessage.php find:
include_once('language/' . $pm_language);
and paste before it:
include_once('config.php');
include_once('language/' . $pm_language);
and paste before it:
include_once('config.php');
9
14
Quote
Status: offline
romantaran
Forum User
Junior
Registered: 03/19/05
Posts: 34
Location:Russia
well. try to install updated version, when it will be placed on the site. I have uploaded it
11
11
Quote
Status: offline
kemal
Forum User
Regular Poster
Registered: 04/05/05
Posts: 103
Location:Turkey
there is an error new version 1.1.0
Warning: phpblock_privmessages(/home/kcellat/public_html/mt/privmessages/language/): failed to open stream: Success in /home/kcellat/public_html/mt/system/lib-custom.php on line 322
Warning: phpblock_privmessages(): Failed opening '/home/kcellat/public_html/mt/privmessages/language/' for inclusion (include_path='/home/kcellat/public_html/mt/system/pear/:.:/usr/lib/php:/usr/local/lib/php') in /home/kcellat/public_html/mt/system/lib-custom.php on line 322
i thing problem is php block???
_KEMAL_
Warning: phpblock_privmessages(/home/kcellat/public_html/mt/privmessages/language/): failed to open stream: Success in /home/kcellat/public_html/mt/system/lib-custom.php on line 322
Warning: phpblock_privmessages(): Failed opening '/home/kcellat/public_html/mt/privmessages/language/' for inclusion (include_path='/home/kcellat/public_html/mt/system/pear/:.:/usr/lib/php:/usr/local/lib/php') in /home/kcellat/public_html/mt/system/lib-custom.php on line 322
i thing problem is php block???
_KEMAL_
11
10
Quote
Status: offline
romantaran
Forum User
Junior
Registered: 03/19/05
Posts: 34
Location:Russia
I don't know, how to correct this problem. I had it in one of my sites, and in another site and at localhost there were no problems. The only method I know, is to use phpblock_privmessages function from previous version.
///////////////////////////////////////////////////////////
// Privmessages module's block
///////////////////////////////////////////////////////////
function phpblock_privmessages() {
global $_USER, $_CONF, $_TABLES;
$uid = $_USER['uid'];
if($uid > 1) {
$sql = "SELECT * FROM privmessages WHERE to_uid = $uid";
$result = DB_query($sql);
$nrows = DB_numRows($result);
// ïðîâåðêà íîâûõ ñîîáùåíèé
$sql = "SELECT * FROM privmessages WHERE to_uid = $uid AND status = 1";
$new_result = DB_query($sql);
$new_nrows = DB_numRows($new_result);
if($nrows == 0 && $new_nrows == 0) { // Åñëè âõîäÿùèõ íåò
$result = 'There are no incoming messages.<br><a href="' . $_CONF['site_url'] . '/privmessages/">Create</a>';
}
else {
$result = 'New messages: <b>' . $new_nrows . '</b>. <br>';
$result .= 'Sum total messages: <b>' . $nrows . '</b>. <br><a href="' . $_CONF['site_url'] . '/privmessages/">View</a>';
}
}
else {
$result = "This module is available only for registered users";
}
Return $result;
}
///////////////////////////////////////////////////////////
Text Formatted Code
///////////////////////////////////////////////////////////
// Privmessages module's block
///////////////////////////////////////////////////////////
function phpblock_privmessages() {
global $_USER, $_CONF, $_TABLES;
$uid = $_USER['uid'];
if($uid > 1) {
$sql = "SELECT * FROM privmessages WHERE to_uid = $uid";
$result = DB_query($sql);
$nrows = DB_numRows($result);
// ïðîâåðêà íîâûõ ñîîáùåíèé
$sql = "SELECT * FROM privmessages WHERE to_uid = $uid AND status = 1";
$new_result = DB_query($sql);
$new_nrows = DB_numRows($new_result);
if($nrows == 0 && $new_nrows == 0) { // Åñëè âõîäÿùèõ íåò
$result = 'There are no incoming messages.<br><a href="' . $_CONF['site_url'] . '/privmessages/">Create</a>';
}
else {
$result = 'New messages: <b>' . $new_nrows . '</b>. <br>';
$result .= 'Sum total messages: <b>' . $nrows . '</b>. <br><a href="' . $_CONF['site_url'] . '/privmessages/">View</a>';
}
}
else {
$result = "This module is available only for registered users";
}
Return $result;
}
///////////////////////////////////////////////////////////
13
11
Quote
All times are EST. The time is now 01:19 am.
- 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