Possible Bug: Spinner doesn’t stop when including new files.
I am editing Anspress plugin. I found an issue when trying to include my stylesheet. The spinner keeps spinning as if it’s thinking endlessly and it never generates suggestions. This happens when I include my own files. I noticed that sometimes the cause is a BLANK STYLESHEET WITH NO CODE (fd-css.css) and sometimes it is the fd-braintree-js.js (so a javascrpt file). Why is this happening? All I am doing is including some files that have no relationship to the main Anspress code!
private function fd_includes() { require_once( FIND_DO_FOR_ANSPRESS_DIR.'braintree/fd-braintree-js.js' ); require_once( FIND_DO_FOR_ANSPRESS_DIR.'braintree/fd-bt-functions.php' ); require_once( FIND_DO_FOR_ANSPRESS_DIR.'braintree/lib/Braintree.php' ); require_once( FIND_DO_FOR_ANSPRESS_DIR.'braintree/fd-process-trans.php' ); require_once( FIND_DO_FOR_ANSPRESS_DIR.'fd-css.css' ); }
This only happens if ajax response is not a valid JSON. This means there are some PHP debug message in ajax response. Please check the response in browser console.
AnsPress 2.4 beta is released, you can try it on your test site.
I tested out the 2.4 beta and the spinner still doesn’t stop. What is most confusing about this is why this is happening when I haven’t touched any Anspress code and yet this still happens (I know I haven’t changed any Anspress code because I just uploaded the new 2.4 beta…)
Give me link to your site.
It’s on localhost, but let me quickly upload it to my actual website. Give me a few minutes.
http://efficientmind.org/?page_id=73&ap_page=ask
Here you go. FYI – I reverted back to the non-beta version.
Any luck?
I see this: We’re coming soon!
Ok I removed the Maintenance Splash page. Try it now. Sorry about that.
http://imgur.com/OmV0Zbt
Please see the image above sir. There’s nothing in the console even after I typed 2 tags and hit enter. The last one I left it there and the spinner keeps going.