The page does display the correct error message; however, I am also getting two variable errors:

* notice: Undefined offset: 1 in /path/to/drupal/sites/all/modules/customerror/customerror.module on line 189.
* notice: Undefined variable: output in /path/to/drupal/sites/all/modules/customerror/customerror.module on line 52.

The second error (line 52) occurs throughout the administrative section of the Web site.

CommentFileSizeAuthor
#4 customerror.txt7.84 KBemmajane
#4 customerror-settings.png117.06 KBemmajane

Comments

kbahey’s picture

Hello Emma

I committed a fix for the second one.

I will need to investigate the other one more. Do you have redirects defined? How many? And are you on Windows or Linux?

Khalid

emmajane’s picture

No other URL aliases are defined. Clean URLs are not turned on (the 404 doesn't work at all if I'm not using a query string, but that's my problem, not yours). It's an Ubuntu machine running Apache 2.

I disabled and then enabled the module. The error I now get on the page /?q=foo is:

notice: Undefined offset: 1 in /path/to/drupal/sites/all/modules/customerror/customerror.module on line 219.

thanks, Khalid!

kbahey’s picture

Yes, the line number changed because I added some stuff to the cide.

I mean do you have any redirected paths in the redirect box on the custom error module settings page, or is this box empty?

Better yet, attach a screen shot of the customerror settings page, and also the output from this SQL command:

SELECT * from variable WHERE name LIKE 'custom%';

emmajane’s picture

StatusFileSize
new117.06 KB
new7.84 KB

That box is empty.... here's a screen shot of the settings page and the output from the SQL command (output from a db_query() because mysql was being messy). I hope that's helpful. :)

kbahey’s picture

Status: Active » Fixed

This should be fixed now.

But wait for 24 hours or so until the tarball gets updated.

emmajane’s picture

I've checked the files out from CVS and both now work perfectly, thanks Khalid!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

  • Commit 3d373e7 on 6.x-1.x, 8.x-1.x by kbahey:
    #304598 by scafmac, modified by kbahey, cleanup of admin page. #307288...
  • Commit 6f39143 on 6.x-1.x, 8.x-1.x by kbahey:
    #307288 Fix for php notice. Refactored some sections of the code, making...