[TYPO3] dr_wiki - instability and redirect to login

Melgior melgior at hotmail.com
Wed Nov 28 14:23:18 CET 2007

Hi Lewis,

I also don't know about your first problem... I didn't get any blank
screens, so I don't know how you should solve that. Is your server
configured to show PHP errors?

Problems two and three are related to the RealURL plugin (or whatever plugin
you use for SEO URL's). According to the dr_wiki wiki [1] you'll have to
edit some lines in the pi1/class.tx_drwiki_pi1.php file in the dr_wiki
plugin folder. Around line 1059, change this line:

if ($this->activatePageRedirect AND
((!$GLOBALS["TSFE"]->fe_user->user["uid"] > 0))) {
  $GLOBALS["TSFE"]->jumpurl = $this->pi_getPageLink($this->pageRedirect);

to this:

if ($this->activatePageRedirect AND
((!$GLOBALS["TSFE"]->fe_user->user["uid"] > 0))) {
  $baseurl = $GLOBALS['TSFE']->tmpl->setup['page.']['config.']['baseURL'] ?
$baseurl : $GLOBALS['TSFE']->tmpl->setup['config.']['baseURL'];
  $GLOBALS["TSFE"]->jumpurl =
'?redirect_url='.urlencode($this->pi_linkTP_keepPIvars_url(array("cmd" =>
"edit", "submit" => ""), 1, 0));

This corrects the redirect problem and also tells the login plugin to
redirect the user back to the wiki-edit page after a login. As always,
please backup the file :).

As for the table of contents links, you'll need to add
 config.prefixLocalAnchors = output
to your template setup to get them working.

Kind regards,


[1] http://www.myasterisk.de/wiki/bugreport/#RealURL_.26_Page_Redirect

Lewis Jones wrote:
> Hi Folks,
> I've just started using the dr_wiki extension and have run into a few  
> problems.
> 1. Sometimes the wiki just goes blank and I lose everything I've been  
> doing, even if it's saved.  Is that related to whether I'm logged  
> in?  Sometimes I save it and on refreshing after the save, it is  
> blank.  Anyone else experience the same problem?
> 2. The redirection to a login page is not working for me because I  
> set the redirection page to 'login' from the element browser, but  
> then when it sends me there, it sends me to http://www.reap.asn.au/ 
> campus/login (where 'campus' is the wiki page) instead of just http:// 
> www.reap.asn.au/login.  How do I avoid that?  There doesn't seem to  
> be any way around it?
> 3.  The linked headers in the Table of Contents send me to the site  
> home page rather than the correct spot in the article.  Hmmm...
> Any help would be greatly appreciated.
> Thanks,
> Lewis
> ------------
> Evangelising Australian Academia
> Australian Fellowship of Evangelical Students
> http://www.reap.asn.au
> http://www.afes.org.au
> 0418 605 687
> 02 9341 2541
> lewis.jones at reap.asn.au
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

View this message in context: http://www.nabble.com/dr_wiki---instability-and-redirect-to-login-tf4848111.html#a13991031
Sent from the TYPO3 English mailing list archive at Nabble.com.

More information about the TYPO3-english mailing list