Web based family history software

Question upgrading 1.7.17

  • aase48
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #1 by aase48
upgrading 1.7.17 was created by aase48
When I try to upgrade I get this:
Udpak webtrees-1.7.17.zip til midlertidig mappe…
Der opstod en fejl ved udpakning af filen.
PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

github.com/fisharebest/webtrees/commit/3...240a88cec8da69221538

I saw this line could fix it, but I don`t know where to put it. Can you tell me.
Aase

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #2 by fisharebest
Replied by fisharebest on topic upgrading 1.7.17
The link takes you to a page like this:



It shows you the name of the file to change (app/File.php)

It shows you the line to replace, on the left, in red (line 58)

It shows you what to replace it with, on the right, in green.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #3 by thierry.renault
Replied by thierry.renault on topic upgrading 1.7.17
Bien le bonjour

J'ai également le même problème
Lorsque je veux faire ma mise à jour vers 1.7.17
j'ai le message :
Décompresse webtrees-1.7.17.zip vers un dossier temporaire…
Une erreur est survenue lors de la décompression du fichier.
PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

Je suis allé sur mon FTP sur app/File.php.
A la ligne 58 j'ai remplacé
if (preg_match('/^HTTP\/1.[01] 30[123].+\nLocation: ([^\r\n]+)/s', $response, $match)) {
fclose($fp);

par
if (preg_match('/^HTTP\/1.[01] 30[123].+\n[L1]ocation: ([^\r\n]+)/s', $response, $match)) {
fclose($fp);

Malgré ce changement, j'ai toujours le même message d'erreur...
Ai-je oublié quelque chose ?

Merci de vos lumières.
Bien cordialement.

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #4 by mp
Replied by mp on topic upgrading 1.7.17
Try this one:
Code:
if (preg_match('/^HTTP\/1.[01] 30[123].+\n[Ll]ocation: ([^\r\n]+)/s', $response, $match)) { fclose($fp);

Martin - ffp.bauschaffen.de

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #5 by fisharebest
Replied by fisharebest on topic upgrading 1.7.17

thierry.renault wrote: Bien le bonjour

J'ai également le même problème
Lorsque je veux faire ma mise à jour vers 1.7.17
j'ai le message :
Décompresse webtrees-1.7.17.zip vers un dossier temporaire…
Une erreur est survenue lors de la décompression du fichier.
PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

Je suis allé sur mon FTP sur app/File.php.
A la ligne 58 j'ai remplacé
if (preg_match('/^HTTP\/1.[01] 30[123].+\nLocation: ([^\r\n]+)/s', $response, $match)) {
fclose($fp);

par
if (preg_match('/^HTTP\/1.[01] 30[123].+\n[L1]ocation: ([^\r\n]+)/s', $response, $match)) {
fclose($fp);

Malgré ce changement, j'ai toujours le même message d'erreur...
Ai-je oublié quelque chose ?

Merci de vos lumières.
Bien cordialement.


A typo. You need the miniscule letter L (l) - not the digit one (1)

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #6 by thierry.renault
Replied by thierry.renault on topic upgrading 1.7.17
Merci pour votre intérêt.
J'ai utilisé la solution de mp en transcrivant sur mon FTP sur app/File.php page 58
if (preg_match('/^HTTP\/1.[01] 30[123].+\n[Ll]ocation: ([^\r\n]+)/s', $response, $match)) {
fclose($fp);

le message d'erreur a disparu mais la page est restée plus d'une heure sans que rien ne change.
J'ai tenté de réinitialiser et à ce moment j'ai une page toute blanche....

J'ai tenté aussi de mettre une minuscule pour l1 au lieu de L1 : rien de changé : page désespérément blanche !!!!!

Auriez vous une solution pour que je puisse récupérer mon site ???

Mille mercis d'avance.

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #7 by mp
Replied by mp on topic upgrading 1.7.17
Try to upload the complete file app/File.php from v1.7.17 (zip file) to your installation.

Martin - ffp.bauschaffen.de

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #8 by thierry.renault
Replied by thierry.renault on topic upgrading 1.7.17
Mille mercis. Je suis content car avec vos bons conseils j'ai récupéré mon site et je suis bien en version 1.7.17.
Tout va bien et c'est grâce à vous.
Je vais m’intéresser à la version 2.0 dont j'ignorais l’existence, car je fais toujours les MAJ directement sur le site. Je pense qu'au préalable je vais regarder ce que c'est....
Merci encore et bon week-end.

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago - 3 years 10 months ago #9 by jopla
Replied by jopla on topic upgrading 1.7.17
Hello,

Maybe it is written in the French part, but I don't speak very well french.

I tried to make changes in file.php in the 1.7.16 version on my server and than run the update to get 1.7.17.

I tried to change the line 58in the following (L1):
Code:
if (preg_match('/^HTTP\/1.[01] 30[123].+\n[L1]Location: ([^\r\n]+)/s', $response, $match)) {

I tried also (Ll):
Code:
if (preg_match('/^HTTP\/1.[01] 30[123].+\n[Ll]Location: ([^\r\n]+)/s', $response, $match)) {

But still the same error. What is the correct solution?

Thanks for reaction.
Last edit: 3 years 10 months ago by jopla.

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #10 by fisharebest
Replied by fisharebest on topic upgrading 1.7.17
To apply the fix, you must replace "L" with "[Ll]".
(Upper-case and lower case letter "L").

So, "Location" should become "[Ll]ocation"

But you have added an extra "L" - "[Ll]Location"

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #11 by jopla
Replied by jopla on topic upgrading 1.7.17
@Greg: You was complete right, of course, the update succeed! Thanks.

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #12 by thierry.renault
Replied by thierry.renault on topic upgrading 1.7.17
Je vois que Greg m'a précédé et t'a déjà donné la solution.
Je suis content pour toi.
Mille mercis encore à tous.
Bonne journée.
Thanks.

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago - 3 years 10 months ago #13 by tezywezy
Replied by tezywezy on topic upgrading 1.7.17

Try to upload the complete file app/File.php from v1.7.17 (zip file) to your installation.


This option worked first time for me
Thanks

webtrees 1.7.16
huckle-parker.info
PHP 7.3
Mysql 5.6.20
Last edit: 3 years 10 months ago by tezywezy.

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #14 by fisharebest
Replied by fisharebest on topic upgrading 1.7.17
There is now an FAQ for this.

webtrees.net/faq/upgrade-pclzip/

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #15 by sovnor
Replied by sovnor on topic upgrading 1.7.17
Ik heb hetzelfde probleem en heb de stappen gevolgd die men heeft aanbevolen;
Ik krijg nu steeds de melding HTTP ERROR 500 als ik webtrees wil openen zoals ik dat altijd doe.
Ik geraak via een andere weg in aanmeldpagina waar mijn "admin" is ingevuld met het bijhorende paswoord,
als ik dan op aanmelden klik dan komt de melding dat de gegevens onjuist zijn, dus wil ik het paswoord eventueel wijzigen via wachtwoord-vergeten,
als ik dan het e-mail adres in geef dat ik hier ook heb ingegeven dan krijg ik de melding dat mijn e-mailadres niet bekend is bij webtrees
ik gebruik het programma al enige jaren en regelmatig de upgrades uitgevoerd als daar een melding voor kwam, ook zoals enkele dagen geleden,
toen de link weer verscheen en ik heb hem zoals gewoonlijk aangeklikt en overal kwamen er groene vinkjes te staan behalve bij de laatse daar stond een rood kruisje en dat is dan nu de error: PCLZIP_ERR_BAD_FORMAT (-10): Kan einde van Central Dir Record-handtekening niet vinden.
Ik weet niet wat ik nu moet doen en ik ben bang dat ia mijn gegens kwijt ben die ik al die jaren heb opgezocht.
mvg Ron

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #16 by fisharebest
Replied by fisharebest on topic upgrading 1.7.17
> Ik krijg nu steeds de melding HTTP ERROR 500 als ik webtrees wil openen zoals ik dat altijd doe.

See webtrees.net/faq/500/

This will help us find the exact problem.

> als ik dan op aanmelden klik dan komt de melding dat de gegevens onjuist zijn, dus wil ik het paswoord eventueel wijzigen via wachtwoord-vergeten,

See webtrees.net/faq/password/

> toen de link weer verscheen en ik heb hem zoals gewoonlijk aangeklikt en overal kwamen er groene vinkjes te staan behalve bij de laatse daar stond een rood kruisje en dat is dan nu de error: PCLZIP_ERR_BAD_FORMAT (-10): Kan einde van Central Dir Record-handtekening niet vinden.

This is a known problem - caused by a change in an external server.
See webtrees.net/faq/upgrade-pclzip/

> Ik weet niet wat ik nu moet doen en ik ben bang dat ia mijn gegens kwijt ben die ik al die jaren heb opgezocht.

It is *very* unlikely that you have lost any data.
Your data is safe in your database.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #17 by Luenissla
Replied by Luenissla on topic upgrading 1.7.17
It works fine. Thank you!

Best regards / Viele Grüße
Hans-Joachim (Lünenschloß)

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #18 by sovnor
Replied by sovnor on topic upgrading 1.7.17
Bij mij via provider werkt niks meer zelf de database is weg, ik had alle data vooraf gedownload en ben nu alles op mijn computer aan het overzetten, het overzetten van de database is best veel werk, tussendoor check ik of ik al iets kan zien en ik begin weer vertrouwde zaken te zien die ik ook altijd bij mijn provider zag totdat ik dus de upgrade naar 1.7.17 deed.
met vriendelijke groet Ron

Please Log in or Create an account to join the conversation.

Moderators: makitso
Powered by Kunena Forum
}