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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 679
  • Total: 679

Fatal Error When Saving Articles

Started by BlinD, May 28, 2009, 10:28:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BlinD

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.

Renegd98

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);


FragaCampos

Thanks, i had this error and now it's gone.

Freddy


ZarPrime


This website is proudly hosted on Crocweb Cloud Website Hosting.