This Help forum is for issues relates to the latest release (1.7.8). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

TOPIC: Problems after upgrading server

Problems after upgrading server 1 year 8 months ago #1

  • miron
  • miron's Avatar
  • Offline
  • New
  • Posts: 22
I had version 1.7.8 working perfctly on Ubunto 14.04 with PHP 5.6.
I recently upgraded to Ubuntu 16.04 which came with PHP 7.1. All other PHP sub domains in my server worked, except webtrees. It was complaining about too many redirects.
So I downgraded to PHP 5.6, but now I'm getting the site not available message.
I checked the /data and /data/config.ini.php and they both are accessible. I can connect to the mysql DB with the credentials from the config file.

Down anyone had this kind of issue? I'm open to any suggestion on how to restore webtrees to work again.
Also advice on how to debug this issue is most welcome.

Thanks,
Miron
The administrator has disabled public write access.

Problems after upgrading server 1 year 8 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10615
> It was complaining about too many redirects.

If you had set the "Server URL" value, then delete it from the wt_site_settings table.
This setting is designed for a very specific purpose. If you don't need it, do not set it.

> I recently upgraded to Ubuntu 16.04 which came with PHP 7.1

16.04 comes with PHP 7.0
PHP 7.1 was not released until after 16.04.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Problems after upgrading server 1 year 8 months ago #3

  • miron
  • miron's Avatar
  • Offline
  • New
  • Posts: 22
Thanks Greg,
I deleted the SERVER_URL from the wt_site_settings table.
Now I get:
tree.ophir.org.ilindex.php’s server DNS address could not be found.
the browser url was tree.ophir.org.il

Update: after restarting the server, the error is gone and the hom page is loading.
However on top of it I get the following error:
...../app/Stats.php:646 [] operator not supported for strings #0 /app/Module/FamilyTreeStatisticsModule.php:107 Error("[] operator not supported for strings") #1 /index.php:70 getBlock(16)
And none of the left blocks (statistics, most common surnames, etc.) are shown.
Last Edit: 1 year 8 months ago by miron.
The administrator has disabled public write access.

Problems after upgrading server 1 year 8 months ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10615
> ../app/Stats.php:646 [] operator not supported for strings

You are using 1.7.8?

I think this is fixed in 1.7.9.

Upgrade.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Problems after upgrading server 1 year 7 months ago #5

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1473
If you're convinced you already are on v1.7.9 then upgrade manually again. That is: upload the unzipped files of the webtrees distribution.

Some ftp programs fail to tell you they failed to upload just a couple of files...
stamboom.BertKoor.nl runs on webtrees v1.7.9
The administrator has disabled public write access.

Problems after upgrading server 1 year 7 months ago #6

  • miron
  • miron's Avatar
  • Offline
  • New
  • Posts: 22
Thank you all for your help.
It turns out the issue was caused by several problems:
1. My DigitalOcean upgrade to Ubuntu 16.04 got me a PHP 7.1 along the way.
2. It turns out that after the upgrade the php-fpm connection to mysql was mis-configured.
3. I had an older version of webtrees.

The steps to fix the issue were:
1. Revert to PHP 5.6, see that it works. It doesn't - I had too much configurations to tweak from the 7.1 upgrade, so I ditched this path.
2. Use 7.1 and fix php-fpm. This took a while but I got php-fpm configured correctly.
3. Upgrade webtrees. Automatic upgrade has failed because of Pclzip.php. I upgraded manually.

Finally, every thing seems to be working ok.

One last question to the DEVs: why not use PHP's ZipArchive instead of the outdated Pclzip.php?

Thanks,
Miron
The administrator has disabled public write access.

Problems after upgrading server 1 year 7 months ago #7

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10615
> One last question to the DEVs: why not use PHP's ZipArchive instead of the outdated Pclzip.php?

Pclzip works with every version of PHP that was available when webtrees 1.7.9 was released.

PHP 7.1 was released *after* webtrees 1.7.9. It's on the list of issues to fix for 1.8.0
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.
Powered by Kunena Forum