Welcome to Geeklog, Anonymous Tuesday, May 28 2024 @ 12:43 pm EDT

Geeklog Forums

Strange error after submitting story/block


Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
After submitting some stories and a normal HTML block today I got this error, in logged-in and logged-out situation:

Fatal error: Call to undefined function: preg_replace() in /home/***/domains/***/public_html/lib-common.php on line 3236

I'm running GL 1.3.11 on this particular site, and can't upgrade untill we've updated some custom plugins. I do recall that I've changed this part in config.php last week, don't know if it's something to do with it:

Text Formatted Code
$_CONF['admin_html'] = array (
    'p'     => array('class' => 1, 'id' => 1, 'align' => 1),
    'div'   => array('class' => 1, 'id' => 1, 'float' => 1, 'margin' => 1, 'padding' => 1),
    'iframe'   => array('src' => 1, 'name' => 1, 'width' => 1, 'height' => 1, 'frameborder' => 1),
    'span'  => array('class' => 1, 'id' => 1),
    'table' => array('class' => 1, 'id' => 1, 'width' => 1, 'border' => 1,
                     'cellspacing' => 1, 'cellpadding' => 1),
    'tr'    => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1),
    'th'    => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1,
                     'colspan' => 1, 'rowspan' => 1),
    'td'    => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1,
                     'colspan' => 1, 'rowspan' => 1)
);

Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: beewee

Fatal error: Call to undefined function: preg_replace() in /home/***/domains/***/public_html/lib-common.php on line 3236


Ask your hosting service if they updated PHP recently or changed anything in its configuration. preg_replace is a standard PHP function and shouldn't just go missing ...

bye, Dirk
 Quote

All times are EDT. The time is now 12:43 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content