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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,022
  • Total Topics: 21,332
  • Online today: 473
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 117
  • Total: 118
  • lurkalot

Help: I think I broke TP.

Started by Xarcell, November 08, 2005, 06:08:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Xarcell

Whne trying to display users in flashchat, I created a phpblock and added this code:





$users = usersinroom($room['id']);

foreach( $users as $user ) {
echo $user['login'] . ",";
}





Now, it shows this error:

Fatal error: Call to undefined function: usersinroom() in /home/.abigaildryer/xarcell/veoclan.com/forum/Sources/Load.php(1598) : eval()'d code(32) : eval()'d code on line 3


Only the left side blocks show, none of the center or rightside blocks. I cannot access TPADMIN to remove the code from the block.

Any suggestions on how to fix this? This also gives me an idea, how about everytime it says there is an error, it display a "inactivate block" link within/above the block. TRhis way it doesn't crash the site.

-Xarcell

gerrymo

When I have broke it like this I use the back button on the browser to get back to before I made the mistake, and just not make it again.

Xarcell

Ok, I remember Bloc saying something about that stuff being stored in teh DB. So I found it and deleted it from the DB.

Fixed.

Xarcell

At least we got an idea on how to fix it properly. I think a link would be better though. Kinda like when you get a parse error when you mess up your theme, it give syou the option to select the default theme.

bloc

I agreed..it should be a link to show tpadmin with no blocks. I will add this, its really useful if you accidentally add some wrong code. "Preview" help some..but not when its already active and saved.

Nokonium


bloc


Nokonium

Quote from: Bloc on November 09, 2005, 10:34:42 AM
who is Abigail..? :D

/home/.abigaildryer/xarcell/veoclan.com/forum/Sources/Load.php   :coolsmiley:

This website is proudly hosted on Crocweb Cloud Website Hosting.