I'm using D6.3 actually. Site Documentation version is 6.x-1.1 (obviously), and I was running it configured with quite a few boxes checked but none of the deleting or releasing operations. Installed modules include CCK, Views 2, imagecache, imageapi, token, jQuery, etc. Here is my sitedoc list summary, and the error message i got in dsm():

* Operating in off-line mode.
* Default format updated.
* 85 tables found in database.
* 7 content types found.
* 61 modules found.
* 12 Theme found.
* 151 system variables found.
* 136 Blocks found.
* 7 Roles found.
* 2 Contacts found.
* 4 Profile fields found.
* 1 URL Aliases found.1 nodes without aliases found.

# recoverable fatal error: Object of class stdClass could not be converted to string in /home/content/s/c/o/apache/html/my drupal website/includes/bootstrap.inc on line 720.
# warning: preg_match() expects parameter 2 to be string, object given in /home/content/s/c/o/apache/html/my drupal website/includes/bootstrap.inc on line 723

So the offending function looks pretty simple, notwithstanding my regular expressions experience:

719: function drupal_validate_utf8($text) {
720:   if (strlen($text) == 0) {
721:     return TRUE;
722:   }
723:   return (preg_match('/^./us', $text) == 1);
724: }

I can provide more information about my config. Just let me know or post here on what you thinks up. It's not even a big deal since it fixes itself basically, but probably worth noting?

CommentFileSizeAuthor
#4 debugtrace.txt166.19 KBwuf31

Comments

steinmb’s picture

Was also able to trigger this error message:

PHP 5.2.x
Drupal 6.4
Content Construction Kit (CCK) 6.x-2.0-rc5
ImageAPI 6.x-1.0-alpha2
ImageCache 6.x-1.0-alpha2
ImageField 6.x-3.0-alpha1
Views 6.x-2.0-rc1

Server version: 5.0.62 Source distribution
Db characterset: utf8

steinmb’s picture

Project: Site Documentation » Drupal core
Version: 6.x-1.x-dev » 6.4
Component: Code » mysql database
damien tournoud’s picture

Component: mysql database » other

This is probably not a Drupal core bug, but since I don't know where to send it, it will stay here for now.

What happens is that drupal_validate_utf8 is called (by one of your installed modules) with an stdObject instead of a string. Try to backtrace the call to identify the offender. Add this on top of drupal_validate_utf8():

if (!is_string($text)) {
  drupal_set_message(var_export(debug_backtrace(), TRUE));
}

... and report back the results.

wuf31’s picture

StatusFileSize
new166.19 KB

Okay.. I'm having this error as well.

Here is my debug_backtrace.

It's noteworthy also that this error only occurs if not using the default language.

damien tournoud’s picture

Project: Drupal core » Content Construction Kit (CCK)
Version: 6.4 » 6.x-2.x-dev
Component: other » text.module

Reassigned to CCK, even if I'm not sure what can cause this. In the nutshell: the value of the field is NULL.

wuf31’s picture

sorry.. turns out that it came from some custom code that i've hacked into nodeapi_hooks.

yched’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

ok, closed then

summit’s picture

Bookmarking, greetings, Martijn