00733: sectionedit.php gives PHP warnings

Summary: sectionedit.php gives PHP warnings
Created: 2006-05-01 03:01
Status: Open
Category: Cookbook
From: thomasb
Assigned:
Priority: 54
Version:
OS: PHP 5.1.2, Apache 2.0.55

Description: I have installed sectionedit 2.0.3. I always get those warnings in PHP log file:

[01-Mai-2006 09:57:22] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in /home/allmend/www/wiki/cookbook/sectionedit.php on line 264

[01-Mai-2006 09:57:22] PHP Warning: array_unique() [<a href='function.array-unique'>function.array-unique</a>]: The argument should be an array in /home/allmend/www/wiki/cookbook/sectionedit.php on line 266

[01-Mai-2006 09:57:22] PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /home/allmend/www/wiki/cookbook/sectionedit.php on line 287

[01-Mai-2006 09:57:22] PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /home/allmend/www/wiki/cookbook/sectionedit.php on line 287

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_HOST] => www.pmwiki.org
            [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%2f00733
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=PITS%2f00733
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00733
            [REDIRECT_SCRIPT_URL] => /wiki/PITS/00733
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afK56jivajweXfTo5pQOlQAAAAk
            [REDIRECT_URL] => /wiki/PITS/00733
            [REMOTE_ADDR] => 216.73.216.31
            [REMOTE_PORT] => 15095
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/PITS/00733
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00733
            [SCRIPT_URL] => /wiki/PITS/00733
            [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] => afK56jivajweXfTo5pQOlQAAAAk
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777514986.0603
            [REQUEST_TIME] => 1777514986
            [argv] => Array
                (
                    [0] => n=PITS%2f00733
                )

            [argc] => 1
        )

)