459 reputation
928
bio website nekojira.com
location
age
visits member for 3 years, 3 months
seen 4 hours ago

Dec
16
awarded  Popular Question
Dec
9
comment While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
The only possible explanation so far is that I might have to turn many of the theme functions in a plugin (and I'd give them a proper oop organisation )
Dec
9
comment While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
ok I just did; somehow it's like internal functions of wordpress and some plugins pass, but some defined in my theme don't... although I can't explain it since they are all included in functions.php and from PHP they work
Dec
9
revised While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
added 340 characters in body
Dec
9
revised While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
added 103 characters in body
Dec
9
comment While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
the function used as ajax callback is the simplest ever: $stuff = some_php_function(); wp_send_json_success($stuff); I don't think I can post the whole php function as it's very very long - but this function is also used server side and doesn't return any error
Dec
9
comment While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
the ajax url is in a variable printed after using wp localize script immediately after my script is enqueued - I double checked that from console.log and it's fine
Dec
9
asked While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
Nov
18
answered Can't get a JSON object in response to an ajax request with wp_ajax
Nov
17
revised Can't get a JSON object in response to an ajax request with wp_ajax
added 32 characters in body
Nov
17
asked Can't get a JSON object in response to an ajax request with wp_ajax
Nov
6
awarded  Notable Question
Oct
11
awarded  Notable Question
Sep
26
awarded  Popular Question
Aug
26
awarded  Popular Question
Jul
31
awarded  Popular Question
Jun
26
awarded  Popular Question
May
27
awarded  Citizen Patrol
May
22
awarded  Notable Question
May
10
awarded  Notable Question