01115: Error messages at top of wiki page to do with headers

Summary: Error messages at top of wiki page to do with headers
Created: 2009-07-12 19:04
Status: Closed - resolved
Category: Cookbook
From: promsan
Assigned:
Priority: 2
Version: 2.2.0-beta68
OS: Win XP

Description: After every skin I install, on each of the browsers I use, I get the following error messages above the actual wiki:

Warning: fopen(pub/cache/Site.StyleSheet.css) [function.fopen]: failed to open stream: Permission denied in /f1/content/.../public/pmwiki/cookbook/stylepage.php on line 105

Warning: fclose(): supplied argument is not a valid stream resource in /f1/content/.../public/pmwiki/cookbook/stylepage.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /f1/content/.../public/pmwiki/cookbook/stylepage.php:105) in /f1/content/.../public/pmwiki/index.php on line 1079

Please could someone explain what this is all about?

The wiki loads and works as normal (as far as I can tell), but this stuff just spoils it.

Hi. This looks like a problem with a recipe: Cookbook:CSSInWikiPages which supplies the file stylepage.php. You may want to ask the recipe author there. --Petko July 12, 2009, at 07:22 PM

Hi Petko... it was resolved by hashing-out the lines to do with stylesheets and CSS iun the config file.

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=b70pbj9a6avgioq0qtq1m6hlt0; imstime=1777550396
            [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%2f01115
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=PITS%2f01115
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/01115
            [REDIRECT_SCRIPT_URL] => /wiki/PITS/01115
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afNEUWp2_NWDT7vuXhSYIQAAABY
            [REDIRECT_URL] => /wiki/PITS/01115
            [REMOTE_ADDR] => 216.73.216.25
            [REMOTE_PORT] => 7589
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/PITS/01115
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/01115
            [SCRIPT_URL] => /wiki/PITS/01115
            [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] => afNEUWp2_NWDT7vuXhSYIQAAABY
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777550417.2841
            [REQUEST_TIME] => 1777550417
            [argv] => Array
                (
                    [0] => n=PITS%2f01115
                )

            [argc] => 1
        )

)