[Closed]: phpBB Simple Fetch [Closed]: phpBB Simple Fetch
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Closed]: phpBB Simple Fetch

Started by jonw, May 21, 2009, 04:21:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jonw

I recently upgraded to the latest version of coppermine (from 1.4.18). I am using phpBB fetch to fetch the user's name, the amount of users online, and how many messages are in the users inbox. I had this working without any problems on 1.4.18, now I get this error:

Template error
Failed to find block 'file_line'(#(<!-- BEGIN file_line -->)(.*?)(<!-- END file_line -->)#s) in :

       <tr>
               <td class="tableb" align="center">
                       <font size="3"><b>{MESSAGE}</b></font>


                       <br /><br />
               </td>
       </tr>



I have narrowed the problem down to including the phpbb common.php file:

include_once ($phpbb_root_path . 'common.' . $phpEx);

Omitting this line allows everything to work besides the user specific functions (such as logging in). I have gone through quite a bit of threads with this problem and I have not been able to find a solution. If this is not possible to fix, is there a website or a directory where I can download previous versions of coppermine? Thank you!

jonw

Forgot to include the address to my gallery, my apologies I don't see an edit button:

http://www.liteenbash.com/gallery/

Joachim Müller

I have no idea what phpbb simple fetch is. However, you're still running cpg1.4.18 - you haven't upgraded. Upgrade. If the problem persists, post what coppermine files you changed in which way. Not related to bridging imo. If the problem starts after including a non-coppermine file, ask the people who provide that non-coppermine file for support, not us. We can't support a third party tool that we don't know.

jonw

Oh sorry! Phpbb fetch allows you to fetch information from your phpbb board. The coppermine bridge is working without any problems and it has nothing to do with this problem. I would ask for support from the phpbb fetch team, but they no longer have an operational website. I have not modified anything other than classic's theme.php file. I added the following:

$phpbb_root_path = '../usercp/';

define ('IN_PHPBB', true);

if (!file_exists($phpbb_root_path . 'extension.inc'))
{
   die ('<tt><b>UserCP:</b>
      The userCP does not point to the correct file directory.</tt>');
}

//
// UserCP related files
//

include_once ($phpbb_root_path . 'extension.inc');
include_once ($phpbb_root_path . 'common.' . $phpEx);

//
// Fetch-All files
//

include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/common.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/stats.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/users.' . $phpEx);

//
// start session management
//

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

// fetch online users
$online = phpbb_fetch_online_users();

// fetch user online, total posts, etc
$stats = phpbb_fetch_stats();

phpbb_disconnect();

I will re-install coppermine again and test it again. Thanks!

jonw

I decided to modify the system menu and added what I needed myself. I no longer need any support for this, thanks =).