Re: [DOC-BUGS] doc.php.net error

[email protected] (Peter Cowburn)
Newsgroups php.doc
Message-ID <CAPg3Xx+6nb-6NtTCCy3VY+GPshLD0AkF8cvu0_UoVJGU-A0q5A@mail.gmail.com>
- doc-bugs
+ phpdoc


On Mon, 17 May 2021 at 09:52, Sergey Panteleev <[email protected]>
wrote:

> Hi there!
>
> http://doc.php.net/revcheck.php got an 500 error.
>
> I tried to run it locally to reproduce the bug, but it works.
>
> Can someone check the server config?
> Or is there an actual build deployed?
>

The error log (/local/logs/php_error_log_doc) contains the following:

[17-May-2021 10:32:51 UTC] PHP Warning:  SQLite3::query(): Unable to
prepare statement: 1, no such table: descriptions in
/local/src/docweb/www/revcheck.php on line 31
[17-May-2021 10:32:51 UTC] PHP Fatal error:  Uncaught Error: Call to a
member function fetchArray() on bool in
/local/src/docweb/www/revcheck.php:32
Stack trace:
#0 {main}
  thrown in /local/src/docweb/www/revcheck.php on line 32


So the schema of the SQLite database is not as expected. This looks to be
because the build-ops* files (not tracked in Git) weren't updated as
required for Git.  I updated those and re-ran the rev.php script to
re-generate the SQLite database.

[root@euk2 scripts]# php ./rev.php
Copying temporary database to final database
Time of generation: 3.0449929237366 s
End


This looks to have fixed the 500 error for revcheck.php.


> —
> wbr,
> Sergey Panteleev
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.