org-SCAN / website

Site web du projet
6 stars 0 forks source link

[BUG]Error while creating an event #460

Closed lduf closed 7 months ago

lduf commented 10 months ago

Description of the bug Error while creating an event (https://scan4ppl.tech/event/create GET)

Attempt to read property "title" on null

Error dump :

<div>
<label for="{{$form
_
elem}}" class="block font-medium text-md text-gray-700">{{$title}}</la
<div class="flex">
<div class="flex-auto pr-4">
<em class="text-sm">Latitude :</em>
<input type="text" name="{{$form
_
elem}}[lat]" id="lat" value="{{(old($form
_
elem, $
class="form-input rounded-md shadow-sm mt-1 block w-full"
placeholder="{{$placeHolder}}"/>
</div>
<div class="flex-auto pr-4">
<em class="text-sm">Longitude :</em>
<input type="text" name="{{$form
_
elem}}[long]" id="long" value="{{(old($form
_
elem,
class="form-input rounded-md shadow-sm mt-1 block w-full"
placeholder="{{$placeHolder}}"/>
</div>
</div>

…

Could be related to $form_elem.".lat", $this->field->title

github-actions[bot] commented 10 months ago

Related Issues

none

Summary

This issue focuses on debugging an error with 'Creating an Event' on the Scan4ppl.tech website. The error reads, "attempt to read property 'title' on null" and the error dump of the code contains the elements relating to the attempt from the latitude and longitude inputs, as well as other code snippets. It is speculated that the bug could be caused by $form_elem.".lat" or $this->field->title.

Label Suggestion

In this case, a suitable label would be "Bug". This is because the goal of the issue is to identify and resolve an error occurring when creating an event, which is symptomatic of a bug and not any of the other listed labels.

create-issue-branch[bot] commented 7 months ago

Branch issue-460-_BUG_Error_while_creating_an_event created!

github-actions[bot] commented 7 months ago

AI-Assisted Response:

Issue Summary

Bug Report: Null Property Read Error on Event Creation Page

A user has encountered a null property read error when trying to create an event on the specified URL (https://scan4ppl.tech/event/create GET). The error message indicates an attempt to access the "title" property on a null object. The issue appears in the view template, which suggests that the template is expecting an object with a "title" property that is not provided, perhaps due to a missing or incorrectly passed variable. The user has also mentioned that the problem could be related to $form_elem.".lat" or $this->field->title.

Issue Type

This is a bug report, as the user is experiencing unexpected behavior and an error message when using the application.

Questions for Further Clarification

vqlion commented 7 months ago

Fixed by #473 (commit https://github.com/org-SCAN/website/pull/473/commits/5fa423ba21480df7f1da971e1934e78a53378847)