No π
Is the user logged in ? Any other plugins activated ? What is the active theme ?
Thread Starter
Asitha
(@asitha)
Yes — the user is logged in, and I’ve tried deactivating all other plugins and the issue still persisted.
What is the active theme ?
Thread Starter
Asitha
(@asitha)
It’s a custom theme the previous developer created.
Thread Starter
Asitha
(@asitha)
Is there a way for me to see what is the actual error causing the issue?
Thread Starter
Asitha
(@asitha)
Also — just tried to change the theme to the Twenty Fifteen theme and got the same error.
Are you using https ?
Eg https in the backend and regular http on the front end.
You can try to see What’s going wrong using the WordPress debug mode WP_DEBUG set to true in wp-config.php Then with Chrome Browser display the inspector activate its network tab and see the response content that admin-ajax.php is returning
Thread Starter
Asitha
(@asitha)
I’m using HTTPS on both the front and back end of the site.
I’ve turned on WP_DEBUG, but there aren’t any errors displayed that relate to the plugin.
I think it’s the https thing. I’ll try to understand why this is happening.
Hi @asitha
Sorry for the delay, i think i’ve found the issue. In the file wp-idea-stream/includes/ideas/functions.php at line 872 (see https://plugins.trac.wordpress.org/browser/wp-idea-stream/trunk/includes/ideas/functions.php#L872), could you try to remove the , 'relative' part i’m using in the admin_url() function so that it will look like (once removed) :
'ajaxurl' => admin_url( 'admin-ajax.php' ),
If it’s fixing your issue, i’ll run a bunch of tests on multisite to see if no regressions and will include this fix in next version.
Thanks in advance for your help.
Thread Starter
Asitha
(@asitha)
Unfortunately that did not work either. I even tried to change it from ‘relative’ to ‘https’ which did not help either.
That is amazing!
If you go in WP Admin > Medias are you able to use the new UI to fetch the medias, or are u able to edit a comment directly from WP DashBoard. In other words are you able to use AJAX in back end ?
I’ve turned on WP_DEBUG, but there aren’t any errors displayed that relate to the plugin.
Having the network tab of the chrome inspector active ?
Thread Starter
Asitha
(@asitha)
Ajax works fine in the backend. I was able to fetch media etc from there.
As for the network tab in inspector, when I click to vote it shows admin-ajax being loaded each time I click it. Returns a status 200 OK.
Thread Starter
Asitha
(@asitha)
Hi there,
Were you able to figure anything out on this?