<br />
in our post content so trying to find <br />
and replace it won't have any effect.\n
that you may struggle to actually replace it with anything. We don't have any special handling for that so if you tried to replace \n\n\n
with \n\n
I think it will literally insert the string \n\n
into the post rather than two line breaks./\n\s*\n/g, '\n'
UPDATE xf_post SET message = REGEXP_REPLACE(message, "\n{3}", "\n\n") WHERE message REGEXP "\n{3}";
\n\n\n
rather than \n \n \n
and other combinations.The file or a directory?Looks to me like a server permissions issue. Probably need to do a chmod to get the right read/write access to it.
Both.The file or a directory?
src/addons/XFPR/Admin/Controller/PostReplace.php is set to 644
Unfortunately that didn't work. I even set the file to 777 to quickly test if it worked and it did not. Now I'm stuck.Both.
I would set all directories at 755 and individual files within to 664.
What if it's being blocked by an application firewall?I checked that too - all files are owned by the same user.
I'll check with the host. Thanks for the suggestion.What if it's being blocked by an application firewall?
ErrorException: [E_WARNING] preg_match_all(): Empty regular expression in src/addons/XFPR/Admin/Controller/PostReplace.php at line 41
[LIST=1]
[*]XF::handlePhpError()
[*]preg_match_all() in src/addons/XFPR/Admin/Controller/PostReplace.php at line 41
[*]XFPR\Admin\Controller\PostReplace->actionReplace() in src/XF/Mvc/Dispatcher.php at line 350
[*]XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 261
[*]XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
[*]XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
[*]XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2326
[*]XF\App->run() in src/XF.php at line 488
[*]XF::runApp() in admin.php at line 13
ErrorException: Fatal Error: Illegal length modifier specified 'f' in s[np]printf call src/XF/Util/File.php:305
Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}
Request state
array(4) {
["url"] => string(31) "/forums/admin.php?tools/run-job"
["referrer"] => string(56) "https://www.topklasse.org/forums/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(17) "/forums/admin.php"
["_xfToken"] => string(8) "********"
["only_ids"] => string(0) ""
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.