- last update
about 1 year ago 2,166 pass
This generates an AJAX error. The response is printed in the error message. The response is an obviously corrupt json string of the form:
{ progress bar info from file_ajax_progress() } [{other ajax commands}]
The prettied up json is attached.
I'm very new to the web designing thing but as far as I can tell, file_ajax_progress() is supposed to return an ajax command array and it doesn't. It returns nothing. Instead, it echos out the progress bar message and percentage directly. ajax_deliver() then appends the other commands and creates a bad json string with 2 arrays butted together.
Am I crazy? I've tried making file_ajax_progress() return it's $progress array (in various ways) instead of echoing it. This removes the error but the progress bar doesn't appear (although the divs are inserted for it).
Can anyone confirm this or point me in the right direction?
Thanks muchly
Needs review
7.0 ⚰️
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.