Loading...
 
Skip to main content

Category: Regression from 26.x to 27.x

Regression from 26.x to 27.x
Show subcategories objects

Name Type
jQuery Sortable Tables feature warning is visible when using wiki fancy table
{syntax type="tiki" editor="plain"}
On a Tiki27 where I don't use jQuery sortable tables.
I set a fancytable wikiplugin to display 2 columns side by side.
One contain a diagram (wiki plugin image) the second some text.

Under the fancytable the following warning is displayed even for anonymous:
"The jQuery Sortable Tables feature must be activated for the sort feature to work."
tracker item
Article custom attribute causes fatal error
{syntax type="tiki" editor="plain"}
Testing how custom attributes work when creating an article, I added a new custom attribute on the article types page (tiki-article_types.php), which added a new input on the advanced tab of my articles edit page (tiki-edit_article.php?articleId=3#content-edit_article1-5). I input text for the data of the attribute and published the article, and it worked fine (the attribute name and data displayed at the top of the article text). But when I tried to re-edit the article, I got this error:

{CODE()}Fatal error: Uncaught TypeError: Cannot access offset of type string on string in . . . \master\lib\articles\artlib.php:1661 Stack trace: #0 . . . \master\tiki-edit_article.php(685): ArtLib->set_article_attributes('3', Array) #1 {main} thrown in , , , \master\lib\articles\artlib.php on line 1661{CODE}

tracker item
Category listing returns no objects (bug - regression from 26 to 27)
{syntax type="tiki" editor="plain"}
Behavior: Regardless of site permissions (Admin or Anonymous), an attempt to list Objects belonging to specific Category returns no Objects. This happens both in the Admin interface (category management and listing) and on page level (listing pages belonging to a category via wiki plugin).
The only place that correctly shows object categories is the interface where objects can be assigned/reassigned to a different category.

Expectation: seeing a list of Objects that were previously assigned to a specific Category like it was possible in version 26.

This behavior was observed after performing a full upgrade of existing website from version 26 to 27 (database was successfully migrated to v27).
tracker item
Fatal error updating a wiki page at themes.tiki.org
{syntax type="tiki" editor="plain"}
{syntax type="tiki" editor="plain"}
This error displayed today when I tried to update a wiki page's content:
Fatal error: Uncaught Error: Class "Tiki\Lib\wiki\Tikilib" not found in /home/tiki-themes/public_html/lib/wiki/WikiPaginationUtils.php:30 Stack trace: #0 /home/tiki-themes/public_html/lib/wiki/renderlib.php(396): Tiki\Lib\wiki\WikiPaginationUtils::getNumberOfPages() #1 /home/tiki-themes/public_html/lib/wiki/renderlib.php(96): WikiRenderer->setupPage() #2 /home/tiki-themes/public_html/tiki-index.php(715): WikiRenderer->runSetups() #3 /home/tiki-themes/public_html/route.php(373): include('...') #4 {main} thrown in /home/tiki-themes/public_html/lib/wiki/WikiPaginationUtils.php on line 30


Git information: 27.x:bf6f6e1d from 05:15 GMT-0000
tracker item
Fatal error when changing banner type or creating a new banner zone
{syntax type="tiki" editor="plain"}
I configured a banner a while back and set the "Use image" method. When I changed it to the "Use text" method and saved, this error message displayed:

"Fatal error: Uncaught Error: Call to a member function uploaded_file_error() on null in . . . \tiki-edit_banner.php:279 Stack trace: #0 {main} thrown in . . . \tiki-edit_banner.php on line 279"

I deleted the original banner zone and created a new one. After clicking the "Create a new Zone" button, I got the error again.
tracker item
Field selection is broken in some condition when using the wiki plugin tracker
{syntax type="tiki" editor="plain"}
{img fileId="3052" thumb="box"}
{img fileId="3053" thumb="box"}

Field selection is also not working when setting a tracker wikiplugin in a smarty template
{CODE()}
{wikiplugin _name=tracker trackerId="1" fields="3:4:5" tpl="contactForm.tpl" showmandatory="n"}{/wikiplugin}
{CODE}
tracker item
Headings now have d-flex justify-content-start classes and this breaks some page styling
{syntax type="tiki" editor="plain"}
Using wiki syntax for headings and no other styling or classes, now h2 has classes "d-flex justify-content-start". This is new in Tiki 27. It's messing up one page of mine where everything is centered, so now everything is centered except the headings, which are left justified. Sometimes headings are centered, but now apparently this isn't possible without resorting to HTML instead of wiki syntax (I didn't check if Markdown in Tiki also adds these classes.)

I don't know what problem adding these classes to all the heading sizes was meant to solve but hope there is another way to solve it and these classes can be removed from headings.
tracker item
ItemLink field status filter option has been broken and is not filtering anymore
{syntax type="tiki" editor="plain"}
With the tracker field Item Link there is a status filter.
This allow to displays certains items on item creation based on their status.

In my example I have holidays event from 2019 up to 2025.
Each time an event date is reached I close the item so user can register only to futur event.

It worked fine till I upgraded to Tiki27.

After the upgrade the status filter is not applied.

{img fileId="3077" thumb="box"}

{img fileId="3076" thumb="box"}

{img fileId="3075" thumb="box"}

Tested using MySQL full-text search and Manticore Search.

~~#d0021b:Update: The bug appears when using multiple fields option in the ItemLink field options. It was tested with one item in the field.~~
tracker item
Malformed search query: SQLSTATE[42000]: Syntax error or access violation
{syntax type="tiki" editor="plain"}
Bunch of malformed search query errors with some weird REGEX() stuff?

{CODE()}Malformed search query: SQLSTATE[42000]: Syntax error or access violation: 1064 P01: syntax error, unexpected identifier, expecting string near 'Array) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(stream, Array)) OR REGEX(str...{CODE}

Steps to reproduce:
# click on the bell icon next to your logged in username at top right
# Unread Notifications modal appears
# click Show More button

See https://dev.tiki.org/tiki-monitor-stream?from=-30+days&to=now&critical=1&high=1&low=1


tracker item
Not possible anymore to select the fields displayed in the tracker wiki plugin using the Wiki interface
{syntax type="tiki" editor="plain"}
Using the "help" tool from the Wiki editing toolbar it is not possible to select the fields to be displayed in a tracker wiki plugin.

Tested here : https://dev.tiki.org/test
{img fileId="3051" thumb="box"}

The user has to enter in the editing mode and enter manually the fields id.
tracker item
Not possible to add or edit an item using the tracker modal on dev
{syntax type="tiki" editor="plain"}
I can't update a tracker item or create a tracker item from the tracker interface (modal)

{img fileId="3054" thumb="box"}
tracker item
On the Forums the img plugin is not displayed after editing a comment
{syntax type="tiki" editor="plain"}
At https://tiki.org/forumthread79535-Unsubscribe-link-in-header-records I posted an answer with a picture.
It has been uploaded to the Tiki file gallery and was visible after the first save.

I edited the comment and now, while the plugin code is still visible if I edit the comment, the thumbnail is not visible anymore.

Tested on Brave and Chrome.

{img fileId="3048" thumb="box"}

{img fileId="3049" thumb="box"}
tracker item
Options (child themes) of custom themes aren't working
{syntax type="tiki" editor="plain"}
With the new build system, custom theme option names show up in selectors, but the themes aren't applied.
tracker item
Plugin wishes is failing on the page Regressions-in-26x and show.tiki.org
The following error message is show on the place of the plugin:
-+Field with fieldId: 150 not found in definition of 5+-
tracker item
Problem with custom theme stylesheet link in page source
{syntax type="tiki" editor="plain"}
I noticed that the the stylesheets of the themes I have in public/generated/_custom/shared/themes have an error in the console like "GET http://localhost . . . /public/generated/_custom/shared/themes/MyThemecss/MyTheme.css - [HTTP/1 404 Not Found]" The slash between the theme name and its css directory is missing. Looking at the page source, I see the theme stylesheet link twice. It's correct the first time it's called, as the third stylesheet link, but it's called again as the last stylesheet link, and this time it's incorrect (missing the slash).

The first instance of the link isn't necessary, and should be removed as far as I know. Then the path in the second instance, the last stylesheet link, should be corrected (the missing slash should be restored).

Also, I'm seeing a difference comparing one custom theme to another. Here's the page source of a theme that displays correctly:

{CODE()}
<link rel="stylesheet" href="themes/base_files/css/tiki_base.css" type="text/css">
<link rel="stylesheet" href="public/generated/js/vendor_dist/@fortawesome/fontawesome/all.css" type="text/css">
<link rel="stylesheet" href="public/generated/_custom/shared/themes/Shapely/css/Shapely.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/studio-42/elfinder/css/elfinder.min.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/studio-42/elfinder/css/theme.css" type="text/css">
<link rel="stylesheet" href="lib/openlayers/theme/default/style.css" type="text/css">
<link rel="stylesheet" href="public/generated/js/vendor_dist/jquery-ui/dist/themes/flick/jquery-ui.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/jquery/jquery-timepicker-addon/dist/jquery-ui-timepicker-addon.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/npm-asset/select2/dist/css/select2.min.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/npm-asset/select2-bootstrap-5-theme/dist/select2-bootstrap-5-theme.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/drmonty/smartmenus/css/sm-core-css.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/drmonty/smartmenus/css/jquery.smartmenus.bootstrap-4.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/jquery-plugins/colorbox/example1/colorbox.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/jquery-plugins/treetable/css/jquery.treetable.css" type="text/css">
<link rel="stylesheet" href="public/generated/_custom/shared/themes/Shapelycss/Shapely.css" type="text/css">
{CODE}

So the first link to the theme stylesheet is correct although the second one isn't, so the theme works correctly. I believe most of my custom themes have this pattern of links. And here is the page source of a theme that isn't working (its stylesheet is not being applied). I'm not sure yet if it's something I did that caused this weirdness (why is themes/default/ involved at all), or something in the build process, etc.:

{CODE()}
<link rel="stylesheet" href="public/generated/js/vendor_dist/@fortawesome/fontawesome/all.css" type="text/css">
<link rel="stylesheet" href="themes/default/css/default.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/studio-42/elfinder/css/elfinder.min.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/studio-42/elfinder/css/theme.css" type="text/css">
<link rel="stylesheet" href="lib/openlayers/theme/default/style.css" type="text/css">
<link rel="stylesheet" href="public/generated/js/vendor_dist/jquery-ui/dist/themes/flick/jquery-ui.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/jquery/jquery-timepicker-addon/dist/jquery-ui-timepicker-addon.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/npm-asset/select2/dist/css/select2.min.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/npm-asset/select2-bootstrap-5-theme/dist/select2-bootstrap-5-theme.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/drmonty/smartmenus/css/sm-core-css.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/drmonty/smartmenus/css/jquery.smartmenus.bootstrap-4.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/jquery-plugins/colorbox/example1/colorbox.css" type="text/css">
<link rel="stylesheet" href="vendor_bundled/vendor/jquery-plugins/treetable/css/jquery.treetable.css" type="text/css">
<link rel="stylesheet" href="public/generated/_custom/shared/themes/Mondrianiccss/Mondrianic.css" type="text/css">
{CODE}

The pages that the theme is assigned for are using the "default" theme because that stylesheet has a correct link, and the second link is missing the slash between theme name and its css directory.

__Update__; Checking again after Benoit's [https://matrix.to/#/!SLEgqpTNTlGYAhzNvK:gitter.im/$M5cFIfFW-1Nsqj9SIfu94wqUcIAWrtsmYcGqRzYkYtU?via=gitter.im&via=matrix.org&via=sans-nuage.fr|question] on Matrix, I see that the theme with the wrong URL is assigned by Theme Control, so I guess that's where the fix for the wrong URL is needed. Unrelated, the theme stylesheet does need to come last, not earlier in the loading of stylesheets, in order to override declarations in external scripts, etc.
tracker item
Setting several categories in a module is broken
{syntax type="tiki" editor="plain"}
With a Tiki build-in module like logo.
In Visibility you can set a parameter to filter to have the module used with specific object categories.
For cat22 and cat23 you should add a semi-colon like this : "22:23".
On save the semi-columns are deleted and the filter is not working at all.

{img fileId="3091" thumb="box"}

---
~~#F00:See Solution (for the custom modules)~~

With a custom module you had to add a parameter per category to have the same behavior.

On a custom module in the parameter field if I set several category like this:
-+nobox=y&category=22&category=23+-

In the modules once saved it look like this as before.

{img fileId="3092" thumb="box"}

But only the last category entered will have the effect to display the module.
All previous categories will be omitted unlike before and this is a regression.
tracker item
The LIST filter NOT is not working anymore
{syntax type="tiki" editor="plain"}
On a Tiki26 I have the following plugin LIST

{CODE()}
{LIST()}
{list max="50"}
{filter type="trackeritem"}
{filter content="11" field="tracker_id"}
{filter content="o OR p" field="tracker_status"}
{filter field="tracker_field_paymentsStage" content="NOT Completed"}
{LIST}
{CODE}

It works just fine.



On a Tiki27 using the same database and the same plugin I have no output.
If I change the filter for {filter field="tracker_field_paymentsStage" content="Completed"} it work (and results are consistant).
tracker item
The class attribute is not working anymore on certain CustomSearch fields
{syntax type="tiki" editor="plain"}
Up to Tiki26x it was possible to add a class to certain elements of the CustomSearch plugin interface.

For example:
{CODE()}
{categories _parent="4" _style="select" class="faq-input-field selectCategory bg-primary-light h-100 mt-2 mt-md-0 mt-lg-0 mt-xl-0 mt-xxl-0" _firstlabel="Search..." _showdeep="y"}
{CODE}

On Tiki27 due to the usage of "Select2" the class is omitted.
This doesn't happen for all CustomSearch fields, but do on selectors.

{img fileId="3060"}
tracker item
The wikiplugin swiper is broken since Tiki27
{syntax type="tiki" editor="plain"}
The wiki plugin Swiper is not working anymore and page using it display the following error:
Please update composer to install required files

See: https://doc.tiki.org/PluginSwiper
tracker item
TikiManager Throws Errors when installing Tiki 27.x on low memory machine
{syntax type="tiki" editor="plain"}
I installed Tiki 27.x on two servers (The first with 2.5G RAM and the other with 1GB RAM) And Tiki 27.x was well installed n the first server successfully but on the second server it throwed errors :
{CODE(caption="Error" theme="default")}TypeError: Return value of "TikiManager\Command\ConsoleInstanceCommand::execute()" must be of the type int, "null" returned. in /opt/tiki-manager/app/vendor/symfony/console/Command/Command.php:301
Stack trace:
#0 /opt/tiki-manager/app/src/Command/TikiManagerCommand.php(60): Symfony\Component\Console\Command\Command->run()
#1 /opt/tiki-manager/app/vendor/symfony/console/Application.php(1058): TikiManager\Command\TikiManagerCommand->run()
#2 /opt/tiki-manager/app/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#3 /opt/tiki-manager/app/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#4 /opt/tiki-manager/app/tiki-manager.php(221): Symfony\Component\Console\Application->run()
#5 /opt/tiki-manager/app/tiki-manager(4): require('...')
#6 {main}
TypeError: Return value of "TikiManager\Command\ConsoleInstanceCommand::execute()" must be of the type int, "null" returned. in /opt/tiki-manager/app/vendor/symfony/console/Command/Command.php:301
Stack trace:
#0 /opt/tiki-manager/app/src/Command/TikiManagerCommand.php(60): Symfony\Component\Console\Command\Command->run()
#1 /opt/tiki-manager/app/vendor/symfony/console/Application.php(1058): TikiManager\Command\TikiManagerCommand->run()
#2 /opt/tiki-manager/app/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#3 /opt/tiki-manager/app/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#4 /opt/tiki-manager/app/tiki-manager.php(221): Symfony\Component\Console\Application->run()
#5 /opt/tiki-manager/app/tiki-manager(4): require('...')
#6 {main}{CODE}
tracker item
Wiki page comments are broken on doc.t.o
{syntax type="tiki" editor="plain"}
At https://doc.tiki.org/Sublist I wrote a first comment.
An error remarksbox was displayed and the comment was not displayed as it usually do.

{img fileId="3089" thumb="box"}

I retried several times trying to see if an element in the content was causing the issue.

After a while I revisited the page to find out my 6 comments saved.

I tried to delete the 5 extra comments but I couldn't delete them.
# From the page itself using the delete button => It show the same error remarlsbox about the trackerid parameter
# From the comments admin page per comment (using the wrench), https://doc.tiki.org/tiki-list_comments.php => Error 500
# From the comments admin page global action (at the bottom of the list), https://doc.tiki.org/tiki-list_comments.php => Error 500

{img fileId="3090" thumb="box"}

Side note: Archiving seems to work.
tracker item
Show PHP error messages