the relevant css injector files are not loaded initially and produce a 2 warnings in the log file. but then seems to loaded eventually. the message is

type: page not found.
message: public://css_injector/css_injector_8.css (and others similar css injector files)

this happens almost in every web page loaded and produce a large log file. I suspect it slow sdown the site too. Any clue as how to fix this?

Comments

rfay’s picture

It looks like you don't have that file.

It should be in sites/default/files/css_injector (or elsewhere if public:// is not sites/default/files

Have you moved to a different site without copying your files directory?

kitling55’s picture

That's the puzzle. The files are there and they are eventually loaded. I can see the effect of the css in the pages. It seems to me that it couldn't find the files initially and write a warning in the log, but then eventually found them and loaded them.

kitling55’s picture

More info from the log:

Type - page not found
Date Monday, April 30, 2012 - 15:17
User xxx
Location http://globalnetcasting.net/public://css_injector/css_injector_5.css?m3b6yy <<=====
Referrer http://globalnetcasting.net/content/read-and-write-living-america/%E6%88......
Message public://css_injector/css_injector_5.css
Severity warning

What would cause Drupal to look for files in
http://globalnetcasting.net/public://css_injector/css_injector_5.css instead of just public://... ?

rfay’s picture

I've seen this happy on Windows machines when a file named public:/ or public:// accidentally gets created in the Drupal root directory. You might look for that.

If you want to dropbox me (randy at randyfay dot com) your files tarball and database I'll take a look as well.

rfay’s picture

Title: Page not found in log » Page not found in log (public://)

Note that there have been several issues that mentioned this.
http://drupal.org/project/issues/css_injector?text=public%3A%2F%2F&statu...

kitling55’s picture

I also checked the status report and found this:

CSS Injector directory writable Not writable
CSS Injector Directory public://css_injector is writable

the issue was reported in http://drupal.org/node/1250446

My server is Linux and I don't have a "public:" or similarly-named folder anywhere.

rfay’s picture

#1250446: error appear in my server log after update drupal 7.7 and css injector was resolved when the bogus public: directory was discovered, apparently.

I repeat the offer from #4 . Not much else I can do.

zhangtaihao’s picture

In my case, when CKEditor gets loaded, it tries to load CSS injector rules and ends up loading from URLs beginning with:

http://example.com/public://css_injector/css_injector_1.css
rfay’s picture

Please make sure there is no directory or file accidentally created that is named "public:"

zhangtaihao’s picture

There is none.

radj’s picture

I'm also curious with this issue. It's spamming the dblog.

But I think this might be related to the WYSIWYG issue #1485444: Notice: page not found - public:/css_injector/css_injector_1.css.

rfay’s picture

Status: Active » Closed (duplicate)
dimmech’s picture

In my case, I use drush as root user on my server to install modules. After which I chown the module folder. However this module creates a folder in the "public" directory at sites/default/files/css_injector and public:// is what drupal uses to find what you set as the public directory at admin/config/media/file-system. Whatever that folder is for you, be sure to chown so it is writable by the server.