Loading...
 
Skip to main content

Wiki pages; Several pages broken after upgrade to Tiki26 due to "something" in the title of the page (pageName and/or pageSlug)

Status
Pending
Subject
Wiki pages; Several pages broken after upgrade to Tiki26 due to "something" in the title of the page (pageName and/or pageSlug)
Version
26.x
Regression from 25.x to 26.x
Category
  • Regression
Feature
Wiki (page view, edit, history, rename, etc)
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Eutyche ODIMBA
Rating
(0)
Related-to
Description

In a previous Tiki25 I used quotes, accents or long title for wiki page names.
They were displayed properly.

After upgrading to Tiki26 several of my pages are broken and shows the following:

Copy to clipboard
Fatal error rendering template resource tiki-show_page.tpl TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, no array or string given in /home/bsfez/public_html/lib/init/SmartyTikiErrorHandler.php:95 Stack trace: #0 /home/bsfez/public_html/temp/templates_c/fr_social^7cba25fefb5120294201d81d1e9f112ea977a682_0.file.layout_view.tpl.php(286): SmartyTikiErrorHandler->handleError() #1 /home/bsfez/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_64c0e45c25e9f6_16431072() #2 /home/bsfez/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #3 /home/bsfez/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #4 /home/bsfez/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #5 /home/bsfez/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender() #6 /home/bsfez/public_html/temp/templates_c/fr_social^1db2b71d9597fdb80939756f2d45df4ec171fc26_0.file.tiki-show_page.tpl.php(53): Smarty_Internal_Runtime_Inheritance->endChild() #7 /home/bsfez/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_64c0e45c1ff436_21465900() #8 /home/bsfez/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #9 /home/bsfez/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #10 /home/bsfez/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #11 /home/bsfez/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute() #12 /home/bsfez/public_html/lib/init/smarty.php(492): Smarty_Internal_TemplateBase->display() #13 /home/bsfez/public_html/tiki-index.php(746): Smarty_Tiki->display() #14 /home/bsfez/public_html/route.php(364): include('...') #15 {main}


I had to fix a dozen of pages by changing the pageName and the pageSlug from within the database (phpmyadmin).
(while the page action button were not accessible I tried also to use `https://www.bernardsfez.com/tiki-rename_page.php?page=...` saving a new title displayed the error again.)

Pages title I had to change so far (grouped by set of translation en, fr, he):

  • Kindergarten-and-children’s-activities-software-management-online
  • Logiciel de gestion de Crèches Garderies Centres aérés Ateliers et Activités pour enfants
  • תוכנה-מקוון-לניהול-צהרון-חוגים-וגני-ילדים

  • Knowledge database management web app
  • Application-Web-de-gestion-de-base-de-données-et-de-connaissances


I can't see something common to those titles.

After modifying from within the database i could access to the page and I renamed them to "validate" in the Tiki way the changes.
Still, I had to remove manually the rows for previous existing alias for the pages I modified from inside the "tiki_object_relations" table.

These pages don't have a lot of code.
They are mainly a plugin List that use Smarty templates.
I have 18 pages like these (6 pages * 3 for all languages) and only 5 didn't worked.

Importance
7
Easy to solve?
5
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8475
Created
Wednesday 26 July, 2023 15:44:49 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Thursday 14 September, 2023 07:56:35 UTC


Show PHP error messages