Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: Auk on August 19th, 2013, 02:45 AM

Title: [function.preg-replace-callback]: Requires argument 2, 'wedit:format_time'
Post by: Auk on August 19th, 2013, 02:45 AM
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(http://wedge.org/pub/test/8210/this-is-test-message/msg290667/#msg290667) 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.
Title: Re: [function.preg-replace-callback]: Requires argument 2, 'wedit:format_time'
Post by: Arantor 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.
Title: Re: [function.preg-replace-callback]: Requires argument 2, 'wedit:format_time'
Post by: Nao 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 ;)