TinyPortal
Development => Feedback => Bugs/Errors => Topic started 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
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
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...
Bump again.... need to make sure this gets fixed in next version
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.
Bloc has stated that this is fixed in the next version.
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?
Through FTP you get to your file system on the server your forum's on.
Fixed for v1.0 beta 5.