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?

[Fatal Error] - [Urgent]

Asked Modified Viewed 3,567 times
P
Prince NightFox
P
  • Member, joined since
  • Contributed 85 posts on the community forums.
  • Started 15 threads in the forums
  • Started this discussions
asked
Member

when posting a thread:

Quote

Warning: Compilation failed: nothing to repeat at offset 2 in /home/deloroba/public_html/maincore.php on line 437


when previewing a new post:

Quote

Warning: Compilation failed: nothing to repeat at offset 2 in /home/deloroba/public_html/maincore.php on line 437

Warning: Compilation failed: nothing to repeat at offset 2 in /home/deloroba/public_html/maincore.php on line 437


when posting a shout, nothing happens.

when editing user info (from admin):

Quote

Unable to Update Member details:

Warning: unexpected script execution.


when posting:

Quote

Error: You did not specify a Subject and/or Message



What's happening? Attached is my maincore.php
I tried to change the password for my testing account (Mr Tester) so that I could provide a method for people here to see for themselves but, as you can see above, I can't change any user data...

Thank you, ahead of time for your help!
0 replies

6 posts

M
muscapaul
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
answered
Veteran Member

Have you already checked whether it works normally using the default maincore.php file?
0 replies
P
Prince NightFox
P
  • Member, joined since
  • Contributed 85 posts on the community forums.
  • Started 15 threads in the forums
  • Started this discussions
answered
Member

I tried it but it's still not working. Nothing changed... :|
0 replies
M
muscapaul
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
answered
Veteran Member

Line 437 in maincore.php deals with the bad words list. Back it up, clean it, and see if that maybe helps.
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Try clearing your bad words list
0 replies
P
Prince NightFox
P
  • Member, joined since
  • Contributed 85 posts on the community forums.
  • Started 15 threads in the forums
  • Started this discussions
answered
Member

Thank you, I acutally found it. I had " a** " in the bad words list. Apparently you can't have astricks (and possibly other characters) in there. Digi, will you add that feature or if you don't want to at least have a filter/error system for it?

Thank you!
0 replies
— 10 months later —
P
priyank_bolia
P
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 3 threads in the forums
answered
Newbie

I faced the same issue and I changed the maincore.php at line 423 to:
// Replace offensive words with the defined replacement word
function censorwords($text) {
   global $settings;
   if ($settings['bad_words_enabled'] == "1" && $settings['bad_words'] != "" ) {
      $word_list = explode("\r\n", $settings['bad_words']);
      for ($i=0;$i < count($word_list);$i++) {
         if ($word_list[$i] != "") $text = preg_replace("/".safe_preg($word_list[$i])."/si", $settings['bad_word_replace'], $text);
      }
   }
   return $text;
}

function safe_preg($content) {
   $search  = array('\\\\', '^', '$', '.', '[', ']', '|', '(', ')', '?', '*', '+', '{', '}');
   $replace = array('\\\\\\\\', '\\^', '\\$', '\\.', '\\[', '\\]', '\\|', '\\(', '\\)', '\\?', '\\*', '\\+', '\\{', '\\}');
   return str_replace($search, $replace, $content);
}

And it worked.
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

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

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet