upload image results in "page not found"

Bug #312502 reported by stefan
2
Affects Status Importance Assigned to Milestone
ProsePoint
New
Undecided
Unassigned

Bug Description

When choosing "upload image" via TinyMCE-Picture-button, the image is uploaded but results in a "page not found"
http://.../prosepoint-0.13//prosepoint-0.13/pp_ed/insert/ifimage/insert/28

oh, as I paste the url, it seems that "prosepoint-0.13" ist doubled in the path.
The redirect seems to be wrong.

--
After searching around it seems to me that changing the following line (#157 in pp_ed.image.inc)
  $form_state['redirect'] = url('pp_ed/insert/ifimage/insert/' . $form_state['nid']);
to
  $form_state['redirect'] = 'pp_ed/insert/ifimage/insert/' . $form_state['nid'];
fixes the error.

Best regards
  Stefan

description: updated
Revision history for this message
bengtan (bengtan) wrote :

Hi,

Hmm.... $form_state['redirect'] is conventionally an internal Drupal path. There should be no need to call url() because the form handling code in Drupal does that automatically.

The url you posted has a double slash. That makes me suspicious that your setup is somehow using absolute paths (instead of Drupal paths) which is then confusing the form handling code in Drupal.

Revision history for this message
stefan (stefan-vogel-nest) wrote :

Hi,

yup, that's why I removed the call to url().
My setup is a "standard"-setup from the prosepoint-profile. No absolute paths.

Revision history for this message
bengtan (bengtan) wrote :

Ah, I misread your initial post. Yes, there is currently a call to url() which should be removed. This will be fixed in the next version of ProsePoint. Thank you for your help.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.