Ive been looking for a book-review module for drupal and found this. Which is for 4.4.0. It dosnt seem any bug reports have been answered in 4+ months. Someone posted a 4.5 update . Which fixed some stuff in the org one.
Im not sure if this is a bug (had it on both) but when Im an admin, I can't add content, it gives me this error:
warning: Invalid argument supplied for foreach() in
/homepagesxx/xxxxx/htdocs/site/modules/bookreview.module on line 78.
warning: Cannot modify header information - headers already sent by (output started at /homepages/xx/xxxxx/htdocs/site/includes/common.inc:406) in /homepages/xx/xxxxx/htdocs/site/includes/common.inc on line 217.
I skimmed the code, and found an error which had already had a which hasnt been addressed yet (16weeks). The part of code that is seeming to give the error is:
foreach ($node->authors as $author){ , which seems fine to me(my php-foo is weak).
As a user, some of it comes up after posting, but not any of the guts of the review, or any real details. When you go to edit it, it gives you an almost-blank page.
Is anyone familair w/ this? Does anyone know of any other book review modules for Drupal?(I cant find any :()
Comments
Hmmm, this cut off my post :(
Ive been looking for a book-review module for drupal and found ( http://drupal.org/node/7880 ). Which is for 4.4.0. It dosnt seem any bug reports have been answered in 4+ months. Someone posted a 4.5 update ( http://drupal.org/node/12788 ). Which fixed some stuff in the org one.
Im not sure if this is a bug (had it on both) but when Im an admin, I can't add content, it gives me this error:
warning: Invalid argument supplied for foreach() in
I skimmed the code, and found an error which had already had a bug report ( http://drupal.org/node/9922 ) which hasnt been addressed yet (16weeks). The part of code that is seeming to give the error is:
foreach ($node->authors as $author){, which seems fine to me(my php-foo is weak).As a user, some of it comes up after posting, but not any of the guts of the review, or any real details. When you go to edit it, it gives you an almost-blank page.
Is anyone familair w/ this? Does anyone know of any other book review modules for Drupal?(I cant find any :()
Seems Drupal dosnt like multiple {a} tags :(
--
eric();
>:-@ | Photography
Very easy, I think
You first should verify in this code of the module if you don't have extra spaces after the last "?>".
foreach spits out a warning
foreach spits out a warning when the supplied array is null. From the bug report it seems that the html output is incorrect, thus when you save or update the review, the proper variables are not getting retrieved correctly (because of they are named incorrectly). Have you tried what the bug report suggested?
--------------------------------------------------------------
Personal Blog Site | Critic Club (Under Construction)
I corrected the error w/ the
I corrected the error w/ the html output before.
I commented out the insert and select queires for the bookreview_authors table, and it no longer thows errors, but it also dosnt display *any* data, or store to the book_review_links table (not commented out).
Im starting to think there is something wrong w/ the form element names, or when they are set. Im getting confused by the use of $author, $authors, author[], authors[].
Hmmmmm...
--
eric();
>:-@ | Photography
Ive updated to the copy from
Ive updated to the copy from the CVS 'Head', and it isnt giving me any errors. When I go to edit, all of the proper info is there, It just dosnt display anything when I try to view it normally. I redid the problems w/ the code where it was like: '][$i' but to no avail.
An example of what I mean can be seen here: http://www.perpetuallypissed.com/node/35
--
eric();
>:-@ | Photography