00611: Wrong profile link

Summary: Wrong profile link
Created: 2005-11-30 20:39
Status: Closed - fixed for 2.1.9
Category: Bug
From: weijiang
Assigned:
Priority:
Version: 2.1beta1~beta8
OS: Winxp+sp2/Apache 2.0.55/PHP 5.0.5

Description: Markup [[~name | Full Name]] give wrong link. It should be /Profiles/name but I got /Main/name. Example of Wei Jiang (Cannot be reproduced in this site)

However in preview mode it gives correct link. Markup [[~name]] has no problem.

This issue had been found in 2.0 but was fixed in 2.0.13 but re-emerged since 2.1beta version.

I found in stdconfig.php if the two lines for upload.php were moved up before wikistyles.php lines. The result is correct. I don't know why.


That last statement is very interesting. Are you loading any cookbook recipes that might be causing the problem?

Can you provide the url of a site where the problem exists? It's hard to troubleshoot without being able to reproduce it.

--Pm


Wow, found it! Fixed for 2.1.9.

Pm

For Pm's detailed explanation, read his post on the list.

Array
(
    [post_max_size] => 64M
    [$_POST keys] => 
    [$_REQUEST keys] => n
    [$_SERVER] => Array
        (
            [CONTEXT_DOCUMENT_ROOT] => /home/pmwiki/public_html
            [CONTEXT_PREFIX] => 
            [DOCUMENT_ROOT] => /home/pmwiki/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTPS] => on
            [HTTP_ACCEPT] => */*
            [HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
            [HTTP_COOKIE] => PHPSESSID=8j7b4o45puqmktqdkgg697srd4; imstime=1777639010
            [HTTP_HOST] => www.pmwiki.org
            [HTTP_REFERER] => http://www.pmwiki.org/wiki/PITS/00611
            [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
            [HTTP_X_HTTPS] => 1
            [PATH] => /bin:/usr/bin
            [PHP_INI_SCAN_DIR] => /opt/cpanel/ea-php70/root/etc:/opt/cpanel/ea-php70/root/etc/php.d:.
            [QUERY_STRING] => n=PITS%2f00611
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=PITS%2f00611
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00611
            [REDIRECT_SCRIPT_URL] => /wiki/PITS/00611
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afSedaNcDsfm4lxxxeWWmAAAAFI
            [REDIRECT_URL] => /wiki/PITS/00611
            [REMOTE_ADDR] => 216.73.216.25
            [REMOTE_PORT] => 59291
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/PITS/00611
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00611
            [SCRIPT_URL] => /wiki/PITS/00611
            [SERVER_ADDR] => 23.254.203.248
            [SERVER_ADMIN] => webmaster@pmwiki.org
            [SERVER_NAME] => www.pmwiki.org
            [SERVER_PORT] => 443
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [SSL_TLS_SNI] => www.pmwiki.org
            [TZ] => America/Los_Angeles
            [UNIQUE_ID] => afSedaNcDsfm4lxxxeWWmAAAAFI
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777639029.7651
            [REQUEST_TIME] => 1777639029
            [argv] => Array
                (
                    [0] => n=PITS%2f00611
                )

            [argc] => 1
        )

)