• I’ve had a problem editing my theme directly from v2.7 back end. Error message is

    Warning: fopen(C:\Sites\Single39\ammarcarl\webroot\news/wp-content/themes/black-lucas/style.css) [function.fopen]: failed to open stream: Permission denied in C:\Sites\Single39\ammarcarl\webroot\news\wp-admin\theme-editor.php on line 55

    Warning: Cannot modify header information – headers already sent by (output started at C:\Sites\Single39\ammarcarl\webroot\news\wp-admin\theme-editor.php:55) in C:\Sites\Single39\ammarcarl\webroot\news\wp-admin\theme-editor.php on line 70

    here’s line 55:

    $f = fopen($real_file, ‘w+’);

    esmi kindly pointed me to the correct WordPress FAQ troubleshooting section (here). However, I’ve tried the common solutions to the headers already sent message (deleting spaces, re-installing fresh file, even re-installing whole theme) and the problem persists.

    I’m able to edit the files with a text editor, but error persists if attempting directly from wordpress. No clue on what the problem could be.

Viewing 3 replies - 1 through 3 (of 3 total)
  • youre problem is this,

    Warning: fopen(C:\Sites\Single39\ …

    When/if you fix that, the other error will go away.

    Thread Starter pravda23

    (@pravda23)

    WordPress is obviously trying to read from a local disk, based somewhere else. It should read the style.css file from the machine I’m working on.

    How do I change this directory ?

    C:\Sites\Single39\ammarcarl\webroot\news/wp-content/themes/black-lucas/style.css

    Hi,
    I have been reading your posts and have the samn damn issue. I’ve checked google, wordpress etc and have had no luck.
    Did you have a result.
    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘‘headers already sent’ (already checked FAQ)’ is closed to new replies.