Loading...
 
Skip to main content

Fatal error trying to upgrade to Tiki 18 ("Call to a member function urldecode() on null")

Status
Closed
Subject
Fatal error trying to upgrade to Tiki 18 ("Call to a member function urldecode() on null")
Version
18.x
Category
  • Error
Feature
Installer (profiles, upgrades and server-related issues)
Resolution status
Fixed or Solved
Submitted by
ilkkao
Lastmod by
Philippe Cloutier
Rating
(1)
Related-to
Description

I tried to upgrade my Tiki kipinapartio.fi from 17.1 to 18.0 .

During the database migration phase got this error:

Copy to clipboard
Fatal error: Uncaught Error: Call to a member function urldecode() on null in /home/kipinapartio/tiki-18.0/lib/parser/parserlib.php:3682 Stack trace: #0 /home/kipinapartio/tiki-18.0/installer/schema/20171123_create_object_links_tiki.php(18): ParserLib->get_pages('Lippukuntamme k...') #1 /home/kipinapartio/tiki-18.0/installer/schema/20171123_create_object_links_tiki.php(43): {closure}(Object(Installer), 'article', '34', 'Lippukuntamme k...') #2 /home/kipinapartio/tiki-18.0/installer/installlib.php(175): upgrade_20171123_create_object_links_tiki(Object(Installer)) Fatal error: Uncaught Error: Call to a member function urldecode() on null in /home/kipinapartio/tiki-18.0/lib/parser/parserlib.php:3682 Stack trace: #0 /home/kipinapartio/tiki-18.0/installer/schema/20171123_create_object_links_tiki.php(18): ParserLib->get_pages('Lippukuntamme k...') #1 /home/kipinapartio/tiki-18.0/installer/schema/20171123_create_object_links_tiki.php(43): {closure}(Object(Installer), 'article', '34', 'Lippukuntamme k...') #2 /home/kipinapartio/tiki-18.0/installer/installlib.php(175): upgrade_20171123_create_object_links_tiki(Object(Installer)) #3 /home/kipinapartio/tiki-18.0/installer/installlib.php(130): Installer->installPatch('20171123_create...') #4 /home/kipinapartio/tiki-18.0/installer/tiki-installer.php(1049): Installer->update() #5 /home/kipinapartio/tiki-18.0/tiki-install.php(102): include_once('/home/kipinapar...') #6 {main} thrown in /home/kipinapartio/tiki-18.0/lib/parser/parserlib.php on line 3682



This is an old Tiki that has been upgraded many times. Reverting now back to 17.1 but I'm available to provide any extra info you need.

Solution

As discussed in the tikiwiki-devel thread:

Chealer wrote on 23 Feb 18:
This looks like a bug in TikiLib::lib(), exposed when requesting TikiLib when tiki-setup_base.php has not run. Other installer "patches" like installer/schema/999999991_decode_pages_sources_tiki.php and installer/schema/99999999_image_plugins_kill_tiki.php have worked around it.

Nothing to do with the above imho, hopefully fixed in r65660 Sorry, Chealer, you're absolutely right i think, r65660 didn't work - just adding tiki-setup.php in 20171123_create_object_links_tiki.php would probably do it but i don't know what that script is supposed to do really so better leave it to the original author (Asa?)


Maybe r65950?


This was fixed for Tiki 18.2 by Lukas Masek via revisions 66546 and 66547: http://sourceforge.net/p/tikiwiki/code/66547

Importance
9
Easy to solve?
6
Priority
54
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6561
Created
Thursday 01 February, 2018 08:08:17 UTC
by ilkkao
LastModif
Tuesday 29 May, 2018 20:20:13 UTC


Show PHP error messages