Warning: Attempt to assign property of non-object

silurius - April 20, 2007 - 20:55
Project:Inline
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description
Drupal 4.7.6
PHP 5.2.1
GD 2.0.28
Modules installed: bueditor, front, imce, inline, menu_per_role, simple_access, systeminfo, upload
Site customization: vbDrupal (only touches user-related tables so far as I know)

I can upload images using the standard upload button successfully, but when I click Preview or Submit on the content, I get this error:

    * warning: Attempt to assign property of non-object in /path/path/siteuser/mydomain.com/modules/inline/inline.module on line 231.

#1

silurius - April 20, 2007 - 21:00

Forgot to mention that on the content preview, in lieu of the inline image, there is this string:

NOT FOUND: http://mysite.com/system/files/brain.jpg

Interestingly, that path works just fine when I simply open that URL into a browser session.

#2

silurius - April 20, 2007 - 21:17

Of course, not using the full path (as I tried first) also generates an error:

Validation error, please try again. If this error persists, please contact the site administrator.

#3

sun - April 21, 2007 - 12:12

Are you using the private file access method?

#4

sun - May 6, 2007 - 14:06
Status:active» postponed (maintainer needs more info)

#5

sprintstar - May 22, 2007 - 11:29

I get the same but for 5.x-1.1, and on line 333, and only on preview. Submit doesn't cause inline image to appear even though its configured to do so.

#6

sprintstar - May 22, 2007 - 11:39

Turn off auto-inlining and the error goes away.

#7

sun - February 11, 2008 - 01:28
Status:postponed (maintainer needs more info)» won't fix

Sorry, this issue has been in the queue for too long.

#8

pegmonkey - July 9, 2008 - 23:21
Version:4.7.x-1.x-dev» 5.x-1.1
Priority:critical» normal
Status:won't fix» postponed (maintainer needs more info)

I get the same error. When using auto-inline enabled. Commenting out these lines from whatever case is active for their respective nodes makes the error go away and everything works fine.

// $node->files[$fid]->inline = TRUE;

// else {
// $node->files[$fid]->inline = FALSE;
// }

Public file access is enabled.

#9

pegmonkey - July 9, 2008 - 23:25

updating to inline-5.x-2.x-dev fixes the issue. My issue has been resolved.

#10

sun - July 14, 2008 - 11:32
Status:postponed (maintainer needs more info)» fixed

Heh... although I do not advise people to upgrade to 5.x-2.x yet, you're welcome to be my alpha/beta tester 8)

#11

Anonymous (not verified) - July 31, 2008 - 04:46
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#12

mehdib4 - November 9, 2009 - 13:50
Status:closed» active
AttachmentSize
nokia.JPG 4.15 KB
 
 

Drupal is a registered trademark of Dries Buytaert.