Closed AndreasRauhut closed 4 years ago
Controllers/ListController.php(709
This error suggests that you have a record that is listed as a submitter, but which is not a submitter.
Can you look in the table wt_other
for entries with o_type="SUBM"
.
Do you see anything unusual?
Here is what I see in the line.
o_id | o_file | o_type 1 | o_gedcom
S0 | 36 | SUBM | 0 @S0@ SUBM 1 NAME Andreas Rauhut 1 ADDR Jasminweg...
The XREF of this record is s0
(lower case)
But the o_id column contains S0
(upper case)
This should not happen. These should be the same. Did you do anything that might have updated the database?
You should be able to fix this by updating o_id
to s0
You're right. It's curious. But this is written only here in the thread as lower "s".
In my table it is a upper "S" @S0@
PS: place your cursor over the @S0@ in the thread above.
The editor changes it Damn!!
Try it yourself, please. I wrote an UPPER "S"
Sorry I didn't want to close anything.
Do you have an S0
entry in any other table. For example wt_sources
.
No. Sorry, there is a S1 entry but no S0 entry in wt_sources
Do you still have this problem?
I cannot reproduce it, and I cannot guess the problem.
Can you try something else.
Edit this file https://github.com/fisharebest/webtrees/blob/master/app/Submitter.php#L48
Before line 48 (assert(...)
), can you add
var_dump($row, $submitter);
exit;
In the meantime I did deactivate the module "listing of submitters" so I didn't care about even after adding a new gedcom. After reactivation today, the listing seems to work fine.By the way, I can't investigate, because I'm not at home for a moment. Please close the issue. Thank you. Am 19.02.2020 16:49 schrieb Greg Roach notifications@github.com:Do you still have this problem? I cannot reproduce it, and I cannot guess the problem. Can you try something else. Edit this file https://github.com/fisharebest/webtrees/blob/master/app/Submitter.php#L48 Before line 48 (assert(...)), can you add var_dump($row, $submitter); exit;
—You are receiving this because you modified the open/close state.Reply to this email directly, view it on GitHub, or unsubscribe.
Calling the list of submitters gives an error page. In the demo version this list ist hidden. `assert(): assert($submitter instanceof Submitter) failed …/app/Submitter.php:48
0 [internal function]: Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees{closure}(2, 'assert(): asser...', '/home/rauhut/wt...', 48, Array)
1 …/app/Submitter.php(48): assert(false, 'assert($submitt...')
2 [internal function]: Fisharebest\Webtrees\Submitter::Fisharebest\Webtrees{closure}(Object(stdClass), 0)
3 …/vendor/illuminate/support/Collection.php(1120): array_map(Object(Closure), Array, Array)
4 …/app/Http/Controllers/ListController.php(709): Illuminate\Support\Collection->map(Object(Closure))
5 …/app/Http/Controllers/ListController.php(544): Fisharebest\Webtrees\Http\Controllers\ListController->allSubmitters(Object(Fisharebest\Webtrees\Tree))
6 …/app/Module/SubmitterListModule.php(102): Fisharebest\Webtrees\Http\Controllers\ListController->submitterList(Object(Nyholm\Psr7\ServerRequest))
7 …/app/Http/RequestHandlers/ModuleAction.php(90): Fisharebest\Webtrees\Module\SubmitterListModule->getListAction(Object(Nyholm\Psr7\ServerRequest))
... ... ...`