carrevue / carrevue/OpenSB

Error: Typed property Data\Journal\JournalData::$author must not be accessed before initialization

Open
#386 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
10
Forks
5
PR merge metrics
No merged PRs in 30d

Description

**Error**: Typed property Data\Journal\JournalData::$author must not be accessed before initialization

**Code**: 0
**File**: /var/www/squarebracket/private/class/Data/Journal/JournalData.php
**Line**: 88
**URL**: squarebracket.pw/user/chaziz/journal/147
**Version**: 2.1.0-beta.2.production-86854cd

**Stack Trace**:
```
#0 /var/www/squarebracket/private/pages/profile/journal.php(42): Data\Journal\JournalData->isTakenDown()
#1 /var/www/squarebracket/private/class/Core/Router.php(106): require('...')
#2 /var/www/squarebracket/private/class/Core/Router.php(98): Core\Router->includeFile()
#3 /var/www/squarebracket/private/class/Core/Router.php(72): Core\Router->executeHandler()
#4 /var/www/squarebracket/public/index.php(377): Core\Router->dispatch()
#5 {main}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at private/class/Data/Journal/JournalData.php line 88 and trace the isTakenDown() call from private/pages/profile/journal.php line 42. Reproduce the journal page at the reported URL and inspect the stack trace path; done means the page no longer accesses an uninitialized author property.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.