TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 30, 2024, 11:56:57 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 147
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 83
  • Total: 83

[bugtracker] Fatal error when creating BBC article

Started by Renegd98, May 28, 2009, 11:34:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Renegd98

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

Freddy

#1
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

Renegd98

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...

Renegd98

Bump again....  need to make sure this gets fixed in next version

MichaelVash7886

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.

Renegd98

Bloc has stated that this is fixed in the next version.

parten37

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?

G6Cad

Through FTP you get to your file system on the server your forum's on.


bloc