While working on a Drupal site, we kept getting error messages after deleting content:
• recoverable fatal error: Object of class stdClass could not be
converted to string in /usr/local/drupal/includes/bootstrap.inc on line 768.
• warning: preg_match() expects parameter 2 to be string, object given
in /usr/local/drupal/includes/bootstrap.inc on line 771.
after that we got a similar error but on line 735
we looked around for a bit and fixed it. we edited the bootstrap file, which is actually not done. if anyone found a better way to fix this issue, please comment on this post.
Anyway, this is what the bootstrap looks like now:
we changed lines 734 – 739:
function check_plain($text) {
if(!is_string($text)){
return "";
}
return drupal_validate_utf8($text) ? htmlspecialchars($text, ENT_QUOTES) : '';
}
and lines 770 – 775:
function drupal_validate_utf8($text) {
if (!is_string($text) || strlen($text) == 0) {
return TRUE;
}
return (preg_match('/^./us', $text) == 1);
}
It seems that installing a Drupal site (or copying one from your dev machine) to a ONE.COM hosting is not without troubles….
As soon as you have put in place your database (via phpmyadmin), copied your files via ftp and updated your settings.php file (you need to do this at least to check your database connection), you will most probably get:
500 Internal Server Error
This can be solved quite easily by commenting two lines in your .htaccess file:
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# Follow symbolic links in this directory.
Options +FollowSymLinks
So, after changing your .htaccess, it should look like this:
# Don't show directory listings for URLs which map to a directory.
# Options -Indexes
# Follow symbolic links in this directory.
# Options +FollowSymLinks
After doing this, your site should run smoothly.
We just launched our Drupal Demo site. It will be used to show to our prospects and customers how easy it is to work with Drupal as well as how powerfull it is.
Ow yeah, if you got some suggestions on cool modules we could include, don’t hesitate to let us know!
Visit the HaLe Drupal Demo Site.