Loading...
 
Skip to main content

(2.2) Invalid offset in lib/tikilib.php : 6193 (when dealing with cached pages)

Status
Closed
Subject
(2.2) Invalid offset in lib/tikilib.php : 6193 (when dealing with cached pages)
Version
2.x
Category
  • Error
Feature
Performance / Speed / Load / Compression / Cache
Wiki (page view, edit, history, rename, etc)
Wiki Syntax (text area, parser, external wiki, etc)
Resolution status
New
Submitted by
jhamell
Lastmod by
Landry Bitege
Rating
(0)
Description

This showed up after upgrading from 1.9.11 to 2.2

When accessing Wiki pages with external links (mixed cacheing and nocache), with PHP error reporting on, notified of an invalid offset in tikilib:6193.

Solution

Replace:

if ($matches2=='nocache') {

with

if ( count($matches) > 2 && $matches2=='nocache' ) {

(Please note, PHP isn't a language I know, so some of the syntax may be off).
Thanks.

Workaround
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2288
Created
Wednesday 04 February, 2009 19:52:44 UTC
by Unknown
LastModif
Wednesday 20 May, 2026 07:44:41 UTC


Show PHP error messages