I see that this issue was raised against the Drupal 5 version but it still exists.

warning: Attempt to assign property of non-object in /sites/all/modules/upload_preview/upload_preview.module on line 150.

This shows for any attachment which is not an image (like .xls and .doc).

Comments

alekb’s picture

Title: Attempt to assign property of non-object » Attempt to assign property of non-object (...) panels/plugins/style_bases/pane/pane_rounded_shadow/pane_rounded_shadow line 64
Priority: Normal » Major

As I was trying playing round with custom styles for a new panel and clicking preview, to see how it would look, I got the following message:

warning: Attempt to assign property of non-object in .../modules/panels-6.x-3.7/panels/plugins/style_bases/pane/pane_rounded_shadow/pane_rounded_shadow.inc on line 64.

I haven't touched the code there at all, and the worse thing is that now the entire panel does not show in the front page. The code referred to is:

function template_preprocess_pane_rounded_shadow(&$vars) {
$vars['classes'] = $vars['content']->css_class;
$vars['content']->css_class = ''; (this is line 64)

Can somebody please help? I do not know how to fix this. I have just made all the critical modules-updates but can't get the site to go back to how it was.

Thanks.

jahmes8’s picture

I just fixed that error message by filling in a missing empty "unique name" field in the database table related to the stylizer. I was saving a style and forgot to enter the machine name so the system could not locate it. I'm going to post this in the ctools queue:

http://drupal.org/node/1256924

James