I have a new test installation of dupal 4.7.0 beta 4 and the CVS versions of acidfree, filemanager, and attachements modules. I created the first album okay and used mass import to import 5 jpeg pictures. Then when I navigate to the album I just created and click to open it, I then, while view the 5 thumnails, click on 'album contents' so I can edit the picture titles. However, I get the following error:

Fatal error: Cannot use object of type stdClass as array in /opt/lampp/htdocs/drupal47b4/modules/acidfree/acidfree.module on line 693

I also can't us the 'import local files' function to work. I get a "Could not find server-side directory...'. I made sure that the directory was readable by the apache user.

Any ideas?

Jim A

CommentFileSizeAuthor
#5 acidfree.patch.txt1.05 KBwpd
#4 fix_50084.patch.txt522 bytesvhmauery

Comments

grbitz’s picture

Version: 4.6.x-1.x-dev » 4.7.x-1.x-dev

I get this error too. Running Drupal 4.7b6 on PHP 5.1.2. I think this probably has to do with PHP 5.

mweixel’s picture

I too received this error. grbitz seems to be correct that it is a php5 issue. I was able to get Album Contents working with 4.7b6 and php 5.1.1 by changing line 693 from

return isset($item['#acidfree_form']);

to

return isset($item->acidfree_form);

I am not saavy in the ways of documenting and uploading patches. Sorry...

-- Mark

ifly3years@drupal.org’s picture

thanks for mweixel

i have the same question,and i change the code ,it can work in album contents.

vhmauery’s picture

Status: Active » Needs review
StatusFileSize
new522 bytes

does this patch fix the problem for you?

wpd’s picture

StatusFileSize
new1.05 KB

I believe just casting the object to an array is faster than checking. I think that is what is done in core.
Here is a patch. It includes a fix for the pager when the submit returns.

vhmauery’s picture

Status: Needs review » Fixed

Patch applied. Thanks.

vhmauery’s picture

Status: Fixed » Closed (fixed)