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,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 343
  • Total: 343

Error Found

Started by swampy, April 04, 2010, 03:10:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Swampy

Not sure if others have seen this. When inserting into an html block the following occurs:


<p><a href="http://www.tvgrapevine.com/index.php?option=com_content&amp;view=article&amp;id=6307:the-bachelorette-dressed-to-wed&amp;catid=170:the-bachelorette-ali-fedotowsky&amp;Itemid=161" target="_blank">THE
BACHELORETTE: DRESSED TO WED</a></p>
<p><a href="http://www.tvgrapevine.com/index.php?option=com_content&amp;view=article&amp;id=6308:jamie-olivers-food-revolution-ambassadors-of-change&amp;catid=179:jamie-olivers-food-revolution&amp;Itemid=161" target="_blank">Jamie Oliver's Food Revolution: Ambassadors of Change</a>
</p>


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Food Revolution: Ambassadors of Change

' WHERE id = 27' at line 1
File: /home/tvgrapev/public_html/smf/Sources/TPortalAdmin.php
Line: 2362

Xarcell

It's funny.

Your using HTML and BBC code, but receiving a php error.

:D

Xarcell

Can you post what your trying to paste into an HTML article? So I can debug & test?

Swampy

below is what was pasted into the html box in code mode.  Then I exited code mode, it looked good so I clicked save and the error above happened.

Quote<p><a href="http://www.tvgrapevine.com/index.php?option=com_content&amp;view=article&amp;id=6307:the-bachelorette-dressed-to-wed&amp;catid=170:the-bachelorette-ali-fedotowsky&amp;Itemid=161" target="_blank">THE
BACHELORETTE: DRESSED TO WED[/url]</p>
<p><a href="http://www.tvgrapevine.com/index.php?option=com_content&amp;view=article&amp;id=6308:jamie-olivers-food-revolution-ambassadors-of-change&amp;catid=179:jamie-olivers-food-revolution&amp;Itemid=161" target="_blank">Jamie Oliver's Food Revolution: Ambassadors of Change[/url]
</p>

Xarcell

Quote from: swampy on April 04, 2010, 05:25:22 AM
below is what was pasted into the html box in code mode.  Then I exited code mode, it looked good so I clicked save and the error above happened.

Quote<p><a href="http://www.tvgrapevine.com/index.php?option=com_content&amp;view=article&amp;id=6307:the-bachelorette-dressed-to-wed&amp;catid=170:the-bachelorette-ali-fedotowsky&amp;Itemid=161" target="_blank">THE
BACHELORETTE: DRESSED TO WED[/url]</p>
<p><a href="http://www.tvgrapevine.com/index.php?option=com_content&amp;view=article&amp;id=6308:jamie-olivers-food-revolution-ambassadors-of-change&amp;catid=179:jamie-olivers-food-revolution&amp;Itemid=161" target="_blank">Jamie Oliver's Food Revolution: Ambassadors of Change[/url]
</p>

That code isn't right though.

Try This:

<p><a href="http://www.tvgrapevine.com/index.php?option=com_content&amp;view=article&amp;id=6307:the-bachelorette-dressed-to-wed&amp;catid=170:the-bachelorette-ali-fedotowsky&amp;Itemid=161" target="_blank">THE
BACHELORETTE: DRESSED TO WED</a></p>
<p><a href="http://www.tvgrapevine.com/index.php?option=com_content&amp;view=article&amp;id=6308:jamie-olivers-food-revolution-ambassadors-of-change&amp;catid=179:jamie-olivers-food-revolution&amp;Itemid=161" target="_blank">Jamie Oliver's Food Revolution: Ambassadors of Change</a>
</p>


You can't mix HTML with BBC closing tags.


Swampy

that code produces this error

Quote<p><a href="http://www.tvgrapevine.com/index.php?option=com_content&amp;view=article&amp;id=6307:the-bachelorette-dressed-to-wed&amp;catid=170:the-bachelorette-ali-fedotowsky&amp;Itemid=161" target="_blank">THE
BACHELORETTE: DRESSED TO WED</a></p>
<p><a href="http://www.tvgrapevine.com/index.php?option=com_content&amp;view=article&amp;id=6308:jamie-olivers-food-revolution-ambassadors-of-change&amp;catid=179:jamie-olivers-food-revolution&amp;Itemid=161" target="_blank">Jamie Oliver's Food Revolution: Ambassadors of Change</a>
</p>

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Food Revolution: Ambassadors of Change

' WHERE id = 27' at line 1
File: /home/tvgrapev/public_html/smf/Sources/TPortalAdmin.php
Line: 2362

G6Cad

Itemid=161" target="_blank">THE
BACHELORETTE: DRESSED TO WED[/url]</p>


You see the  [  / url ] code in there ?   you still have a mixed html and bbc code there < / url > is what it should be, please try that and see if it render correctly

Swampy

#7
Quote from: G6 on April 04, 2010, 01:01:47 PM
Itemid=161" target="_blank">THE
BACHELORETTE: DRESSED TO WED[/url]</p>


You see the  [  / url ] code in there ?   you still have a mixed html and bbc code there < / url > is what it should be, please try that and see if it render correctly

Don't have a clue where that is coming from, but these 3 screem captures is exactly what I am doing to generate the error


G6Cad

Seems to be abug there or something, i will let Bloc know about it so he can check it out.

Renegd98

I can confirm that I also get and error when using that code in and html block. After entering it into the html code block and before saving it displays correctly (after removing the[url] tags) but fails on save.

This website is proudly hosted on Crocweb Cloud Website Hosting.