Unable to update user profile
carlbennett opened this issue · 1 comments
carlbennett commented
Loading the webpage to update the user profile returns a 500 Internal Server Error. It is not possible to load the page, at least for me. I was unable to reproduce it in the Development environment (dev.bnetdocs.org), so I gathered the following debug data from production where the issue is occurring.
{
"errno": "E_NOTICE",
"errstr": "Trying to access array offset on value of type null",
"errfile": "\/var\/www\/www.bnetdocs.org\/src\/templates\/User\/Update.phtml",
"errline": 64,
"errcontext": {
"cwd": "\/var\/www\/www.bnetdocs.org\/src",
"title": "Update Profile",
"description": "This form allows an individual to update their account information.",
"username_error": "",
"email_error": "",
"display_name_error": ""
},
"stacktrace": [
{
"file": "\/var\/www\/www.bnetdocs.org\/lib\/carlbennett\/php-mvc\/src\/libraries\/Template.php",
"line": 59,
"args": [
"\/var\/www\/www.bnetdocs.org\/src\/templates\/User\/Update.phtml"
],
"function": "require"
},
{
"file": "\/var\/www\/www.bnetdocs.org\/src\/views\/User\/UpdateHtml.php",
"line": 20,
"function": "render",
"class": "CarlBennett\\MVC\\Libraries\\Template",
"object": {},
"type": "->",
"args": []
},
{
"file": "\/var\/www\/www.bnetdocs.org\/src\/controllers\/User\/Update.php",
"line": 497,
"function": "render",
"class": "BNETDocs\\Views\\User\\UpdateHtml",
"object": {},
"type": "->",
"args": [
{
"display_name_1": null,
"display_name_2": null,
"display_name_error": [
null,
null
],
"email_1": "redacted for privacy",
"email_2": "",
"email_error": [
null,
null
],
"username": "Caaaaarrrrlll",
"username_error": [
null,
null
],
"username_max_len": 28,
"profile": {},
"biography": "I am a computer enthusiast with a passion for the Internet",
"biography_error": null,
"biography_max_len": 255,
"discord_username": "Caaaaarrrrlll#1337",
"discord_username_error": null,
"discord_username_max_len": 255,
"facebook_username": "",
"facebook_username_error": null,
"facebook_username_max_len": 255,
"github_username": "",
"github_username_error": null,
"github_username_max_len": 255,
"instagram_username": "",
"instagram_username_error": null,
"instagram_username_max_len": 255,
"phone": "",
"phone_error": null,
"phone_max_len": 255,
"reddit_username": "",
"reddit_username_error": null,
"reddit_username_max_len": 255,
"skype_username": "",
"skype_username_error": null,
"skype_username_max_len": 255,
"steam_id": "",
"steam_id_error": null,
"steam_id_max_len": 255,
"twitter_username": "",
"twitter_username_error": null,
"twitter_username_max_len": 255,
"website": "",
"website_error": null,
"website_max_len": 255,
"_responseCode": 200,
"_responseHeaders": {
"X-Frame-Options": "DENY"
},
"_responseTTL": 0,
"display_name": null
}
]
},
{
"file": "\/var\/www\/www.bnetdocs.org\/lib\/carlbennett\/php-mvc\/src\/libraries\/Router.php",
"line": 261,
"function": "run",
"class": "BNETDocs\\Controllers\\User\\Update",
"object": {},
"type": "->",
"args": [
{},
{},
[]
]
},
{
"file": "\/var\/www\/www.bnetdocs.org\/src\/main.php",
"line": 280,
"function": "route",
"class": "CarlBennett\\MVC\\Libraries\\Router",
"object": {},
"type": "->",
"args": []
},
{
"file": "\/var\/www\/www.bnetdocs.org\/src\/main.php",
"line": 285,
"function": "BNETDocs\\main",
"args": []
}
]
}carlbennett commented
This appears to have been fixed in the latest version of the code as of 4c31d5d. If one feels this has not been resolved, please make a new issue with full details.