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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | acidfree.patch.txt | 1.05 KB | wpd |
| #4 | fix_50084.patch.txt | 522 bytes | vhmauery |
Comments
Comment #1
grbitz commentedI get this error too. Running Drupal 4.7b6 on PHP 5.1.2. I think this probably has to do with PHP 5.
Comment #2
mweixel commentedI 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
Comment #3
ifly3years@drupal.org commentedthanks for mweixel
i have the same question,and i change the code ,it can work in album contents.
Comment #4
vhmauery commenteddoes this patch fix the problem for you?
Comment #5
wpd commentedI 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.
Comment #6
vhmauery commentedPatch applied. Thanks.
Comment #7
vhmauery commented