therecluse26 / PHP-Login

A login system built with PHP, MySQL, jQuery and Bootstrap
MIT License
839 stars 444 forks source link

Fatal Error "Edit Profile" Admin #198

Closed Miheix closed 6 years ago

Miheix commented 6 years ago

Fatal error: Uncaught TypeError: Return value of PHPLogin\ProfileData::pullAllUserInfo() must be of the type array, boolean returned in C:\xampp\htdocs\nameapp\login\class\profiledata.php:68 Stack trace: #0 C:\xampp\htdocs\nameapp\user\profileedit.php(6): PHPLogin\ProfileData::pullAllUserInfo('12343736875b214...') #1 {main} thrown in C:\xampp\htdocs\nameapp\login\class\profiledata.php on line 68

therecluse26 commented 6 years ago

Hi, could you describe what steps you took that led up to this error?

On Wed, Jun 13, 2018 at 12:47 PM, Mihai notifications@github.com wrote:

Fatal error: Uncaught TypeError: Return value of PHPLogin\ProfileData::pullAllUserInfo() must be of the type array, boolean returned in C:\xampp\htdocs\nameapp\login\class\profiledata.php:68 Stack trace: #0 C:\xampp\htdocs\nameapp\user\profileedit.php(6): PHPLogin\ProfileData:: pullAllUserInfo('12343736875b214...') #1 https://github.com/therecluse26/PHP-Login/issues/1 {main} thrown in C:\xampp\htdocs\nameapp\login\class\profiledata.php on line 68

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/therecluse26/PHP-Login/issues/198, or mute the thread https://github.com/notifications/unsubscribe-auth/AH24AjjZUK3s5NAK4QV1vPuI31Mx4t7rks5t8UI-gaJpZM4UmjwO .

Miheix commented 6 years ago

Right after making the first login as administrator

therecluse26 commented 6 years ago

Could you give me some more detail about what OS you're running and version of PHP?

Miheix commented 6 years ago

PHP Version 7.2.5

I've already tried it in two different places !

image

I do not know if I'm doing something wrong

Windows 10

therecluse26 commented 6 years ago

Okay, I believe I got this sorted out. Try running a git pull and reload the page and you should be golden (fingers crossed)

Miheix commented 6 years ago

Okay, it works. Another error is when I try to register the clients. imagen

therecluse26 commented 6 years ago

I'm not sure how I missed that... got that taken care of as well, so go ahead and do another pull. Thanks for pointing these out! This helps a lot

therecluse26 commented 6 years ago

@Miheix I think some of these issues were due to me not fully testing enough on various versions of PHP (I'm the primary developer doing it in my spare time, so it's tough to catch everything) and on all major systems, so I'm sorry about that. I'm going to comb through and see if I can track down similar little bugs today, and I'll let you know if I find anything.

therecluse26 commented 6 years ago

@Miheix I found and scrubbed out a few more similar return type bugs, so if you wanna do another git pull, it should all be in order now.