I get a warning on activation
-
I get the following warning at the top of my admin screen immediately after activating the plugin:
Warning: file_put_contents(/home/artinfo/public_html/wp-content/plugins/my-custom-css/my_style.css) [function.file-put-contents]: failed to open stream: Permission denied in /home/artinfo/public_html/wp-content/plugins/my-custom-css/my-custom-css.php on line 58
I also get this message, outlined in a yellow box above the list of plugins:
The plugin generated 338 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
I’ve used the plugin successfully on other sites. I suspect the host for this site may have stricter permissions.
Is the plugin trying to create a file in the plugin’s directory? That’s probably not a good practice for plugins in general – I could see it being a big security problem. It could be a problem when the plugin is updated, too, because it would get overwritten. But I really like the syntax recognition of this plugin vs. others (or custom css in a child theme) and I’d really love to know of a solution.
Thanks in advance for any help or advice…
Karen
- The topic ‘I get a warning on activation’ is closed to new replies.