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

agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)

What 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?

agentrickard’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Cannot replicate.

jasonawant’s picture

Status: Closed (cannot reproduce) » Active

Hello 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.

agentrickard’s picture

You have Overlay turned on?

agentrickard’s picture

OK, you have to enable the SEO rewrites. Taking a look.

agentrickard’s picture

Title: Notice: Undefined index: path in domain_form_alter() (line 2288 of domain.module) when created a box block » Bad form #action set
Project: Domain » Boxes
Version: 7.x-3.4 » 7.x-2.x-dev

This is a bug in Boxes, IMO. This is the form action that modules sets.


#action (String, 34 characters ) ?destination=admin/structure/block

There is no valid reason to use that syntax. The #action should be admin/structure/block

jasonawant’s picture

Title: Bad form #action set » Notice: Undefined index: path in domain_form_alter() (line 2288 of domain.module) when created a box block
Project: Boxes » Domain
Version: 7.x-2.x-dev » 7.x-3.4

Hi,

Yes, the overlay module is enabled. Jason.

agentrickard’s picture

Project: Domain » Boxes
Version: 7.x-3.4 » 7.x-2.x-dev
Component: Miscellaneous » Code

Cross-post. This is a Boxes bug. See comment #6.

sethviebrock’s picture

On 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).

sethviebrock’s picture

Issue summary: View changes

EDIT: Also, the box is not saved after form submission.