TinyPortal

Development => Support => Topic started by: BlinD on May 28, 2009, 10:28:12 PM

Title: Fatal Error When Saving Articles
Post by: BlinD on May 28, 2009, 10:28:12 PM
SMF version: SMF 1.1.9
TP version: TP ver. 1.0 Beta 4
Theme name and version: Custom Theme/Default
Browser Name and Version: firefox 3
Mods installed: SMFGallery, TP.
Related Error messages: Fatal error: Call to undefined function preparsecode() in TPortalAdmin.php on line 1016

This happened after updating my SMF and TP (updated from 1.1.8 and 1.0 beta 3). Everything seems to be working fine except the articles. Whenever I click the "save" button, i get the following error above. I installed TP threw the package manager, but i have also tried overwriting TportalAdmin.php manually, and still get the same error.

This is what is on line 1016 in my TPortalAdmin.php

preparsecode($artbb);

UPDATE: So far, this seems to only happen, when i try to add a BBC article. As I can add HTML & PHP articles without any errors.
Title: Re: Fatal Error When Saving Articles
Post by: Renegd98 on May 28, 2009, 11:28:32 PM
I can confirm this error. I just tried to create a BBC article and received the following upon hitting save:


Fatal error: Call to undefined function preparsecode() in /home/nobss/public_html/smf/Sources/TPortalAdmin.php on line 1016


I tried this on 2 different sites.

I will file a bug in the tracker and reference this post.  Thanks for finding this error BlinD.

Line 1015-1016 of TPortalAdmin.php is:

if($art_type=='bbc')
preparsecode($artbb);
Title: Re: Fatal Error When Saving Articles
Post by: Freddy on June 21, 2009, 01:14:05 PM
See here for a possible fix :

http://www.tinyportal.net/index.php/topic,29789.0.html
Title: Re: Fatal Error When Saving Articles
Post by: FragaCampos on August 31, 2009, 07:25:27 PM
Thanks, i had this error and now it's gone.
Title: Re: Fatal Error When Saving Articles
Post by: Freddy on August 31, 2009, 07:29:13 PM
No problem  8)
Title: Re: Fatal Error When Saving Articles
Post by: ZarPrime on September 01, 2009, 12:50:04 AM
Topic marked solved because it's in the bugtracker ...
http://www.tinyportal.net/index.php?action=bugtracker;sa=bug513

ZP