MayaLabs Discussion Area

Suomeksi (Finnish only) => MLInvoiceen liittyvä keskustelu => Topic started by: taleman on 22.05.18 - klo:10:49

Title: Versiopäivitys sanoo "500 Internal server error"
Post by: taleman on 22.05.18 - klo:10:49
MLInvoice 1.17.0, Debian GNU/Linux 9.4

Pistän Chromium-selaimessa F12 painamalla konsolin päälle. Menen Järjestelmä-välilehdelle ja painan Versiopäivitys-painiketta. Selain näyttää vain
Päivitettävyyden tarkistus
eikä muuta.

Konsoliin tulee

GET https://mlinvoice.mydomain.fi/mlinvoice/index.php?func=system&operation=update 500 (Internal Server Error)
Navigated to https://mlinvoice.mydomain.fi/mlinvoice/index.php?func=system&operation=update
Title: Re: Versiopäivitys sanoo "500 Internal server error"
Post by: Ere Maijala on 24.05.18 - klo:20:10
Löytyisikö PHP:n virhelokista mitään mielenkiintoista?
Title: Re: Versiopäivitys sanoo "500 Internal server error"
Post by: taleman on 29.05.18 - klo:10:23
Kas, en honksannut heti katsoa. Kyllä siellä oli mielenkiintoista:

[Tue May 29 10:11:49.900788 2018] [fcgid:warn] [pid 31864] [client 999.999.999.999:59644] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function Translate() in /var/www/clients/clientXX/webYY/web/mlinvoice/updater.php:124, referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system
[Tue May 29 10:11:49.900828 2018] [fcgid:warn] [pid 31864] [client 999.999.999.999:59644] mod_fcgid: stderr: Stack trace:, referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system
[Tue May 29 10:11:49.900832 2018] [fcgid:warn] [pid 31864] [client 999.999.999.999:59644] mod_fcgid: stderr: #0 /var/www/clients/clientXX/webYY/web/mlinvoice/updater.php(70): Updater->preFlightCheck(), referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system
[Tue May 29 10:11:49.900836 2018] [fcgid:warn] [pid 31864] [client 999.999.999.999:59644] mod_fcgid: stderr: #1 /var/www/clients/clientXX/webYY/web/mlinvoice/index.php(148): Updater->launch(), referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system
[Tue May 29 10:11:49.900839 2018] [fcgid:warn] [pid 31864] [client 999.999.999.999:59644] mod_fcgid: stderr: #2 {main}, referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system
[Tue May 29 10:11:49.900842 2018] [fcgid:warn] [pid 31864] [client 999.999.999.999:59644] mod_fcgid: stderr:   thrown in /var/www/clients/clientXX/webYY/web/mlinvoice/updater.php on line 124, referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system
[Tue May 29 10:12:10.718976 2018] [fcgid:warn] [pid 835] [client 999.999.999.999:59764] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function Translate() in /var/www/clients/clientXX/webYY/web/mlinvoice/updater.php:124, referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system&operation=update
[Tue May 29 10:12:10.719021 2018] [fcgid:warn] [pid 835] [client 999.999.999.999:59764] mod_fcgid: stderr: Stack trace:, referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system&operation=update
[Tue May 29 10:12:10.719026 2018] [fcgid:warn] [pid 835] [client 999.999.999.999:59764] mod_fcgid: stderr: #0 /var/www/clients/clientXX/webYY/web/mlinvoice/updater.php(70): Updater->preFlightCheck(), referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system&operation=update
[Tue May 29 10:12:10.719030 2018] [fcgid:warn] [pid 835] [client 999.999.999.999:59764] mod_fcgid: stderr: #1 /var/www/clients/clientXX/webYY/web/mlinvoice/index.php(148): Updater->launch(), referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system&operation=update
[Tue May 29 10:12:10.719033 2018] [fcgid:warn] [pid 835] [client 999.999.999.999:59764] mod_fcgid: stderr: #2 {main}, referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system&operation=update
[Tue May 29 10:12:10.719037 2018] [fcgid:warn] [pid 835] [client 999.999.999.999:59764] mod_fcgid: stderr:   thrown in /var/www/clients/clientXX/webYY/web/mlinvoice/updater.php on line 124, referer: https://laskutus.mydomain.fi/mlinvoice/index.php?func=system&operation=update



PHP on versiota 7.0.
Title: Re: Versiopäivitys sanoo "500 Internal server error"
Post by: taleman on 29.05.18 - klo:10:34
Pitäisikö rivillä 124 olla Translator( tilalla Translator::Translate( ?
Title: Re: Versiopäivitys sanoo "500 Internal server error"
Post by: taleman on 29.05.18 - klo:10:39
Nähtävästi pitää. Nyt tulee ilmoitus.

Päivitettävyyden tarkistus

Seuraavien tiedostojen ja hakemistojen tulee olla muokattavissa web-palvelimen käyttäjätunnuksella:

RCS/sessionfuncs.php,v


Olen pitänyt versionhallintaa RCS:llä, ja tuo tiedosto on kyllä web-palvelimen käyttäjätunnuksen omistama ja ryhmäomistama, mutta siinä ei ole kirjoitusoikeutta kenelläkään kun siten tuo RCS toimii.
Title: Re: Versiopäivitys sanoo "500 Internal server error"
Post by: Ere Maijala on 30.05.18 - klo:18:47
Joo, pitäisi olla Translator::Translate. Korjataan. Automaattinen päivitys ja versionhallinnan käyttäminen ovat vähän niin kuin toisensa poissulkevia toimintoja. Mikä on siis tavoite?
Title: Re: Versiopäivitys sanoo "500 Internal server error"
Post by: taleman on 31.05.18 - klo:13:53
Muokkasin sitä yhtä MLInvoicen tiedostoa, siksi pistin RCS:n jotta voin helpommin perua ja näen mikä se muutos oli. Sehän todennäköisesti korjaantuu seuraavassa MLInvoicen versiossa.

Taidan ottaa pois ylimääräiset tiedostot MLInvoicen asennushakemistosta, versioin muualle mitä muutan tiedostoja tai asetuksia. Sitten ei pitäisi automaattipäivityksen nikotella.