collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 43
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • [DFg]DJF-1975: NICE! welcome back
    January 28, 2018, 11:18:14 PM
  • aegersz: back to normal - wonderful !
    January 25, 2018, 07:10:53 AM
  • SaltedWeb: Welcome Back
    January 16, 2018, 12:48:39 AM
  • Jailer: Welcome back!
    January 14, 2018, 11:08:08 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • [DFg]DJF-1975: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM
  • phantomm: and from what I see only patch is broken, full install package is fine
    October 21, 2016, 03:44:44 PM
  • phantomm: they say it for over 3 weeks now..
    October 21, 2016, 03:43:52 PM
  • aegersz: SMF say that bug fix 2.0.13 is coming soon ...
    October 19, 2016, 06:46:12 PM

* Recent Posts

Re: Display Random blocks by exit
[February 19, 2018, 02:27:21 PM]


Re: Display Random blocks by Chen Zhen
[February 18, 2018, 09:30:10 PM]


Re: [Plugin] SP Shoutbox Sounds by Chen Zhen
[February 18, 2018, 09:08:48 PM]


Re: [Plugin] SP Shoutbox Sounds by andy
[February 18, 2018, 06:45:34 PM]


Display Random blocks by exit
[February 18, 2018, 01:31:05 PM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: I've got a problem with cutom html block.  (Read 138 times)

0 Members and 1 Guest are viewing this topic.

Offline thiertmd365

  • Just Registered
  • Posts: 1
  • SMF Version: 2 RC1-1
  • SP Version: 2.3.5
  • Elkarte Version: 1.0
I've got a problem with cutom html block.
« on: February 13, 2018, 01:14:43 PM »
Hi guys !! My name's Thierry.
ufabet
So i recently added a custom html block to the portal on our forum with links to facebook and twitter on it,
and am now getting this error in the logs.

8192: : The /e modifier is deprecated, use preg_replace_callback instead
Apply Filter: Only show the errors from this file
File: /var/www/html/forum/Sources/PortalBlocks.php
Line: 2028


this is line 2028 from sourced.php
   $data = preg_replace('~<\!\[CDATA\[(.+?)\]\]>~e' . ($context['utf8'] ? 'u' : ''), '\'#cdata_escape_encode#\' . $smcFunc[\'htmlspecialchars\'](\'$1\')', $data);


i have tried changing the  "preg_replace"() part with  "preg_replace_callback" instead, but this gives me a blank white page.
สมัครufabet
as you can probably tell, i well out of my depth with any php related stuff,
so can anyone tell me what i need to change to correct the error?

smf version 2.0.11
simple portal 2.3.6

Offline Chen Zhen

  • The Underdog
  • Support
  • *
  • Posts: 1293
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1 Beta 4
  • SP Version: 2.3.6
  • Elkarte Version: None
Re: I've got a problem with cutom html block.
« Reply #1 on: February 13, 2018, 08:59:24 PM »
thiertmd365,

  Update to the latest version of Simple Portal 2.3.7.

Why have you not updated your SMF version as well?
There have been many security updates since version 2.0.11