cannot upload profile avatar image file

Message boards : Number crunching : cannot upload profile avatar image file
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Cyanr & Cinny

Send message
Joined: 19 Oct 22
Posts: 5
Credit: 5,663,702
RAC: 48,853
Message 3385 - Posted: 19 Oct 2022, 15:10:18 UTC

when creating profiles avatar image by uploading file, server side script has troubles to convert and insert into database

error messages like this


Fatal error: Uncaught Error: Call to undefined function imageCreateFromJPEG() in /home/boincadm/projects/NumberFields/html/user/create_profile.php:129 Stack trace: #0 /home/boincadm/projects/NumberFields/html/user/create_profile.php(261): getImages() #1 /home/boincadm/projects/NumberFields/html/user/create_profile.php(350): process_create_profile() #2 {main} thrown in /home/boincadm/projects/NumberFields/html/user/create_profile.php on line 129
ID: 3385 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Eric Driver
Project administrator
Project developer
Project tester
Project scientist

Send message
Joined: 8 Jul 11
Posts: 1236
Credit: 288,642,401
RAC: 247,100
Message 3386 - Posted: 19 Oct 2022, 15:33:21 UTC - in response to Message 3385.  

when creating profiles avatar image by uploading file, server side script has troubles to convert and insert into database

error messages like this


Fatal error: Uncaught Error: Call to undefined function imageCreateFromJPEG() in /home/boincadm/projects/NumberFields/html/user/create_profile.php:129 Stack trace: #0 /home/boincadm/projects/NumberFields/html/user/create_profile.php(261): getImages() #1 /home/boincadm/projects/NumberFields/html/user/create_profile.php(350): process_create_profile() #2 {main} thrown in /home/boincadm/projects/NumberFields/html/user/create_profile.php on line 129


Try it again. I found a typo in the create_profile.php script that I am hoping is the problem.
ID: 3386 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Cyanr & Cinny

Send message
Joined: 19 Oct 22
Posts: 5
Credit: 5,663,702
RAC: 48,853
Message 3387 - Posted: 20 Oct 2022, 1:59:34 UTC - in response to Message 3386.  

No luck, still error from my end…
Fatal error: Uncaught Error: Call to undefined function imageCreateFromJpeg() in /home/boincadm/projects/NumberFields/html/user/create_profile.php:129 Stack trace: #0 /home/boincadm/projects/NumberFields/html/user/create_profile.php(261): getImages() #1 /home/boincadm/projects/NumberFields/html/user/create_profile.php(350): process_create_profile() #2 {main} thrown in /home/boincadm/projects/NumberFields/html/user/create_profile.php on line 129
ID: 3387 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Eric Driver
Project administrator
Project developer
Project tester
Project scientist

Send message
Joined: 8 Jul 11
Posts: 1236
Credit: 288,642,401
RAC: 247,100
Message 3389 - Posted: 20 Oct 2022, 4:56:38 UTC - in response to Message 3387.  

I think this is working now. At least I was able to delete my own profile image and load it back with no errors.

It turned out the php-gd package needed to be installed on the server. Thanks for bringing this problem to my attention.
ID: 3389 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : cannot upload profile avatar image file


Main page · Your account · Message boards


Copyright © 2023 Arizona State University