WordPress.org

Forums

[resolved] can't save themes files or upload photos to blog post (2 posts)

  1. scagozo
    Member
    Posted 7 years ago #

    This is the warning I got when I edited the stylesheet of my theme:

    Warning: fopen(D:\vhosts\mysite.com\httpdocs\news/wp-content/themes/new/style.css): failed to open stream: Permission denied in D:\vhosts\mysite.com\httpdocs\news\wp-admin\theme-editor.php on line 44

    Warning: fwrite(): supplied argument is not a valid stream resource in D:\vhosts\mysite.com\httpdocs\news\wp-admin\theme-editor.php on line 45

    Warning: fclose(): supplied argument is not a valid stream resource in D:\vhosts\mysite.com\httpdocs\news\wp-admin\theme-editor.php on line 46

    Warning: Cannot modify header information - headers already sent by (output started at D:\vhosts\mysite.com\httpdocs\news\wp-admin\theme-editor.php:44) in D:\vhosts\mysite.com\httpdocs\news\wp-admin\theme-editor.php on line 55

    I've been searchin all morning for a solution - and actually found several posts to this forum with the same problem - most several months old, but none of them solved. I just installed a WordPress blog for someone else on a Windows Server and get errors similar to the above when I want to update theme files - but also when I attempt to upload photos to the blog. (I can save posts and add photos by giving their URLs

    I'm suspecting the problem lies in the mixture of forward (/) and backward (\) slashes in the file path. The subsequent errors are probably all related to that. But I can't find where to fix this. I have some knowledge but I'm no expert at all! My own WP blog is installed in a unix environment and I never had this problem.

    Can someone PLEASE help me with this?

    Thanks in advance!

  2. scagozo
    Member
    Posted 7 years ago #

    Well... I changed permissions of the wp directories/files and it seems to have done the trick. But I was very wary that I might f*ck up something in the process.

    Figures that whenever one really needs help, it's nowhere to be found... :-(

Topic Closed

This topic has been closed to new replies.

About this Topic