Previous Thread
Next Thread
Print Thread
Hop To
#31305 10/01/2002 10:04 AM
Anonymous
Unregistered
Anonymous
Unregistered
I just uploaded some new Graemlins to my UBBT 6.1.

After this evetything seem to work, but I also get an error message when previewing and posting:
<pre> Parse error: parse error in /www/gabonde/hard.nu/forum/ubbt.inc.php(614) : eval()'d code on line 1

</pre>

and

<pre> Parse error: parse error in /www/gabonde/hard.nu/forum/ubbt.inc.php(1648) : eval()'d code on line 1
</pre>

What could have happendand how do I fix it?

Anonymous
Unregistered
Anonymous
Unregistered
One of the markup codes or smileys that were added for the graemlins is causing the error. I need to put in some code in to not allow these but I'm still trying to figure out what is being added that causes this.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
If you can fill out a trouble ticket that might help us track this down and get it fixed properly.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Ok, I think I tracked down the problem. Basically eval() will only work when the markup code is a language string. This can be fixed by making 2 small changes to ubbt.inc.php.

Line 608 and 614 look like this:

eval("\$string = $code;");

You can get rid of the errors by adding a @ sign before that line:

@eval("\$string = $code;");

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Thanks!

I solved it temporarly by deleting all Graemlins with numbers in the name.

Anonymous
Unregistered
Anonymous
Unregistered
I have the same problem after adding graemlins.
I'm using 6.1.1 and my ubbt.inc.php came with the
@eval("\$string = $code;")" already coded.

I used only letters in the graemlin names and for each bracketed them for markup with :

Example:
:jump:

Brent

Anonymous
Unregistered
Anonymous
Unregistered
I think I fixed the problem by adding @ at line 705


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 868 guests, and 467 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)