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.
Hello,
When adding a box block using boxes, there is this php notice.
Notice: Undefined index: path in domain_form_alter() (line 2288 of domain.module)
I tried to add the form id, boxes_add_form, to the form exception list under DOMAIN-SPECIFIC SETTINGS @ /admin/structure/domain/settings and cleared the cache, but the notice is still displaying.
EDIT: Also, the box is not saved after form submission.
Jason.
Comments
Comment #1
agentrickardWhat is the 'action' element on that form? I'm wondering why parse_url() doesn't return a path value.
Also, what version of PHP are you using?
Comment #2
agentrickardCannot replicate.
Comment #3
jasonawantHello agentrickard,
I know you closed this, but I thought I post more information that I previously omitted to help you replicate the issue.
I tested on a clean install. Similar behavior. I see the same error message. However, I'm unable to submit the form. When clicking the save button, the browser opens a new tab with the site's home page. This occurs on both the default domain and other domain.
Notice: Undefined index: path in domain_form_alter() (line 2288 of /var/www/drupal7/sites/all/modules/domain/domain.module).
Drupal 7.15
Domain Access 7.x-3.4
Ctools 7.x-1.2
Boxes 7.x-1.0
PHP Version 5.3.5-1ubuntu7.10.
The form action is
<form action="http://drupal7.local?destination=admin/structure/block"
. Is that what you are referring to?With Domain Configuration enabled, same behavior.
With Domain Settings enabled, same behavior.
Comment #4
agentrickardYou have Overlay turned on?
Comment #5
agentrickardOK, you have to enable the SEO rewrites. Taking a look.
Comment #6
agentrickardThis is a bug in Boxes, IMO. This is the form action that modules sets.
There is no valid reason to use that syntax. The #action should be admin/structure/block
Comment #7
jasonawantHi,
Yes, the overlay module is enabled. Jason.
Comment #8
agentrickardCross-post. This is a Boxes bug. See comment #6.
Comment #9
sethviebrock CreditAttribution: sethviebrock commentedOn Boxes 7.x-1.x-dev I actually had to go into /admin/structure/domain/settings -> "Advanced Settings" -> "Search engine optimization" and check "Do not rewrite URLs". Doing this cleared the error and allowed me to save a new box (boxes were not saving, as previously reported).
Comment #9.0
sethviebrock CreditAttribution: sethviebrock commentedEDIT: Also, the box is not saved after form submission.