• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Importing from SMF => preg_replace(): No ending delimiter '#' found

Chris D

XenForo developer
Staff member
#2
Sorry, this is a bug.

Please open the file: library/XenForo/Importer/SMF.php

Find:
PHP:
$string = preg_replace('#\[attach=(\d+)\]', '[ATTACH]$1.SMF[/ATTACH]', $string);
Replace with:
PHP:
$string = preg_replace('#\[attach=(\d+)\]#', '[ATTACH]$1.SMF[/ATTACH]', $string);
That should get it going.