469 reputation
11032
bio website github.com/nekojira
location
age 34
visits member for 3 years, 7 months
seen Mar 28 at 12:28

Mar
20
awarded  Curious
Mar
13
awarded  Popular Question
Mar
9
awarded  Notable Question
Feb
3
awarded  Famous Question
Feb
2
awarded  Popular Question
Jan
28
awarded  Popular Question
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