Loading...
 
Skip to main content

Category: 4.x

4.x
Show subcategories objects

Name Type
Never show two login boxes
If I have a login box module, and I visit tiki-login_scr.php, I get two places to login

Same thing with error pages which offer to login.
tracker item
New option (like MediaWiki) automatic insert of maketoc on pages with headings
This should be discussed. Not decided if we want it.

This would be useful for the import from MediaWiki people because this is a setting in MediaWiki. Now, after import, users must go in each page and add maketoc.


This would be a site-wide setting (overrideable per workspace). Would need to have a way to turn off for a page (ex.: with a wiki syntax)


tracker item
New Tracker Field Types to relate trackers with "anything"
Real examples:

I created a tracker "Books" with fields like "Cover" (image) and "1st Chapter" (attachment). It would be great if by inserting a new item in Books, the cover and the 1st chapter would automatically be created in File Gallery.

I have a blog that show events as posts. It could be integrated with Calendar by a tracker, making it possible to insert a blog post and a calendar event at the same time and relate them.



tracker item
Newsletter plain text is lost
When creating a newsletter item, both HTML and plain text versions are requested. The plain text information is empty if the newsletter is edited.
tracker item
No controls in first file gallery colorbox popup
{syntax type="tiki" editor="plain"}
In a file gallery (at a url like tiki-list_file_gallery.php?view=browse&galleryId=2), when I click on a thumbnail to see the image in a colorbox popup, there are no navigation controls in the box for the first image clicked. If I close that image and click a second thumbnail, the controls are there and I can navigate to next, previous, etc. It doesn't matter which image is tried first on a fresh page load; the first one clicked always is missing the controls. I'm seeing this in r22284 (Oct 13) but have noticed it for at least several days, in Firefox and Opera.
tracker item
No save after preview of reply by non-admins
{syntax type="tiki" editor="plain"}
#Create a new thread and type in a few words
#press PREVIEW to verify and press SAVE after that.
#verify that posting went well
#now reply to this initial posting by typing a few words and press PREVIEW to see that preview works fine
#now press SAVE and get the error message __
Notice: this variable may not be empty: $_POST["thread_sort_mode"]__
#wiki-button "back" leads to another __error message saying "no thread"__ or something like that (I can only see the german text "Kein Thread").
#to see and capture the text of your reply to your clipboard you need to press the back button of your browser
#now reply again to the initial posting, paste in the content of your clipboard and immediatelly press SAVE (without PREVIEW)
#see that saving your reply is fine


When logged in as a regular user this procedure applies and shows errors. When logged in as admin save after preview is fine.
tracker item
non-Admin users cannot assign Category or see the Category tab when editing wiki pages
My users, sub-Admins, Editors, and registered users cannot edit any wiki page(s) because they cannot see the Category tab when editing any wiki page. Any edits are not saved. The wiki says a Category is mandatory, even if the page being edited is already Categorized.
tracker item
Missing Tracker Item #2911
This tracker item could not be found
tracker item
not able to authenticate user with e-Directory LDAP
{syntax type="tiki" editor="plain"}
Scenario:
TikiWiki version 4.1
Auth against LDAP
LDAP being used: Novell eDirectory

Problem:
user can not log in unless the complete DN of the user is specified.
In my scenario the users are spread across the complete tree, so no chance to provide a specific "User DN", additionally a "Base DN" needs to be specified in order restrict the search to the city where the service runs. Finally only the default option provided at the "LDAP Bind Type" seems to be correct for eDirectory.

How this has been solved:
1.- The code modified has been: lib/auth/ldap.php
2.- If the LDAP connect operation fails, then a try to search for the user is triggered
3.- if the user is found then the LDAP, the his/her DN is extracted and a new LDAP connect is performed.

Here the diff of the modified code:
{CODE(colors="php")}diff -uN ldap.php ldap.php.new
--- ldap.php 2009-10-30 16:53:31.000000000 +0100
+++ ldap.php.new 2010-01-13 22:28:18.000000000 +0100
@@ -200,6 +200,50 @@

$this->ldaplink= Net_LDAP2::connect($options);
if(Net_LDAP2::isError($this->ldaplink)) {
+ /* This modification is placed in order to add a kind of e-Directory compatibility.
+ For e-Directory and according to what I found about documentation - please consider I'm not an expert on this matter -
+ e-Directory will only get a positive result for the user search (with is password) only if the dn is pointing to the place where
+ the user object has been created, so we need first to find this data.
+ In the next lines the user data will be searched, and once found (if found) the info related to binddn will be updated
+ */
+ // filters to locate the user
+ $filter1=Net_LDAP2_Filter::create('objectClass','equals',$this->options['useroc']);
+ $filter2=Net_LDAP2_Filter::create($this->options['userattr'],'equals',$this->options['username']);
+ $filter=Net_LDAP2_Filter::combine('and',array($filter1,$filter2));
+ if(Net_LDAP2::isError($filter)) {
+ $this->add_log('ldap','LDAP Filter creation error: '.$filter->getMessage().' at line '.__LINE__.' in '.__FILE__);
+ return false;
+ }
+ $searchoptions=array('scope' => $this->options['scope']);
+ // unset the binddn, if set then the connect will fail
+ unset ($options['binddn']);
+ $this->ldaplink= Net_LDAP2::connect($options);
+ if(Net_LDAP2::isError($this->ldaplink)) {
+ $this->add_log('ldap','Error: '.$this->ldaplink->getMessage().' at line '.__LINE__.' in '.__FILE__);
+ return($this->ldaplink->getCode());
+ }
+ $searchresult = $this->ldaplink->search($this->options['basedn'],$filter,$searchoptions);
+ if($searchresult->count()!=1) {
+ // More then 1 user ... problem
+ $this->add_log('ldap','Error: ldap search found this amount of useres:'.$searchresult->count().' which is not 1. at line '.__LINE__.' in '.__FILE__);
+ return false;
+ }
+ $entry=$searchresult->shiftEntry();
+ if (Net_LDAP2::isError($entry)) {
+ $this->add_log('ldap','Error fetching user entries: '.$entry->getMessage().' at line '.__LINE__.' in '.__FILE__);
+ return($this->ldaplink->getCode());
+ }
+ // Set the binddn again
+ $options['binddn']=$entry->dn();
+ // Try again now with the correct binddn
+ $this->ldaplink= Net_LDAP2::connect($options);
+ if(Net_LDAP2::isError($this->ldaplink)) {
+ $this->add_log('ldap','Error: '.$this->ldaplink->getMessage().' at line '.__LINE__.' in '.__FILE__);
+ // return Net_LDAP2 Error codes. No need to redefine this.
+ return($this->ldaplink->getCode());
+ }
+ // The rest of the code gets encapsulated in the else
+ }else {
$this->add_log('ldap','Error: '.$this->ldaplink->getMessage().' at line '.__LINE__.' in '.__FILE__);
// return Net_LDAP2 Error codes. No need to redefine this.
return($this->ldaplink->getCode());
@@ -371,5 +415,5 @@
if($this->options['debug'])
$this->logslib->add_log($facility,$message);
}
-
+
}
{CODE}

References:
[http://tikiwiki.org/tiki-view_forum_thread.php?topics_offset=19&topics_sort_mode=lastPost_desc&forumId=17&comments_parentId=32433|Info in TikiForum]
[http://www.codeproject.com/KB/system/eDirectoryAuthentication.aspx|Info about eDirectory]

Hope this could be a kind of contribution
TalindoChe
tracker item
number of tracker items shown by default: customizable in a tracker by tracker basis
{syntax type="tiki" editor="plain"}
number of tracker items shown by default: customizable in a tracker by tracker basis. To avoid (at least) the problems of huge memory consumption in big trackers (and thus, setting the default number of items shown to a small number), while keeping other trackers with more items shown by default
tracker item
on first load Colorbox doesn't show related objects prev/next links
only when first image with -+rel="shadowbox~np~[g]~/np~"+- is opened in Colorbox and closed again, and then the second one, just after that the next/prev arrows appear and it counts as image 2/2... if there's third image it continues in the simmilar manner...
tracker item
on multi-page Wiki Pages {maketoc} does not link to the right page
{syntax type="tiki" editor="plain"}
Hi, I know ''maketoc'' is said not to like other ''maketoc''s on a wiki page but it obviosly does not work correct (on my REV 24736) if inserted on another page than the first one. If inserted on e.g. the third page all links to headlines of the firstpage carry "pagenum=3" in the link instead of no pagenum or "pagenum=1".

{CODE(caption="Example")}
!# first page
!! test
test test test
!! test
test test test
...page...
!# second page
!! test
test test test
!! test
test test test
...page...
{maketoc}
!# third page
!! test
test test test
!! test
test test test
...page...
!# fourth page
!! test
test test test
!! test
test test test
{CODE}

My initial intention was to put a ''maketoc'' at every end of a subpage to be able to navigate back. BTW: on my REV 24736 multiple ''maketoc''s do not cause any additional problem.
tracker item
OpenID registration does not work with CAPTCHA
When using OpenID + Registration CAPTCHA...
With Tiki 2.2...

I attempted to register using my OpenID:

#On the Login page, I entered my OpenID.
#My OpenID was validated and Tiki shows the page where I can either associate my OpenID with an existing Tiki account, or register as a new user.
#I completed the registration form (including the correct CAPTCHA), but Tiki keeps saying that the Anti-bot code was incorrect.

Additionally, the registration form presented with the OpenID __does not__:
*Display the password minimum requirements (such as number of characters).
*Allow for the selection of groups.


__Duplicate of {wish id=1505}__
tracker item
Other browsers than IE
{syntax type="tiki" editor="plain"}
Attempting to use Opera or FireFox to call a tikiwiki page generates some % characters in the path and gives an error.

Using Internet Explorer this does not happen.

We need to be able to allow other BROWSERs to work with Tikiwiki pages.

This problem is not present in Version 1.9.11

As a result I cannot upgrade to version 2 or higher yet
tracker item
Parent Gallery doesn't show anything
{syntax type="tiki" editor="plain"}
The dropdown menu for "Parent Gallery" shows blank entries. I assume these are my galleries, but I don't know which one is which.

{IMG(src="http://dev.tikiwiki.org/tiki-browse_image.php?imageId=103")}{IMG}
tracker item
PDOException: SQLSTATE[HY093] - when reloading a session (after database transfer SQL format)
{syntax type="tiki" editor="plain"}
Hello,

This happens in the same context as my others tracks (3029 - 3057).

This is a problem that is completely identified.
In my opinion it is important.

!!Context
!!!system
The database has been saved in SQL and loaded with upgraded versions of mysql and php 5.3.2.
There is in my opinion no relation with the system context.

!!!Program execution
During start the current session prefs contained into cache participate to generation of the query launch to reinit the context of previous current session.

!!ERROR
__A fatal error occurs in tikisession-pdo.php on line 44 function write statement <$sth->execute();>

!!!Message
PDOException: SQLSTATE[HY093]: Invalid parameter number: no parameters were bound in D:\Trebly\Teawik-ld8-422a\lib\tikisession-pdo.php on line 44__

!!!Analyze
The var_dump($qry) in "prepare" function (see my interface in Class TikiDb_Pdo) gives (extract)

''object(PDOStatement)[42]
public 'queryString' => string 'update sessions set data='need_reload_prefs|b:0;serialized_prefs|a:9:{i:0;s:27:"feature....''

!! Problem identified
The problem comes from the fact that into the session->data you can find the HOMEPAGE article "title" which is, in this case (French):

''__s:46:"Page d'accueil spécifique des administrateurs";__''

so the " ' " not escaped generates the crash of the request.


!!Solution ?
!!! Proposal, basis :
When the titles of articles (or any text which can occur into prefs or any query) are stored the " ' " must be escaped into the database.

!!! Proposal for compatibility :
#identify any text which can be used into queries
#be sure that these text have " ' " escaped everywhere, if not
- upgrade database
- upgrade display for these text with escaped " ' "
- upgrade when text is got from forms the data transfer to database with the escaped " ' "
- set a test on syntax queries to catch this error. A simple test of " ' " into query which display error message (because it is impossible to execute a validate successful query).

!!!Note :
Note : Temporarily I have implemented for me a syntax control and a validation test for " ' " into the query which escapes the incongruous " ' " with a warning message. This because with this title the content will not be found... but the query don't answers in a right manner.
To execute completely I have suppressed in my test database the " ' " into the titles. This can't be used in an operational config.

This occurs because I use for test an homepage which depend of the main group of users of the user.
So I have severals homepages managed as articles with a link to categories.

On his homepage a user can in this way find :
# his main homepage
# links to secondary homepages depending of his roles into the site
tracker item
Periodic reminder to upate user profile
Use case:

We want users to update their profiles every once in a while.

So the system should be reminding users to click on tiki-view_tracker_item.php?view=+user and update their user profile.

Eventually, an email reminder could be cool as well.

tracker item
Permission denied to admin but not to other users on upgrade from 3.3 to 4.1
I upgraded one of my subdomains from tikiwiki 3.3 to tikiwiki 4.1. After the upgrade admin can login but with an error message "Permission denied. You cannot view this page."

For other users it seems functioning alright. Only admin can do nothing.
tracker item
pe rspectives module doesn't show up anymore even if defined in the profile as in TikiFestBarcelona
{syntax type="tiki" editor="plain"}
after installation of the learning_center profile, on top of a bare-bones instalation, the perspective module is not shown nowadays, but it did while in ((tw:TikiFestBarcelona))

and looking at the edit module interface, it says: "perspective (param): Only display the module if in one of the listed perspectives. Semi-colon separated."
and that param is empty by default

I do that logged as admin, and just in case, included the registered group into the admin group.

And deleted tiki caches several times just in case
No change.

I can't continue with that profile
tracker item
perspectives module doesn't show up anymore even if defined in the profile as in TikiFestBarcelona
after installation of the learning_center profile, on top of a bare-bones instalation, the perspective module is not shown nowadays, but it did while in ((tw:TikiFestBarcelona))

and looking at the edit module interface, it says: "perspective (param): Only display the module if in one of the listed perspectives. Semi-colon separated."
and that param is empty by default

I do that logged as admin, and just in case, included the registered group into the admin group.

And deleted tiki caches several times just in case
No change.

I can't continue with that profile
tracker item
pics directory gets blocked and causes broken links and images
My workplace as well as others I suppose blocks any url with "pics" in it. I have tried to change it myself to ïmg2" and found a few references in .php, .css and .js files but couldn't find many of them even searching the MySQL database.

Please consider changing the name of the pics directory to something else that wouldn't likely get blocked by corporate proxies.

Thanks!
tracker item
Plugin builder (plugin alias): build plugins with backlink functionality
((Plugin alias)) which I am considering renaming __Plugin builder__ permits some amazing things.

((Backlinks)) can be cool for dynamic & efficient information organization.


How can we have the two together?

Perhaps an alias of the REDIRECT plugin which includes semantic wiki link "alias" between the two pages...

More on this later...
tracker item
plugin editor: the value by default should have emphasis
The new plugin editor in v3 is cool

It makes it easier to fill in the blanks.

It would be nice to know which choices are the defaults, so I know that I don't need to fill in if it's what I want.

Ex.: Iframe plugin has Scrolling options of yes|no|auto

But which is the default?
tracker item
Plugin WantedPages reports alias
You can see here: ((WantedPages))

Some wanted pages have links to the alias.
tracker item
Add IP to syslog and/or action log when anons (at least) add content (for spam protection)
Add ip to syslog and/or action log, so that when anons (at least) are allowed to add content and it's spam (robots seem to be able to post with our current antibot captcha), there is way to identify the ip of the spammer.

So far, antibot captcha is added (in trunk, at least) to:
* wiki edit
* wiki page comments
* forum posts
* tracker item comments
* freetags
* calendar items
* newsletter subscription

The action of adding content on those features should be logged in syslog and/or action log and IP recorded.
tracker item
Show PHP error messages