+ Reply to Thread
Results 1 to 5 of 5

Thread: PHPBB & Cutenews error

  1. #1
    Empyrean is offline x10Hosting Member Empyrean is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    15

    PHPBB & Cutenews error

    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:
    Catchable fatal error: Object of class template could not be converted to string in /home/empyrean/public_html/cutenews/inc/functions.inc.php on line 20
    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 by Empyrean; 01-01-2009 at 12:30 AM.

  2. #2
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: PHPBB & Cutenews error

    post the code at and around line 20. so post lines 15-25 and it'll help us help u ;)

  3. #3
    Empyrean is offline x10Hosting Member Empyrean is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    15

    Re: PHPBB & Cutenews error

    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"]; }

  4. #4
    brunoais is offline x10 Sophmore brunoais is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    111

    Re: PHPBB & Cutenews error

    there is no line 20... if
    Code:
    //----------------------------------
    is the page 15 then there is nothing in the line 20

  5. #5
    Empyrean is offline x10Hosting Member Empyrean is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    15

    Re: PHPBB & Cutenews error

    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.

+ Reply to Thread

Similar Threads

  1. 500 during posting in phpBB
    By ktomega in forum Free Hosting
    Replies: 3
    Last Post: 12-23-2008, 11:07 AM
  2. PHPBB 3 help ERROR
    By Anna_Babes in forum Free Hosting
    Replies: 7
    Last Post: 04-24-2008, 11:35 PM
  3. Phpbb 3 RC 7 Installation Error
    By tanjiajun_34 in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 11-26-2007, 05:51 AM
  4. {req} Banners
    By SEŅOR in forum The Marketplace
    Replies: 23
    Last Post: 01-05-2006, 03:15 PM
  5. need help with cashmod for phpbb
    By IamShipon1988 in forum Free Hosting
    Replies: 5
    Last Post: 10-05-2005, 03:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers