Please do NOT post requests for help here. Use the Help forum for that.

TOPIC: [SOLVED] Change of php version

Change of php version 3 weeks 3 days ago #1

  • bill-lancaster
  • bill-lancaster's Avatar
  • Offline
  • New
  • Posts: 12
Hello, not sure if this is the right place for this post.
My web service provider has upgraded from php V5.6 to V7.2 and from about that time I can no longer access my webtrees website.
Any advice would be welcome.
The administrator has disabled public write access.

Change of php version 3 weeks 3 days ago #2

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10569
You don't say which version of webtrees you were running, so I'll guess 1.7.9

1.7.9 runs fine on PHP 7.2 - with the exception of the auto-upgrade. (You'll simply need to upgrade manually to 1.7.11, and will be able to auto-upgrade after this).

You don't give any details of error messages, etc., so it's hard to guess, but a common problem is that PHP has lots of optional modules, and webtrees checks for these during installation. You host may have upgraded from 5.6 (with extra modules) to 7.2 (without extra modules).

To check this, you could try (temporarily) renaming the file /data/config.ini.php to something else.
This will trigger webtrees to run the installer (and the requirements check). If you get as far as entering the admin account details, then stop there and replace your config.ini.php

If this doesn't help, try giving us more details...
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.

Change of php version 3 weeks 3 days ago #3

  • bill-lancaster
  • bill-lancaster's Avatar
  • Offline
  • New
  • Posts: 12
Thanks for the reply, I don't know which version it is but I know I should have upgraded a long time ago.
Where should I look in the webtrees folder?
I don't get an error message - just a blank screen.
I'll try renaming the file /data/config.ini.php and see what happens.
The administrator has disabled public write access.

Change of php version 3 weeks 3 days ago #4

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10569
> Where should I look in the webtrees folder?

You'll find the version in the file includes/session.php.
Somewhere near the top is a line like this:

define('WT_VERSION', '1.7.9');

> I don't get an error message - just a blank screen.

See webtrees.github.io/faq/500
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.

Change of php version 3 weeks 2 days ago #5

  • bill-lancaster
  • bill-lancaster's Avatar
  • Offline
  • New
  • Posts: 12
Version is 1.5.1 which looks quite old!
Perhaps that's why I don't see /data.config etc
The administrator has disabled public write access.

Change of php version 3 weeks 2 days ago #6

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10569
That's a very old version of webtrees - written well before PHP 7, so unlikely to work on your updated server.

I suggest you simply upgrade webtrees.

Download the .ZIP file for 1.7.11.
Extract the files.
Copy to your server using FTP - overwriting any that are there.
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.

Change of php version 3 weeks 1 day ago #7

  • bill-lancaster
  • bill-lancaster's Avatar
  • Offline
  • New
  • Posts: 12
OK, I downloaded webtrees-1.7.11.zip, extracted it to a local folder then copied via ftp (using Dolphin) to my webtrees website. This took several hours after which there was no change in the web folder. The version shown in includes/session.php showed version 1.3.0. Perhaps the server was silently choosing not to copy over existing files.

I then renamed the web folder do webtreesOLD and copied the local folder to a new webtrees web folder. includes/session.php is now 1.7.11

I still get a blank screen when loading webtrees.

I've just realised that I probably am looking at a copy of my webtrees that I made some years ago. I'll check this out and get back to you
Last Edit: 3 weeks 1 day ago by bill-lancaster. Reason: error in text
The administrator has disabled public write access.

Change of php version 3 weeks 1 day ago #8

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10569
> I still get a blank screen when loading webtrees.

Then you need to find the error message, which will be in your server's error log.
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.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Change of php version 3 weeks 1 day ago #9

  • bill-lancaster
  • bill-lancaster's Avatar
  • Offline
  • New
  • Posts: 12
OK, have now transferred 1.7.11 to the right place and now get a long series of errors reported:-

Deprecated: Function create_function() is deprecated in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php on line 305 Deprecated: Function create_function() is deprecated in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php on line 306 Deprecated: Function create_function() is deprecated in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php on line 307 Deprecated: Function create_function() is deprecated in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php on line 308 Deprecated: Function create_function() is deprecated in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php on line 309 Deprecated: Function create_function() is deprecated in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php on line 310
ERROR 2: session_set_save_handler(): Cannot change save handler when headers already sent
0 Error occurred on in function session_set_save_handler
1 called from line 310 of file session.php in function require
2 called from line 33 of file index.php
Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php on line 310
ERROR 2: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
0 Error occurred on in function ini_set
1 called from line 205 of file Session.php in function setOptions
2 called from line 437 of file Session.php in function start
3 called from line 332 of file session.php in function require
4 called from line 33 of file index.php
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/library/Zend/Session.php on line 205
ERROR 2: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
0 Error occurred on in function ini_set
1 called from line 219 of file Session.php in function setOptions
2 called from line 437 of file Session.php in function start
3 called from line 332 of file session.php in function require
4 called from line 33 of file index.php
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/library/Zend/Session.php on line 219
ERROR 2: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
0 Error occurred on in function ini_set
1 called from line 219 of file Session.php in function setOptions
2 called from line 437 of file Session.php in function start
3 called from line 332 of file session.php in function require
4 called from line 33 of file index.php
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/library/Zend/Session.php on line 219
ERROR 2: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
0 Error occurred on in function ini_set
1 called from line 219 of file Session.php in function setOptions
2 called from line 437 of file Session.php in function start
3 called from line 332 of file session.php in function require
4 called from line 33 of file index.php
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/library/Zend/Session.php on line 219
ERROR 2: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
0 Error occurred on in function ini_set
1 called from line 219 of file Session.php in function setOptions
2 called from line 437 of file Session.php in function start
3 called from line 332 of file session.php in function require
4 called from line 33 of file index.php
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/library/Zend/Session.php on line 219
ERROR 2: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
0 Error occurred on in function ini_set
1 called from line 219 of file Session.php in function setOptions
2 called from line 437 of file Session.php in function start
3 called from line 332 of file session.php in function require
4 called from line 33 of file index.php
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/library/Zend/Session.php on line 219
ERROR 2: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
0 Error occurred on in function ini_set
1 called from line 219 of file Session.php in function setOptions
2 called from line 437 of file Session.php in function start
3 called from line 332 of file session.php in function require
4 called from line 33 of file index.php
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/library/Zend/Session.php on line 219
ERROR 2: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
0 Error occurred on in function ini_set
1 called from line 219 of file Session.php in function setOptions
2 called from line 437 of file Session.php in function start
3 called from line 332 of file session.php in function require
4 called from line 33 of file index.php
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/library/Zend/Session.php on line 219 Fatal error: Uncaught Zend_Session_Exception: Session must be started before any output has been sent to the browser; output started in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php/305 in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/library/Zend/Session.php:451 Stack trace: #0 /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php(332): Zend_Session::start(Array) #1 /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/index.php(33): require('/customers/e/f/...') #2 {main} thrown in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/library/Zend/Session.php on line 451
The administrator has disabled public write access.

Change of php version 3 weeks 1 day ago #10

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10569
> Deprecated: Function create_function() is deprecated in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php on line 305

webtrees 1.7.11 does not use "create_function()".

It was used in webtrees 1.5.1

> OK, have now transferred 1.7.11 to the right place

I'm guessing that one or more files (including this one) were not updated.
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.

Change of php version 3 weeks 1 day ago #11

  • bill-lancaster
  • bill-lancaster's Avatar
  • Offline
  • New
  • Posts: 12
OK, I copied that individual file, it replaced one dated 2014.
Now the error is:-
Warning: require(/customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/vendor/autoload.php): failed to open stream: No such file or directory in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php on line 162 Fatal error: require(): Failed opening required '/customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/vendor/autoload.php' (include_path='.:/usr/share/php') in /customers/e/f/a/lancasterfamilyhistory.co.uk/httpd.www/webtrees/includes/session.php on line 162

Would it be possible to create a new, blank webtrees and import data from the old one?
The administrator has disabled public write access.

Change of php version 3 weeks 21 hours ago #12

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10569
> then copied via ftp (using Dolphin) to my webtrees website

It looks like you are only copying some of the files over each time.

Try using a dedicated FTP program, rather than a file-manager.

I find that FileZilla works well.
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.

Change of php version 3 weeks 14 hours ago #13

  • bill-lancaster
  • bill-lancaster's Avatar
  • Offline
  • New
  • Posts: 12
FileZilla was brilliant, I set it to overwrite all files and now everything is fine.
Thank you so much for all your help
The administrator has disabled public write access.

[SOLVED] Change of php version 3 weeks 14 hours ago #14

  • bill-lancaster
  • bill-lancaster's Avatar
  • Offline
  • New
  • Posts: 12
Problem solved.
The administrator has disabled public write access.
Moderators: makitso
Powered by Kunena Forum