Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The sample demo images (e.g. rotator images) are broken after installation of Open Public, everything else is OK. Can you help what might be the problem is? Thanks!
Comment | File | Size | Author |
---|---|---|---|
Untitled.jpeg | 181.92 KB | bmw1lgetu |
Comments
Comment #2
Marc DeLay CreditAttribution: Marc DeLay as a volunteer commentedWhat errors are you seeing?
What url are the broken images trying to reach?
Broken image tags can have many many causes. What else can you tell us about your situation to help debug the issue?
Comment #3
TenaMurphy CreditAttribution: TenaMurphy as a volunteer commentedI think I'm having the same problem. I followed these steps for the OpenPublic Home Page Feature app:
Disable Demo Content
Disable App
Enable App
Enable Demo Content
Now I get these errors on my home page:
Notice: Undefined variable: rotator_id in include() (line 12 of /home/daaop0/public_html/profiles/openpublic/modules/apps/openpublic_home_page_feature/theme/entity-boxes--feature.tpl.php).
Warning: Invalid argument supplied for foreach() in element_children() (line 6525 of /home/daaop0/public_html/includes/common.inc).
Comment #4
bmw1lgetu CreditAttribution: bmw1lgetu commentedanywone?
Comment #5
pkosenko CreditAttribution: pkosenko as a volunteer commentedI notice that I get precisely these error messages when (1) I have the "OpenPublic Home Page Feature" App turned ON, but (2) I have the Demo data turned OFF. Once I configure the rotator with its own images (or demo images), the messages go away because there are actual rotator items (rotator_id) for Drupal to find. In other words, I think this is one of those edge cases that the programmers have just left open. They could have placed a message in the empty (bluish) rotator box ("Please add image content to your slide rotator or turn on Demo data") and written code to suppress the error messages.
Notice: Undefined variable: rotator_id in include() (line 12 of C:\ . . . \devdesktop\ejudicate-dev-copy\docroot\profiles\openpublic\modules\apps\openpublic_home_page_feature\theme\entity-boxes--feature.tpl.php).
Warning: Invalid argument supplied for foreach() in element_children() (line 6590 of C:\ . . . \devdesktop\ejudicate-dev-copy\docroot\includes\common.inc).