PDA

View Full Version : Error message on Preview Post


Bummer
01-14-2010, 11:25 AM
You probably have a log full of entries about this since I did some experimenting, but I thought I should mention it anyway. On two occasions I've attempted to write a post and gotten the following error, with a difference in the url being quoted. The error occurred when I hit Preview Post. Both were to Wikipedia.

If I remove the url string and tags it is happy. If I add a / to the end of the address it is happy but Wikipedia isn't. I can use a string without a / at the end, but not for a Wikipedia page. Wikipedia main works without a slash, as does adding the /wiki. When I add the actual page name it kicks out the error message. Also, the address portion to upload.wikimedia.org was not in my original quoted address.

----------error follows-----------

Parse error: syntax error, unexpected '[' in /home/dknelson/public_html/forum/includes/ame_bbcode.php(323) : regexp code on line 1

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: ame_match(&quot;Post hoc ergo propter hoc (\&quot;http://en.wikipedia.org/wiki/Post_hoc_ergo_propter_hoc\&quot;)&quot;, &quot;Post hoc ergo propter hoc&quot;, 1, &quot;~/wiki/File:[\w\s.,&amp;;\(\)\^%$#@!-]+\\&quot;[\s]class=\\&quot;image\\&quot;[\s]*[\w\s.,&amp;;\(\)\^%$#@!\\&quot;=-]*&gt;&lt;img[\s]alt=\\&quot;[\w\s.,&amp;;\(\)\^%$#@!-]*\\&quot;[\s]src=\\&quot;http://upload\.wikimedia\.org/wikipedia/([\w/.,&amp;;\(\)\^%$#@!-]+)\\&quot;~sim&quot;, &quot;&quot;, $ameinfo) in /home/dknelson/public_html/forum/includes/ame_bbcode.php on line 323

Condor
01-14-2010, 12:10 PM
It's bad Karma...... :stirthepot:

Freebird
01-14-2010, 06:16 PM
Thanks for the report. I think I have it fixed now. Please let me know.

Bummer
01-14-2010, 06:32 PM
Worked like a charm. I linked to the Wikipedia page that blew it up and it opens just like it's supposed to. Thanks!

Karma fixed. Our Dogmas are all safe again.

BradT
01-14-2010, 11:55 PM
So why do you preview post. ? Never even knew you could do that. :think: Okay maybe I read that once or twice before

I just post it then go back and edit it if it don't look right. Or I just leave it :rotf:


Brad

Bummer
01-15-2010, 12:16 AM
Every time I don't spend a couple of hours editing a post to death somebody goes and gets all sensitive and the whole thread disappears. Better safe than sitting here shaking my head and musing about all the different forms of Political Correctness to be stumbled upon. ;)

Eck
01-15-2010, 12:05 PM
[QUOTE=Bummer;426914]
Every time I don't spend a couple of hours editing a post to death somebody goes and gets all sensitive and the whole thread disappears. Better safe than sitting here shaking my head and musing about all the different forms of Political Correctness to be stumbled upon. ;)


Sounds like a future moderator at work................:rotf: