Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Error with my Maincore.php

Asked Modified Viewed 4,323 times
G
geistschatten
G
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions
asked
Junior Member

I get this error on my shoutbox now after redoing some of the smiley codes

Quote

Warning: preg_replace() [function.preg-replace]: Unknown modifier '\' in /home2/elevato3/public_html/viperamped/maincore.php on line 426


My site is http://ViperAmped.com so you can see the bug/error in action. Also in none of the smiley codes is a "\" used, since that's what looks like what the warning is describing.

Also I checked and line 426 says

Quote

$message = preg_replace("#{$smiley_code}#si", $smiley_image, $message);
0 replies

8 posts

S
SiteMaster
S
If i have touched it, it's W3C Valid
  • Senior Member, joined since
  • Contributed 305 posts on the community forums.
  • Started 15 threads in the forums
answered
Senior Member

change the smiley code to something else
0 replies
G
geistschatten
G
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions
answered
Junior Member

But it's not just one smiley code, it's like 20. And I never had a problem before.

Here's a screenshot too viperamped.com/images/photoalbum/album_1/smiley.png
Am I using any dis-allowed characters?
Edited by geistschatten on 28-03-2010 03:57,
0 replies
S
SiteMaster
S
If i have touched it, it's W3C Valid
  • Senior Member, joined since
  • Contributed 305 posts on the community forums.
  • Started 15 threads in the forums
answered
Senior Member

have you moved to another server
or have you turned PHP error messages ON

as i said in my first post, change the smiley code to something else

i get that error when i use some of your smiley codes
:#( <-- that gives the error, havent testet all of them, you can do it yourself
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

Yes your smiley mustn't contain the "#".
0 replies
G
geistschatten
G
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions
answered
Junior Member

Thanks guys, all fixed. I knew it was probably an un-allowed character but I couldn't figure out which one.
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

no problem. It was not your fault. This is a issue of the PHPFusion coding.
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

So it needs be filtered now :)
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

B
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
S
S
If i have touched it, it's W3C Valid
  • Senior Member, joined since
  • Contributed 305 posts on the community forums.
  • Started 15 threads in the forums
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
G
G
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 9 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet