fifthstory
Forum Replies Created
-
Update on my issue…
So, it turns out that there is an error with a custom function that I was using in my child theme…
add_action(‘um_before_upload_db_meta’, ‘my_before_upload_db_meta’, 10, 2);
function my_before_upload_db_meta($user_id, $key) {
print_r($key);
}Once I commented out the print_r($key); the uploads began to work. The only problem is that this disabled the ability to upload images at the time of registration.
So, it turns out that there is an error with a custom function that I was using in my child theme…
add_action(‘um_before_upload_db_meta’, ‘my_before_upload_db_meta’, 10, 2);
function my_before_upload_db_meta($user_id, $key) {
print_r($key);
}Once I commented out the print_r($key); the uploads began to work. The only problem is that this disabled the ability to upload images at the time of registration.
Any advice on how to make this work again would be amazing! Thanks!
I still haven’t figured out an answer to the main SyntaxError problem.
Update… It appears that the issue is in completing the upload. On the profile pages (not the registration page), after I get the error message and hit cancel, I can refresh the page and the image is there.
I did clear my Hummingbird caching and am now receiving a new error… “ERROR: SyntaxError: JSON Parse error: Unexpected identifier “organization””
I also tried doing the upload from the user’s profile page (instead of registration) and received the SyntaxError: Unexpected token < in JSON at position 0 error
- This reply was modified 7 years, 9 months ago by fifthstory.
I’m having the same issue as well. Upgraded to version 2.0.24 and am now receiving the error message: SyntaxError: Unexpected token < in JSON at position 0
*Added: I’ve also made sure to update the database settings as well.
- This reply was modified 7 years, 10 months ago by fifthstory.