Web based family history software

Question Upgrading from 1.7.9 to 2.1.19

  • ksajdak
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 4 days ago #1 by ksajdak
Upgrading from 1.7.9 to 2.1.19 was created by ksajdak
I have been running a successful site with 1.7.9 running (13,000 individuals and 183 users).

I decided that the webtrees and accompanying blog need a new home. So I found a new host, installed 2.1.19 (I know, a HUGE jump). Got to the point where I was trying to upload the GEDCOM. I got the report (pasted) below. 

My best read is that there is some issue with the size of the gedcom.

Anyone able to decipher the error and send me on my way with a fix?

Thanks.

____There was an error uploading your file.<br>Filename: stiehm06.ged-2023-05-30.ged<br>The uploaded file exceeds the allowed size. …/app/Http/RequestHandlers/ImportGedcomAction.php:93
#0 …/app/Http/Middleware/RequestHandler.php(55): Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomAction->handle(Object(Nyholm\Psr7\ServerRequest))
#1 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RequestHandler->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#2 …/app/Module/HitCountFooterModule.php(154): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#3 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Module\HitCountFooterModule->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#4 …/app/Module/CheckForNewVersion.php(122): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#5 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Module\CheckForNewVersion->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#6 …/app/Http/Middleware/AuthManager.php(54): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#7 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\AuthManager->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#8 …/app/Http/Middleware/CheckCsrf.php(80): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#9 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckCsrf->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#10 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#11 …/app/Webtrees.php(275): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest))
#12 …/app/Http/Middleware/Router.php(163): Fisharebest\Webtrees\Webtrees::dispatch(Object(Nyholm\Psr7\ServerRequest), Array)
#13 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\Router->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#14 …/app/Http/Middleware/BootModules.php(58): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#15 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BootModules->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#16 …/app/Http/Middleware/RegisterGedcomTags.php(54): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#17 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RegisterGedcomTags->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#18 …/app/Http/Middleware/LoadRoutes.php(75): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#19 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\LoadRoutes->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#20 …/app/Http/Middleware/CheckForNewVersion.php(57): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#21 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForNewVersion->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#22 …/app/Http/Middleware/UseTransaction.php(45): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#23 …/vendor/illuminate/database/Concerns/ManagesTransactions.php(29): Fisharebest\Webtrees\Http\Middleware\UseTransaction::Fisharebest\Webtrees\Http\Middleware\{closure}(Object(Illuminate\Database\MySqlConnection))
#24 …/app/Http/Middleware/UseTransaction.php(46): Illuminate\Database\Connection->transaction(Object(Closure), 3)
#25 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTransaction->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#26 …/app/Http/Middleware/DoHousekeeping.php(71): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#27 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\DoHousekeeping->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#28 …/app/Http/Middleware/UseTheme.php(67): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#29 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTheme->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#30 …/app/Http/Middleware/CheckForMaintenanceMode.php(51): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#31 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForMaintenanceMode->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#32 …/app/Http/Middleware/UseLanguage.php(69): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#33 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseLanguage->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#34 …/app/Http/Middleware/UseSession.php(78): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#35 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseSession->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#36 …/app/Http/Middleware/UpdateDatabaseSchema.php(57): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#37 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#38 …/app/Http/Middleware/UseDatabase.php(122): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#39 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#40 …/app/Http/Middleware/BadBotBlocker.php(308): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#41 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BadBotBlocker->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#42 …/app/Http/Middleware/CompressResponse.php(71): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#43 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CompressResponse->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#44 …/app/Http/Middleware/ContentLength.php(40): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#45 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ContentLength->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#46 …/vendor/middlewares/client-ip/src/ClientIp.php(65): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#47 …/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#48 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#49 …/app/Http/Middleware/HandleExceptions.php(89): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#50 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#51 …/app/Http/Middleware/BaseUrl.php(73): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#52 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#53 …/app/Http/Middleware/ReadConfigIni.php(68): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#54 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#55 …/app/Http/Middleware/SecurityHeaders.php(48): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#56 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#57 …/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#58 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#59 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#60 …/app/Webtrees.php(275): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest))
#61 …/app/Webtrees.php(262): Fisharebest\Webtrees\Webtrees::dispatch(Object(Nyholm\Psr7\ServerRequest), Array)
#62 …/index.php(51): Fisharebest\Webtrees\Webtrees->httpRequest()
#63 {main}

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

More
2 weeks 4 days ago #2 by makitso
Replied by makitso on topic Upgrading from 1.7.9 to 2.1.19
What is the file size of your GEDCOM file?   There is a php setting in php.ini  that controls this.  I have mine set to 
upload_max_filesize = 128M.

 

Rob
www.skatekey.net ( webtrees 2.1 beta GitHub)
webtrees forum admin
Author custom css module
PHP 8.1.21
Hosted at tigertech.net

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

  • ksajdak
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 4 days ago #3 by ksajdak
Replied by ksajdak on topic Upgrading from 1.7.9 to 2.1.19
6M.

Oh, Oh.

Solution?

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

More
2 weeks 4 days ago #4 by makitso
Replied by makitso on topic Upgrading from 1.7.9 to 2.1.19
Go to your webtrees  Control Panel / Server Information and look for the value upload_max_filesize. 
What is the value and, what version of php are you running?

Rob
www.skatekey.net ( webtrees 2.1 beta GitHub)
webtrees forum admin
Author custom css module
PHP 8.1.21
Hosted at tigertech.net

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

  • ksajdak
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 4 days ago #5 by ksajdak
Replied by ksajdak on topic Upgrading from 1.7.9 to 2.1.19
upload_max_filesize 2M
PHP version: 8.1.27

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
2 weeks 3 days ago - 2 weeks 3 days ago #6 by bertkoor
Replied by bertkoor on topic Upgrading from 1.7.9 to 2.1.19
2 MB limit is not unreasonable for images.

The import dialog does have an option import from a "file on server" instead of doing an upload. So you can work around the upload limit by using FTP to put that file on the server.

I understand an in-place upgrade is not possible? Then you would not need to upload the GEDCOM file and all things stored elsewhere (images, users, homepage blocks) would be preserved.

stamboom.BertKoor.nl runs on webtrees v1.7.13
Last edit: 2 weeks 3 days ago by bertkoor.

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

  • ksajdak
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 3 days ago #7 by ksajdak
Replied by ksajdak on topic Upgrading from 1.7.9 to 2.1.19
Just to be clear, I have uploaded the gedcom to the host. I can’t get the gedcom to load into webtrees.

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

  • ksajdak
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 3 days ago #8 by ksajdak
Replied by ksajdak on topic Upgrading from 1.7.9 to 2.1.19
Don't know what I did differently.

Uploaded a new gedcom, selected it from the import menu, and viola!

I did nothing really different, but it's loaded and up.

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

  • ksajdak
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 3 days ago #9 by ksajdak
Replied by ksajdak on topic Upgrading from 1.7.9 to 2.1.19
OK, I got the data.

You mentioned media and users as not being stored in the gedcom.

I need to transfer those to my new site.

Where are they stored, and how should I transfer them?

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

More
2 weeks 3 days ago #10 by fisharebest
Replied by fisharebest on topic Upgrading from 1.7.9 to 2.1.19
> Where are they stored, and how should I transfer them?

Use FTP / SFTP to copy the files to the server, same as the GEDCOM file.

Store them in a folder /data/media/....

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

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

  • ksajdak
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 3 days ago #11 by ksajdak
Replied by ksajdak on topic Upgrading from 1.7.9 to 2.1.19
I got the media moved.

I cannot find the user data to move. Where would I look?

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

More
2 weeks 3 days ago - 2 weeks 3 days ago #12 by Franz Frese
Replied by Franz Frese on topic Upgrading from 1.7.9 to 2.1.19
find in old db.
enter by hand.
Last edit: 2 weeks 3 days ago by Franz Frese.

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

  • ksajdak
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 3 days ago #13 by ksajdak
Replied by ksajdak on topic Upgrading from 1.7.9 to 2.1.19
Hope there is a better way.

160 users is too many to enter by hand.

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
2 weeks 3 days ago #14 by bertkoor
Replied by bertkoor on topic Upgrading from 1.7.9 to 2.1.19
If you remove the file config.ini.php (I think it is in the directory 'data') then the setup wizard should run again. There enter the database details of your old webtrees installation (which are stored in a similar location, have a peek in advance)

stamboom.BertKoor.nl runs on webtrees v1.7.13

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

  • ksajdak
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 3 days ago #15 by ksajdak
Replied by ksajdak on topic Upgrading from 1.7.9 to 2.1.19
This will import users?

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
2 weeks 3 days ago - 2 weeks 3 days ago #16 by bertkoor
Replied by bertkoor on topic Upgrading from 1.7.9 to 2.1.19
It's not an import, it uses the same database tables.
If webtrees 2.x is pointed to a 1.x database, you should get all the same data as you had: genealogy trees, users, home pages, module settings, everything.

stamboom.BertKoor.nl runs on webtrees v1.7.13
Last edit: 2 weeks 3 days ago by bertkoor.

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

  • ksajdak
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 weeks 3 days ago #17 by ksajdak
Replied by ksajdak on topic Upgrading from 1.7.9 to 2.1.19
Sorry, but I am reaching the limits of my experience.

If I understand, there is a database on my old host that has the user info.
If I erase the config.ini.php file on my new host, I can "re-install" Webtrees.

How do I connect the new install to a database on the old server and will it extract what I want and put on the new host?

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
2 weeks 2 days ago - 2 weeks 2 days ago #18 by bertkoor
Replied by bertkoor on topic Upgrading from 1.7.9 to 2.1.19
So you also moved host? That is new information. Usually a database cannot be accessed from outside a data centre, for security reasons.

See webtrees.net/faq/move-server/ :

webtrees FAQ article 'move server' wrote: .
4: Copy your database to the new server. You can use phpMyAdmin to create a mysqldump.sql file.


Copying a database is a multi-step procedure as well. I think google can tell you how exactly to do that.

stamboom.BertKoor.nl runs on webtrees v1.7.13
Last edit: 2 weeks 2 days ago by bertkoor.

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

More
2 weeks 2 days ago - 2 weeks 2 days ago #19 by ddrury
Replied by ddrury on topic Upgrading from 1.7.9 to 2.1.19

160 users is too many to enter by hand.


If you still have access to old setup, the simplest way is to send an email to all of your users (Control panel - Users - Send a message to all users), explain what you're doing and tell then that they will have to re-register on new system

--
Dave

Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26
Last edit: 2 weeks 2 days ago by ddrury.

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

More
2 weeks 2 days ago #20 by fisharebest
Replied by fisharebest on topic Upgrading from 1.7.9 to 2.1.19
> If I understand, there is a database on my old host that has the user info.
> If I erase the config.ini.php file on my new host, I can "re-install" Webtrees.

> How do I connect the new install to a database on the old server and will it extract what I want and put on the new host?

Do you have access to your old database?
e.g. using an interface such as phpMyAdmin?

If yes, then you can download your data (as a "mysql dump") and then import it into your new site.

No need to update config.ini.php or anything like that.

Just copy the database.

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

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

Powered by Kunena Forum
}