Posted by oopss on December 27, 2012 at 4:05pm
Hi
When someone wants to comment on the site after hitting save a white screen will appear with this theme.
No different than a poster audience or member!
Fatal error: Cannot use object of type stdClass as array in /home/demo/domains/demo.com/public_html/includes/common.inc on line 5786
Comments
Details?
Could you give us a little more detail about your Drupal installation? It would be great to know the following in particular:
- Drupal version (eg 7.18);
- the theme you are using.
But I think the theme is a
But I think the theme is a problem because I tried the default theme.
- Drupal version (7.18)<==Upgrading from 7.17
Debug code
Something in your theme seems to be passing a bad render array for conversion to HTML.
You can add some custom debugging code in common.inc to figure out where your theme is going wrong:
<?php// common.inc line 5784
function drupal_render(&$elements) {
// This is the code for debugging, that we have added.
if (is_object($element)) {
debug($element, 'This is an object, should be an array.');
}
// End custom debug code (standard core code follows).
// Early-return nothing if user does not have access.
if (empty($elements) || (isset($elements['#access']) && !$elements['#access'])) {
return;
}
?>
Hi Thank you, but the problem
Hi
Thank you, but the problem was solved.
Trigger determine if there was a reason for the comments section of the posts to prevent their own words. This problem was solved by removing it, but why would that triggers a reaction.
I have the same problem after
I have the same problem after upgrading to 7.18.
When I add debug code I see errors on the page:
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
Notice: Undefined variable: element в функции drupal_render() (строка 5786 в файле /home/tanya/public_html/includes/common.inc).
What should I do with that?
Thank you
The problem is solved. Same
The problem is solved. Same the trigger on comments caused this error.