TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: Renegd98 on May 28, 2009, 11:34:15 PM

Title: [bugtracker] Fatal error when creating BBC article
Post by: Renegd98 on May 28, 2009, 11:34:15 PM
When creating a BBC article you receive the following fatal error upon hitting save:
Fatal error: Call to undefined function preparsecode() in /home/nobss/public_html/renegd98/smf2/Sources/TPortalAdmin.php on line 1016

Reference message:
http://www.tinyportal.net/index.php/topic,29788.msg237491.html#msg237491
Title: Re: [bugtracker] Fatal error when creating BBC article
Post by: Freddy on June 21, 2009, 12:48:30 PM
I fixed this error, it's because the function to preparse the code before it get's entered into the database is not being included.

Find around line 1015 - 1016...


if($art_type=='bbc')
    preparsecode($artbb);


Change to :


if($art_type=='bbc')
{
    require_once($sourcedir . '/Subs-Post.php');
    preparsecode($artbb);
}


Edit : That's in ; Your Forum Directory/Sources/TPortalAdmin.php
Title: Re: [bugtracker] Fatal error when creating BBC article
Post by: Renegd98 on July 10, 2009, 09:59:22 PM
Bloc...

Bump.. this fixes the error and needs to be fixed in the next version Bloc... There may be a better way but this works...
Title: Re: [bugtracker] Fatal error when creating BBC article
Post by: Renegd98 on August 12, 2009, 12:24:11 AM
Bump again....  need to make sure this gets fixed in next version
Title: Re: [bugtracker] Fatal error when creating BBC article
Post by: MichaelVash7886 on September 12, 2009, 05:07:04 PM
sorry to bump this, but I just wanted to point out something I noticed.  This only happens when creating BBC from the admin menu, normal users BBC articles work just fine, even when editing them from admin menu.  I'm going to try the fix listed above.
Title: Re: [bugtracker] Fatal error when creating BBC article
Post by: Renegd98 on September 13, 2009, 01:59:02 PM
Bloc has stated that this is fixed in the next version.
Title: Re: [bugtracker] Fatal error when creating BBC article
Post by: parten37 on September 25, 2009, 12:04:43 AM
Quote from: freddy888 link=topic=29789.msg239404#msg239404 date=124558491
Edit : That's in ;
i]Your Forum Directory[/i]/Sources/TPortalAdmin.php

I've never messed with the code before.  Can you tell me where to go to find this?
Title: Re: [bugtracker] Fatal error when creating BBC article
Post by: G6Cad on September 25, 2009, 06:37:48 AM
Through FTP you get to your file system on the server your forum's on.

Title: Re: [bugtracker] Fatal error when creating BBC article
Post by: bloc on October 07, 2009, 09:25:30 PM
Fixed for v1.0 beta 5.