Welcome to Geeklog Thursday, November 26 2020 @ 03:53 pm EST

Geeklog Forums

Privmessages error


Status: offline

kemal

Forum User
Regular Poster
Registered: 05/04/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_
 Quote

Status: offline

romantaran

Forum User
Junior
Registered: 19/03/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.
 Quote

Status: offline

romantaran

Forum User
Junior
Registered: 19/03/05
Posts: 34
Location:Russia
In viewmessage.php find:
include_once('language/' . $pm_language);
and paste before it:
include_once('config.php');
 Quote

Status: offline

kemal

Forum User
Regular Poster
Registered: 05/04/05
Posts: 103
Location:Turkey
ok.

Rolling Eyes but there is no "answer button" on page down Confused ..


_KEMAL_
 Quote

Status: offline

romantaran

Forum User
Junior
Registered: 19/03/05
Posts: 34
Location:Russia
well. try to install updated version, when it will be placed on the site. I have uploaded it Wink
 Quote

Status: offline

kemal

Forum User
Regular Poster
Registered: 05/04/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_
 Quote

Status: offline

romantaran

Forum User
Junior
Registered: 19/03/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.
PHP 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;
}
///////////////////////////////////////////////////////////

 
 Quote

Status: offline

kemal

Forum User
Regular Poster
Registered: 05/04/05
Posts: 103
Location:Turkey
yes, i am using old version of block with out problem...
_KEMAL_
 Quote

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