I put two g2 blocks:G2 Random and G2 Alphabar on frontpage panel (Add content -> Miscellaneous).
Now I've got this error:
Warning: mt_rand() [function.mt-rand]: max(-1) is smaller than min(0) in g2\random() (line 1175 of Z:\home\paris9.kz\www\emploi\sites\all\modules\g2\g2.module).
Notice: Trying to get property of non-object in g2\random() (line 1201 of Z:\home\paris9.kz\www\emploi\sites\all\modules\g2\g2.module).
EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7389 of Z:\home\paris9.kz\www\emploi\includes\common.inc).
Problem seems to be with Random block.
Comments
Comment #1
fgmIt looks like your site does not have at least 3 G2 nodes: have you taken into account the last paragraph of the README.txt file ?
Comment #2
clashar CreditAttribution: clashar commentedfgm, you are right, I didn't have minimum 3 g2 nodes, sorry for issue opening and thank you for quick reply.
Comment #3
fgmAdjusting title. Looks like a README may not be enough.
Comment #4
clashar CreditAttribution: clashar commentedthank you for kind support))
Comment #5
fgmNew features only in current dev version : bumping to 8.x.
Comment #6
fgmStill happens on D10/D9 with a different location:
The better UX is probably to just build an empty block and log the issue instead of exposing it to the front user.