Loading...
 
Skip to main content

Category: Less than 30-minutes fix

The task should not take more than 30 minutes to be solved. Tag a bug or wish with this category in order to have them easily filtered at a TikiFest for example.
Less than 30-minutes fix
Show subcategories objects

Name Type
Proposition: REST API "adaptor" code
Hi,
TW newbie here, not sure if it's the right category and the right format. Please deal with humans willing to help :)
This post is to solve:
-+Add an Application Programming Interface (API) to improve Federation capabilities, and for BPMN, hopefully in Tiki22
Mainly add a REST API "adaptor" code to make all services available over REST +-
from https://dev.tiki.org/Tiki21

I needed a REST API now and really start to enjoy tikiwiki 21 in my docker container.
I successfully installed a PHP script to solve it for me:
https://github.com/mevdschee/php-crud-api
It serves the whole database with rest api endpoints, so you need to configure which tables you want to serve (trackers, pages, ...)

About integrating it in TW ... unfortunately I'm not a great coder and new to tikiwiki, so not of great help for now :(
If you share with me how you solve this, I might help to code directly in the future.

If any TW guru would like to test. I went through hurdles with docker:
https://github.com/mevdschee/php-crud-api/issues/669

Not sure if it's popular for other TW members but it was mandatory for me.
Easy to solve? Yes for working solution, I don't know for integration.

TW solves the IP thing so I guess it will a walk in the park for you :)
Have a great day!
tracker item
Quote plugin: helper does not include selected text as the quote data
Quote plugin helper does not include selected text as the quote data. It worked before with the former Quicktags "text" selection.
tracker item
Radio fields options share the same id in tracker plugin
To reproduce:

* Create a tracker
* Add radio field radio1 with values a,b,c,d,e,f
* Add radio field radio2 with values 1,2,3,4,5,6
* Create wiki page, use the tracker plugin: (with the right field and tracker id)

{code}{TRACKER(trackerId=>1, fields=>1:2)}Thank you.{TRACKER}{code}

* Click on the label for the value "2" in the radio2 field.

It should not select option "b" of radio1, but it does, since the share the same id.

It is fine in Tiki 12 and up.
tracker item
Removal of user from group does not remove from Admin Users page display
I had two usergroups, then added a third, then went in to remove a user from a group from the Admin Users page. If I go into Admin Groups and click on a group and then go down to Show Users in Group, it shows the correct list with the appropriate users missing from the group that I had removed.

If I go into Admin Users, the list of users shows up and if I look at the line entry for the users I removed from ABC group, the group shows up in italics (''ABC'').

Unless there is a cleanup function I'm unaware of, I think this may be a bug. I'm running 1.9.7 according to the README.

tracker item
Reply button does not work in forums
As of 2009-10-19, if I open a forum and click on a posting, if I click on the Reply button, nothing happens. Last week, when I clicked on that button, I was getting some kind of MySQL error message. But now, it simply does nothing.

Note that if instead of clicking on the REply button, I scroll down to the "Post new message" section (which contains a copy of the current post with a > in front of each line), I can write an answer, and click on Post and it works.

But I should be able to click on Reply.
tracker item
Reset chat content
I am replacing a site with Tiki Wiki, on which there is a chat feature too. The problem with Tiki Wiki is that the chat's content MUST be cleared at times, when some conversations should be censored or "erased from history".

The feature should not take long and should only be a button next to the user input box, available only to allowed users.

The feature would simply remove any existence of the chat's content with no history whatsoever.
tracker item
Robots.txt Enhancements
I have completed an enhanced robots.txt file.

Initial Website XML Maps I was making were returning Just under 500 results. The Sitemap now returns 45 results, one of which is an error, that I have filed a separate bug report for. No pages are duplicated, all pages with relevant content are crawled.

Of note is that I have re-enabled the file gallery being crawled. It was returning large number of files and was disabled to prevent pressure on the web server. Results can now be indexed without the massive duplication that existed before.

There is a section in the file that can be commented out to prevent duplicated pages when SEF URL's is enabled. Applied automatically, it will prevent the entire website from being crawled.

Of importance is also that I have only tested this for the feature set that I am using. It WILL create a better crawling and therefor better Search Engine ranking with other features, but may not take it as far as one could be achieved.

Using this robots.txt file not only decreases server load, but also leads to better search engine rankings.
tracker item
Rollback should indicate who did the rollback
I did a rollback here:
https://dev.tiki.org/tiki-pagehistory.php?page=Where+to+commit
but there is no indication who did the rollback.

Suggestion: change to:

rollback to version 239 by marclaporte
tracker item
RSS feeds dont work correctly when tiki is installed in a subdirectory.
Attempting to View the RSS feed of a page that is running 1.9.0 in a subdirectory results in the error:

The XML page cannot be displayed



It seems to me as though TikiWiki has a number of inconsitencies with the way in which it manages paths, which cause some problems for sites running in subdirectories, the newsletter subscribe url for example uses parse_url to get the path (eg /tikiwiki/) then prepends the httpprefix, whereas the RSS module just appends httpprefix, so in other words these modules expect different thing from the httpprefix function the RSS module want http://mydomain.net/tikiwiki/ whereas the newsletter module just wants http://mydomain.net
tracker item
RSS for Wiki is malformed (broken in firefox)
I have the latest files for RSS, and the RSS feed is malformed. I fails to load properly in Firefox, and loads in other readers (e.g. Yahoo) but without formatting.

RSS Validator says one error is that there is an extra line before the first <xml... line, which is causing it to be parsed as HTML and not as XML for RSS. See here for an example; http://www.casesofinterest.com/tiki/tiki-wiki_rss.1.43.2.1.php?ver=2


I have spent a lot of time tracing the calls and I can't figure out why it works fine for blogs, but not for wikis as the code is similar. I hope someone who knows more than I can fix this.
tracker item
RSS support broken
Firefox has the RSS feed reader function removed for some while now, MS Edge still carries it. You can add a feed into MS Outlook.

When you add the Feed Indicator add-on to Firefox, it will display RSS feeds available (if you turned the feature on in the Control Panels.

So you can have Outlook and Firefox display, for instance, the Article feed from your Tiki. It will display just headlines and the introduction, and display a link to read the full article. But that link is broken...

Example: Link to article #72 is this:
{CODE(Colors="Tiki")}
WEBSITE/tiki-read_article.php%3FarticleId%3D72
{CODE}

This will only produce a 500 Internal Server Error... The correct syntax would have been:
{CODE(Colors="Tiki")}
WEBSITE/tiki-read_article.php?articleId=72
{CODE}

A look into the generated XML shows this:
{CODE(Colors="Tiki")}
<entry>
<title type="html">TITLE TEXT</title>
<summary type="html">
<strong>HEADLINE</strong>
</summary>
<published>2022-03-02T03:53:00+00:00</published>
<updated>2022-03-02T03:53:00+00:00</updated>
<link rel="alternate" type="text/html" href="WEBSITE/tiki-read_article.php%3FarticleId%3D72"/>
<id>
WEBSITE/tiki-read_article.php%3FarticleId%3D72
</id>
</entry>
{CODE}

So both the question mark and the equals sign got encoded into hex, which shouldn't be...
tracker item
Scheduler Admin UI untranslateable text
The admin UI for the schedular contains some help text that is strangely totally untranslateable.

/templates/tiki-admin_schedulers.tpl contains this at line 147:
{CODE(Colors="Tiki")}
{remarksbox type="note" title="{tr}Information{/tr}"}
{tr}Use CRON format to enter the values in "Run Time":
<br>
Minute, Hour, Day of Month, Month, Day of Week
<br>
Eg. every 5 minutes: */5 * * * *{/tr}
{/remarksbox}
{CODE}

Since the text is correctly enclosed in tr in curly braces. I am at a loss why this is the case, and why it throws no error?

Also, I seem unable to translate the task descriptions. These are ConsoleCommand, ShellCommand, HTTPGetCommand. I cannot even find the location where they are set. While I figure that admins who want to use schedulers might understand those terms, so task descriptors are slightly less important, but the help text about CRON syntax isn't.
tracker item
Search displays markup code in resultss
Currently search displays markup code in results... Could there be an option to filter out parsed code? Code between ~np~ and ~pp~ tags however, is part of the desired search content (but should still remain unparsed).

Thank you,

OC
---
also:
http://tikiwiki.org/tiki-view_forum_thread.php?topics_offset=66&topics_sort_mode=lastPost_desc&forumId=4&comments_parentId=21785
tracker item
Search file name from top file gallery doesn't find it when it is in child
At the File Gal UI, when you search for a file name (search string "foo", file name "my foo file") you get no results if the file is in a child file galery and not in the top one (file gal 1).

If you go to the child file gallery, and search again, you will find the file. But the problem is in production sites, with many files in many file galleries, and someone wants to replace a file with a new version of that file, you need to find where that file is, and most users look for file name strings in the search box to find files in the File Gallery UI (new users don't search for file id, which would work, but that is another story).

If you search the same string in the tiki search module (using unified search index) against object type "files", then you find that file with no problems.

So apparently, the search form in the file gallery when you are in th etop file gallery should include by default all child file galleries to get the expected results (oh well, this is just an educated guess)

FYI

P.S: We are not using elfinder since it was affected by other CSRF bugs, and afaik, you can't replace a file with a new version while keeping the same file id, throgh elfinder UI.

P.S.S: The CSRF bugs should be fixed now with {commit id="70908"}{sign user="lindon" datetime="2019-11-10T18:20:03+00:00"}
tracker item
Search results (for wiki pages) does not include &bl when using multilingual & best language options
When the Multilingual and Best Language features are enabled, the Tiki wiki page search results (both searchindex.php andsearchresults.php) do not append the "&bl" to the URL.
tracker item
Searched words are not highlighted in Tiki3.0
I just installed TikiWiki 3.0 on a XP workstation and a Solaris server. When I performed a search, the searched word was not highlighted in the SearchResults page. I used Tiki 2.2 and 2.8 before and both did it. It could be bug in 3.0.

I have examined the generated page and couldn't find the <span class='highight_word_01'> around the searched word.

I appreciate it if someone can show me how to fix it.

Thanks.
tracker item
setup.sh enters endless loop
When I run sh setup.sh on a fresh svn install on a fresh server, I get an endless loop of errors even though the error message claims that it is retrying __“for a few times.”__

See excerpt below (still looping by the time I end up writing this)
^
Problem 1
- Installation request for phpunit/phpunit-selenium 1.3.2 -> satisfiable by phpunit/phpunit-selenium[1.3.2].
- phpunit/phpunit-selenium 1.3.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.

Composer failed, retrying in 5 seconds, for a few times. Hit Ctrl-C to cancel.
setup.sh: 486: setup.sh: N++: not found
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for phpunit/phpunit-selenium 1.3.2 -> satisfiable by phpunit/phpunit-selenium[1.3.2].
- phpunit/phpunit-selenium 1.3.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.

Composer failed, retrying in 5 seconds, for a few times. Hit Ctrl-C to cancel.
setup.sh: 486: setup.sh: N++: not found
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for phpunit/phpunit-selenium 1.3.2 -> satisfiable by phpunit/phpunit-selenium[1.3.2].
- phpunit/phpunit-selenium 1.3.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.

Composer failed, retrying in 5 seconds, for a few times. Hit Ctrl-C to cancel.
setup.sh: 486: setup.sh: N++: not found
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for phpunit/phpunit-selenium 1.3.2 -> satisfiable by phpunit/phpunit-selenium[1.3.2].
- phpunit/phpunit-selenium 1.3.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.

Composer failed, retrying in 5 seconds, for a few times. Hit Ctrl-C to cancel.
setup.sh: 486: setup.sh: N++: not found
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for phpunit/phpunit-selenium 1.3.2 -> satisfiable by phpunit/phpunit-selenium[1.3.2].
- phpunit/phpunit-selenium 1.3.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.

Composer failed, retrying in 5 seconds, for a few times. Hit Ctrl-C to cancel.
setup.sh: 486: setup.sh: N++: not found
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
^
tracker item
Setup.sh verbose need to be clarified and updated (php7.4)
Tiki22 require PHP 7.4.

After installing Tiki22 (git master) I ran setup.sh while running PHP7.2 and it thrown the following.

{CODE()}
Your choice [c]? c
Wrong PHP version: php54 < required PHP version. A version >= php72 is necessary.
Searching for typically named alternative PHP version ...
which: no php73 in (/usr/clearos/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin)
{CODE}

Not having 7.4 installed yet I tried 7.3 and got the following.

{CODE()}
Your choice [c]? c
Wrong PHP version: php54 < required PHP version. A version >= php72 is necessary.
Searching for typically named alternative PHP version ...
which: no php73 in (/usr/clearos/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin)
{CODE}

And then a lot of deprecation errors.

Tiki 22 work with 7.4 and it should verbose correctly and warn the users.
tracker item
Shell.php is being flagged as harmful by shared hosting provider
My hosting company https://www.a2hosting.com/ scanning my shared hosting websites using https://patchman.co for security scanning. It found and removed shell.php in multiple directories for my tiki 15.4 installation.

Looking at the file, it is not used and is only there to tell people to use console.php. It would be nice if these files were removed from the distribution as this may cause problems for tiki installations for other people using shared hosting.
tracker item
Shopping Cart Module disappears just after clicking on "add to cart" on a product (but page Refresh displays updated cart normally)
Shopping Cart Module disappears just after clicking on "add to cart" on a product (but page Refresh displays updated cart normally)

Reproduced easily after applying the "Shopping Cart" profile.

Come here:
http://xavi-9794-5978.show.tikiwiki.org/tiki-index.php?page=cart+products
u: admin
p: 12345

And click at "Add to cart" from any of the products. Cart dissapears.
Refresh the browser, and the new item is your cart, which displays as expected, until you click on another "Add to cart".
tracker item
site_title_location should default to "After current page's descriptor"
I see from a fresh Tiki 25.1 install that the "site_title_location" global preference is set to "Before current page's descriptor" by default. This makes no sense from a usability and SEO standpoint. 99% of the time you can't read the page title in your browser tabs because it's obscured by the site title, which makes your 30 open tabs all look identical.

The default should be "After current page's descriptor".
tracker item
Siteheader ad banner "activate"/"publish" checkboxes emptied by Look & Feel setting change
The first problem (maybe local) is that the ad checkboxes on tiki-admin.php?page=ads tend to not stay checked. Please confirm if this is true for other users.

The bigger problem (on two servers): when I switch the logo from left to right on the Look & Feel admin page, the ad checkboxes on tiki-admin.php?page=ads get emptied. Maybe any update on Look & Feel resets the ad activate and publish checkboxes to empty; I didn't check.

Also, on the ads and banners admin page, only the bottom "Apply" button works, for me.

Site header banner ad configuration worked before it was split off as a separate page, afaik. Maybe a bug was introduced by the move to its own page.
tracker item
small errors in spelling elfinder.es.js
errors ( showing in bold):

'errUploadCommon' : 'Error en el __envñio__.',
'errUploadMime' : 'Tipo de archivo no __permitidp__.',
'errSave' : 'No se puede __guadar__ "$1".',
'cmdmkdir' : 'Nueva __arpeta__',
'ntfrm' : '__Eliminndo__ archivos',
'facebook' : 'Únete a __nostros__ en Facebook',
'rmFromPlaces' : 'Eliminar en sus __ubicaciónes__',


arrange with:
'errUploadCommon' : 'Error en el envio.',
'errUploadMime' : 'Tipo de archivo no permitido.',
'errSave' : 'No se puede guardar "$1".',
'cmdmkdir' : 'Nueva carpeta',
'ntfrm' : 'Eliminando archivos',
'facebook' : 'Únete a nosotros en Facebook',
'rmFromPlaces' : 'Eliminar en sus ubicaciones',

my first bug report and my English is not good, hope the report is understandable. Thank you for your attention
tracker item
Smarter detecting of domains and auto-links
www.mozilla.com is automatically turned into a link. (great)

but support.mozilla.com is not.

So I must do:

{img src=images/code.png}%%% {CODE()}
[http://support.mozilla.com|support.mozilla.com]
{CODE}

If automatic detection of support.mozilla.com is too risky, maybe the following:
{img src=images/code.png}%%% {CODE()}
[support.mozilla.com]
{CODE}

should be smart enough to know that I meant:
http://support.mozilla.com

and not:
http://dev.tikiwiki.org/support.mozilla.com
tracker item
15.x: Improvements needed for mobile view of many *.t.o sites (dev, themes, doc, ...)
15.x: Improvements needed for mobile view of many *.t.o sites (dev, themes, doc, ...)

{img src="display1077" thumb="box" width="800"}

(1) No way to login at dev.t.o or doc.t.o, for instance, when browsing the page in the smartphone
(tested with Chrome on Android, but it seems to be reproduced with a browser on a desktop and making it narrow enough as a smartphone)

(2) There is no logo nor site name displayed in the top header of most *.t.o sites. OTher (non-tiki) bootstrap websites do display their logo and name when shown through smartphone. IS tehre anything that can be done in the Tiki side to fix this?

(3) Fullscreen button is shown on top of the button at the top layer to display the logo and site name. Therefore, clicking there, fires the fullscreen in some cases. And when in full screen, in a smartphone, I couldn't come back to normal display mode clicking at that button in the smartphone for some reason, I had to fix the param in the url to get back to normal.

(4) The submenu is not shown in dev.t.o and doc.t.o but it is shown in themes.t.o Why? How shall we edit the submenus so that they are shown in the smartphone display?

Thanks
tracker item
Show PHP error messages