Possible Bug: Spinner doesn’t stop when including new files.

Solved5.04K viewsIssues
0

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' ); 
}

 

 

Attachments

spinner.png
0

I see this in ajax response:

<style>
#checkout {
	position:relative;
	bottom: 300px;
}
</style>
Transaction failed.OUTSIDE THE FUNCTION AND WITH DOUBLE QUOTES

Remove this and your issue will be solved.

There are 3 things in the above image – CSS Braintree’s API, and some simple PHP. When I removed each included file it looks like the problem was the Braintree API’s PHP library. How might a payment processing script interfere with an AJAX response?

Its simply they are hooking their HTML/CSS in wrong place.

Ah ok. I’ll investigate. For now, where is the code for the spinner? Or what term can I search to find it in all the files? I’m going to disable the spinner appearing until I can find a more permanent solution.

0

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.

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.

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.

I see this: We’re coming soon!

Ok I removed the Maintenance Splash page. Try it now. Sorry about that.