This topic was marked solved by Arantor, on August 23rd, 2013, 09:19 PM
[function.preg-replace-callback]: Requires argument 2, 'wedit:format_time'

Auk

  • Can I get a Box?
  • Posts: 64
[function.preg-replace-callback] : Requires argument 2, 'wedit:format_time'
« on August 19th, 2013, 02:45 AM »Last edited on August 19th, 2013, 11:27 AM by Nao
New bububububuuuuug!!

Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, 'wedit:format_time', to be a valid callback in /Sources/Class-Editor.php on line 2015

This occurs whenever I click on the Modify post button (not using quick modify button.) I couldn't test modifying older posts/topics since a recent board setting changed to forbid editing old post. I was able to test in another thread which created the same result as the first time I encountered this. Hitting the Preview button with javascript disabled, I will nolonger see the error message.

Nothing is more despicable than respect based on fear.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
[function.preg-replace-callback] Re: : Requires argument 2, 'wedit:format_time'
« Reply #1, on August 19th, 2013, 03:19 AM »
Hmm, that looks to me like it should read wedit::format_time (double colon, not a single one)

I still haven't caught up reviewing all the commits from while I was away.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,082
[function.preg-replace-callback] Re: : Requires argument 2, 'wedit:format_time'
« Reply #2, on August 19th, 2013, 11:27 AM »
Thanks! Fixed.
It was indeed a typo on my part, I did all these conversions in a batch, but manually, so even though I double-check everything at commit time, given the amount of changes, I'm surprised it was the only typo ;)