Page MenuHomePhabricator

mRedirect problem
Closed, InvalidPublic

Description

Author: Bernhard.Gschaider

Description:
When I call a page from the Wiki with http://www/wiki/index.php it does not work
(Webbrowser gives me a timeout). If I call it with
http://www/wiki/index.php/Main_Page it works.
After that browsing the Wiki works. If I edit a page and press the 'save' button
I get a timeout (but the content of the page is saved).

Manually calling the wiki from the command line (php index.php) gives no output
at all.

If I insert the line

print_r($wgOut);

just before $wgOut->output(); I get the ouztput given below.

If I leave the command in the code and browse the Wiki it looks like all the
pages that work have in common, that the mRedirect-field is empty.

The output:

outputpage Object
(

[mHeaders] => Array
    (
    )

[mCookies] => Array
    (
    )

[mMetatags] => Array
    (
    )

[mKeywords] => Array
    (
    )

[mLinktags] => Array
    (
    )

[mPagetitle] => 
[mBodytext] => 
[mDebugtext] => 
[mHTMLtitle] => 
[mRobotpolicy] => 
[mIsarticle] => 1
[mPrintable] => 
[mSubtitle] => 
[mRedirect] => http://www/non_cdl/OpenFOAMWiki/index.php/Main_Page
[mLastModified] => 
[mCategoryLinks] => Array
    (
    )

[mScripts] => 
[mLinkColours] => 
[mSuppressQuickbar] => 
[mOnloadHandler] => 
[mDoNothing] => 
[mContainsOldMagic] => 0
[mContainsNewMagic] => 0
[mIsArticleRelated] => 1
[mParserOptions] => parseroptions Object
    (
        [mUseTeX] => 1
        [mUseDynamicDates] => 
        [mInterwikiMagic] => 1
        [mAllowExternalImages] => 1
        [mSkin] => skinmonobook Object
            (
                [lastdate] => 
                [lastline] => 
                [linktrail] => /^([a-z]+)(.*)$/sD
                [rc_cache] => 
                [rcCacheIndex] => 
                [rcMoveIndex] => 
                [postParseLinkColour] => 
                [skinname] => 
                [stylename] => 
                [template] => 
                [mOptions] => Array
                    (
                        [highlightbroken] => 1
                        [hover] => 1
                    )

            )

        [mDateFormat] => 0
        [mEditSection] => 1
        [mEditSectionOnRightClick] => 0
        [mNumberHeadings] => 
        [mShowToc] => 1
    )

[mShowFeedLinks] => 
[mEnableClientCache] => 1
[mLanguageLinks] => Array
    (
    )

[mSquidMaxage] => 1200
[mRedirectCode] => 301

)


Version: 1.4.x
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz2240

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:29 PM
bzimport set Reference to bz2240.
bzimport added a subscriber: Unknown Object (MLST).

Bernhard.Gschaider wrote:

When the index.php hangs these messages appear in the Syslog:

May 25 09:24:06 server httpd2: PHP Warning: array_map(): The first argument,
'utf8_encode', should be either NULL or a valid callback in
/var/www/non_cdl/OpenFOAMWiki/includes/GlobalFunctions.php on line 104
May 25 09:24:06 server httpd2: PHP Warning: Invalid argument supplied for
foreach() in /var/www/non_cdl/OpenFOAMWiki/includes/GlobalFunctions.php on line 119
May 25 09:24:06 server httpd2: PHP Warning: implode(): Bad arguments. in
/var/www/non_cdl/OpenFOAMWiki/includes/GlobalFunctions.php on line 122

Bernhard.Gschaider wrote:

It was pointed out to me, that the ServerName in the apache configuration was
set incorrectly. That fixed it.