Constantly getting this set of error messages:

Warning: strpos() expects parameter 1 to be string, array given in file_uri_scheme() (line 204 of /includes/file.inc).
Warning: mb_substr() expects parameter 1 to be string, array given in drupal_substr() (line 518 of /includes/unicode.inc).
Warning: rawurlencode() expects parameter 1 to be string, array given in drupal_encode_path() (line 625 of /includes/common.inc).

The set of messages sometimes appear 2+ times. When I refresh the page, the error is gone.

The same message is printed on the page and in Watchdog. This has been appearing for several weeks.

I cannot find the cause. Once it seemed to be when an Anonymous user was viewing the page but now it appears for Admin on some pages, sometimes.

Comments

tkasis’s picture

I am receiving an almost identical error when loading my modules list. And like yourself, a refresh clears the errors.

Were you able to track down and resolve the issue? If so, please share.

itserich’s picture

It eventually stopped but I don't know what did it.

I have had a variety of errors and most of them fixed but it is hard to know what fixed it.

If you list your modules I can see if there is overlap.

Any ideas I have would be a guess.

tkasis’s picture

I had used a theme quickstart profile so I am sure it has to do with a module. I installed a clean Drupal site on the same server without any issues.

I am going to start turning things off until I find the culprit.

Thanks for the info.

Anonymous’s picture

Did you figure out what it was? I'm having this issue too, and I'm also getting an issue every couple hours of work where I'm redirected to "mysite.com/install.php". I'm wondering if the problem causing the errors is then building and exploding into a "Drupal already installed' problem.

Anything you can say to what you did would be IMMENSELY helpful. I've already lost 15 hours of work once, and now I'm having to backup once every hour with a sql dump just be on the safe side....

Khetam’s picture

Hey

I have the same warning when adding nodes.
Warning: strpos() expects parameter 1 to be string, array given in file_uri_scheme() (line 200 of /includes/file.inc).

siefca’s picture

Same here!