Loading...
 

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
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:

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?) Jonny Bradley


Maybe r65950? Jonny Bradley


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
Ticket ID
6561
Created
Thursday 01 February, 2018 08:08:17 GMT-0000
LastModif
Tuesday 29 May, 2018 20:20:13 GMT-0000

Attachments

 filenamecreatedhitscommentversionfiletype 
No attachments for this item


Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting
Administration
Ajax
Articles & Submissions
Backlinks
Banner
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution
Cookie
Copyright
Credits
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
DogFood
Draw
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Group
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping
Mobile
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links
Share
Shopping Cart
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags
Task
Tell a Friend, alert + Social Bookmarking
Terms and Conditions
Theme
TikiTests
Timesheet
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
Webmail and Groupmail
WebServices
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives
WYSIWTSN
WYSIWYCA
WYSIWYG
XMLRPC
XMPP




Useful Tools