• Hi, I have been experiencing a problem whereby userpro ajax operations (login/registration) result in the following error only when BadgeOS is active:

    Error in jQuery.ajax while submitting a form:Internal Server Error

    Is this something you could either look into or advise on how i could resolve as I really want to be able to use both plugins?

    Many thanks

    https://wordpress.org/plugins/badgeos/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Can you provide more information about the source of that error? Perhaps the js file and some some line numbers and whatnot that your browser console is showing? It’ll help track down the origin of the error.

    Thread Starter hackycode

    (@hackycode)

    Hi Michael,

    Thanks for the quick response.

    I’m not really sure what information to provide you with. it’s just a popup 500 error.

    the console:

    Failed to load resource: the server responded with a status of 500 (Internal Server Error) https://team.stdnt.uk/wp-admin/admin-ajax.php

    I also got this popup error once when performing the action but no sure if its related as it did seem isolated:

    Error in jQuery.ajax while submitting a form:SyntaxError: JSON Parse error: Unrecognized token '<'

    wp debug log doesn’t seem to have anything related to badgeos, userpro or admin-ajax.php so not sure where else to look. but essentially something goes wrong during the ajax login process due to a conflict with badgeos.

    please let me know how i can go about providing you with further information

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’m not giving up on it yet, but I’m just not seeing anything that certainly indicates it’s an issue specifically from BadgeOS.

    Are there any line numbers and such on the righthand side of the console for those errors? Usually that’s where the associated file is listed. Screenshots help too in this case.

    Perhaps it’d be best for me to try firsthand.

    Shovan

    (@thescube)

    Hi I have the same error

    “Error in jQuery.ajax while submitting a form:Internal Server Error”

    I had badge os enable, I disabled it and it still shows error.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Does it eventually go away with BadgeOS still disabled? or is it persistent regardless of our plugins active status?

    Best course of action would be to check available error logs to try and trace down what’s ultimately the source of the 500 Internal Server Error. It could be a number of things at this point, really.

    Shovan

    (@thescube)

    I had to disable all plugins all themes. Then activated them all and it magically worked 🙂

    Shovan

    (@thescube)

    The issue is back again :/

    I have compleated removed BadgeOS at this point.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Do you have WP_DEBUG set at all at the moment? I ask because I can recall general code debugging in the past having issues with error strings coming through when it shouldn’t be. Also asking because having debugging and logging on may also provide valuable debug info for what’s going on.

    Shovan

    (@thescube)

    WP_DEBUG was false.

    When I turned it on I noticed following error logs

    On User pro profile page

    Notice: Undefined index: label in /srv/wp-content/plugins/userpro/functions/fields-functions.php on line 713
    
    Notice: Undefined index: label in /srv/wp-content/plugins/userpro/functions/fields-functions.php on line 713

    On the console log of edit profile page

    Error in jQuery.ajax while submitting a form:SyntaxError: Unexpected token <

    Shovan

    (@thescube)

    I remember reading this in another page (When I find the the link I will post here)
    It might be due to not having specific php resource extension turned on..?

    When i turned off all plugins and themes, the error disappeared.. but it appeared after using the webpage for 30 min or so. Could it be that the server is using more resource and wordpress in specific wp admin ajax is not being able to handle the issue?

    Would you know of turning on any specific php extension would help resolve this?

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Possible, but I don’t have any sort of list of recommended extensions. BadgeOS doesn’t have any that it explicitly needs that may or may not be installed on any given server. If WordPress is up and running, BadgeOS should be just fine as well.

    I’m curious if you’re receiving the internal server errors for other things unrelated to BadgeOS, but that could be contributing to the error being experienced. It just happens to be with BadgeOS installed.

    That said, I sadly haven’t seen anything in the thread that for sure pinpoints BadgeOS and any specific location in our code that I could investigate based on.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Userpro Conflict’ is closed to new replies.