Installer, Updating the database from the Tiki installer failed and need to be done using the console
- Status
- Closed
- Subject
- Installer, Updating the database from the Tiki installer failed and need to be done using the console
- Version
- 26.x
- Category
- Bug
- Feature
- Database MySQL (InnoDB)
Installer (profiles, upgrades and server-related issues) - Resolution status
- Not enough information
- Submitted by
- Bernard Sfez / Tiki Specialist
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
I installed a new Tiki26 from git on my local computer.
When I updated the DB using the Tiki installer front this was the output;Copy to clipboardFatal error: Uncaught Error: Call to a member function writeLn() on null in /Users/bernardsfez/Documents/Shocksite/www/htdocs/tsaharoniki.com\_tiki26/installer/schema/20231008\_fix\_primary\_key\_issues\_on\_several\_tables\_tiki.php:41 Stack trace: #0 /Users/bernardsfez/Documents/Shocksite/www/htdocs/tsaharoniki.com\_tiki26/installer/schema/20231008\_fix\_primary\_key\_issues\_on\_several\_tables\_tiki.php(13): applyAlterForTable(Object(Tiki\\Installer\\Installer), 'tiki\_actionlog\_...', 'DROP PRIMARY KE...') #1 /Users/bernardsfez/Documents/Shocksite/www/htdocs/tsaharoniki.com\_tiki26/installer/Installer.php(186): upgrade\_20231008\_fix\_primary\_key\_issues\_on\_several\_tables\_tiki(Object(Tiki\\Installer\\Installer)) #2 /Users/bernardsfez/Documents/Shocksite/www/htdocs/tsaharoniki.com\_tiki26/installer/Installer.php(141): Tiki\\Installer\\Installer->installPatch('20231008\_fix\_pr...') #3 /Users/bernardsfez/Documents/Shocksite/www/htdocs/tsaharoniki.com\_tiki26/installer/tiki-installer.php(511): Tiki\\Installer\\Installer->update() #4 /Users/bernardsfez/Documents/Shocksite/www/htdocs/tsaharoniki.com\_tiki26/tiki-install.php(137): include\_once('/Users/bernards...') #5 {main} thrown in /Users/bernardsfez/Documents/Shocksite/www/htdocs/tsaharoniki.com\_tiki26/installer/schema/20231008\_fix\_primary\_key\_issues\_on\_several\_tables\_tiki.php on line 41
Using SSH I ran the update through the consolephp console.php database:u
It completed and I could re-run the installer.I also installed on a Debian remote server and had the same issue.
- Importance
- 5
- Easy to solve?
- 5
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is currently unavailableUnable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
- Ticket ID
- 8561
- Created
- Wednesday 01 November, 2023 17:27:26 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Monday 12 February, 2024 06:43:18 UTC