PHPBB & Cutenews error

Empyrean

New Member
Messages
15
Reaction score
0
Points
0
Hi, I somewhat need help on making a somewhat called "_toString" (sorry for not know much about php) in order to have my phpBB External Login work with Cutenews.

What I get from the pages that I use this code

Code:
<?php
define('IN_PHPBB', true);
// Directory your forum resides in - CHANGE IT
$phpbb_root_path = '/home/empyrean/public_html/forum/';
$forum_path = 'forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
?>

to a page that uses Cutenews, it results this...

Code:
[B]Catchable fatal error[/B]: Object of class template could not be converted to string in [B]/home/empyrean/public_html/cutenews/inc/functions.inc.php[/B] on line [B]20[/B]

I've tried to find solutions, but I'm not sure. In Support Chat someone told me to use a _toString, which I am not sure how to use it.

Could anyone help me?
 
Last edited:

xPlozion

New Member
Messages
868
Reaction score
1
Points
0
post the code at and around line 20. so post lines 15-25 and it'll help us help u ;)
 

Empyrean

New Member
Messages
15
Reaction score
0
Points
0
Here's the code from 15-25

Code:
//----------------------------------
// Sanitize Variables
//----------------------------------
if( isset($template) and $template != "" and !eregi("^[_a-zA-Z0-9-]{1,}$", $template)){ die("invalid template characters"); }
if( isset($archive) and $archive != "" and !eregi("^[_a-zA-Z0-9-]{1,}$", $archive)){ die("invalid archive characters"); }
 
if($PHP_SELF == ""){ $PHP_SELF = $_SERVER["PHP_SELF"]; }
 

brunoais

New Member
Messages
115
Reaction score
0
Points
0
there is no line 20... if
Code:
//----------------------------------
is the page 15 then there is nothing in the line 20
 

Empyrean

New Member
Messages
15
Reaction score
0
Points
0
Oh don't worry about it. I fixed it =]

Because my cutenews include went before the login, I had to switch my layout. So the navigation came first then the contents.

Thanks for your help though.
 
Top