Error on use of JPEG in profile photo

Home Forums Bug Reporting Error on use of JPEG in profile photo

This topic contains 2 replies, has 1 voice, and was last updated by  Kyle Burnett 8 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9109

    Kyle Burnett
    Member

    If a user uploads a profile photo with JPEG we get this error:

    [Fri Nov 22 16:19:36.141894 2019] [php7:error] [pid 27253] [client 137.152.185.98:21762] PHP Fatal error: Uncaught Error: Call to a member function add() on null in /nas/content/live/hsanywhere/wp-content/plugins/user-meta-pro/models/classes/UserInsert.php:203\nStack trace:\n#0 /nas/content/live/hsanywhere/wp-content/plugins/user-meta-pro/models/classes/UserInsert.php(655): UserMeta\\UserInsert->sanitizeFieldsAndSetUserData()\n#1 /nas/content/live/hsanywhere/wp-content/plugins/user-meta-pro/models/AjaxModel.php(14): UserMeta\\UserInsert->postInsertUserProcess()\n#2 [internal function]: UserMeta\\AjaxModel->postInsertUser()\n#3 /nas/content/live/hsanywhere/wp-content/plugins/user-meta-pro/lib/Framework.php(292): call_user_func_array(Array, Array)\n#4 /nas/content/live/hsanywhere/wp-content/plugins/user-meta-pro/controllers/PreloadsController.php(246): UserMeta\\Framework->__call(‘postInsertUser’, Array)\n#5 /nas/content/live/hsanywhere/wp-includes/class-wp-hook.php(286): UserMeta\\PreloadsController->processPostRequest(”)\n#6 /nas/content/live/hsanywhere/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n in /nas/content/live/hsanywhere/wp-content/plugins/user-meta-pro/models/classes/UserInsert.php on line 203, referer: https://homeschoolanywhere.com/register/

    But we can take the same file and change it to JPG and no errors.

    Suggestions?

    #9114

    Kyle Burnett
    Member

    Bump?

    #9115

    Kyle Burnett
    Member

    Found it… invalid_extension. Seems pretty obvious now.

    • This reply was modified 8 months, 1 week ago by  Kyle Burnett.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.