I'm setting the node path settings, and when I submit I get this error message:

Fatal error: Call to undefined function pathauto_punctuation_chars() in /home/socalmov/public_html/sites/all/modules/pathauto/pathauto.admin.inc on line 369
array(4) { ["type"]=> int(1) ["message"]=> string(55) "Call to undefined function pathauto_punctuation_chars()" ["file"]=> string(72) "/home/socalmov/public_html/sites/all/modules/pathauto/pathauto.admin.inc" ["line"]=> int(369) } n/a

Thanks for any and all help.

CommentFileSizeAuthor
#6 pathauto.patch581 bytesKevin Rogers

Comments

mrfelton’s picture

Similar for me. Trying to configure pathauto settings for a particular node type and getting the following when hitting save:

Fatal error: Call to undefined function pathauto_punctuation_chars() in /home/tom/workspace/concern6/sites/all/modules/contrib/pathauto/pathauto.admin.inc on line 369

mrfelton’s picture

I also get the same problem with the latest -dev

mrfelton’s picture

Just add _pathauto_include(); at the top of pathauto_admin_settings_validate (pathauto.admin.inc line 365)

pimousse98’s picture

just had the same problem, applied fix #3, and it worked. Hope it gets committed for next release.

greggles’s picture

Title: Fatal Error call to unefined function pathauto_punctuation-chars » Fatal Error call to unefined function pathauto_punctuation_chars when saving the settings

Anyone want to make a patch to do that and get the accompanying fame and glory?

I'm also unable to repeat this bug, which makes me curious about the precise cause...

Kevin Rogers’s picture

StatusFileSize
new581 bytes

Just started seeing the same problem on a fresh install, never seen the problem before, or even on other sites running the same code...

Anyway, the fix in comment 3 sorted out the problem - the attached patch contains the fix.

restyler’s picture

I've managed to fix this problem by disabling Form module.
related thread: http://drupal.org/node/652632

greggles’s picture

Status: Active » Closed (duplicate)

I guess this is a duplicate of #652632: Conflict with pathauto then. If other people experiencing the problem can state whether the Form issue is the cause of the problem for them as well that would help.

density’s picture

Doh, some numpin installed path auto in sites/all/pathauto-6.x-1.3/pathauto/ on one of our projects.

When moving the pathauto folder, you will also need to fix the includes in pathauto.module .i.e

function _pathauto_include() {
  module_load_include('../pathauto-6.x-1.3/pathauto/inc', 'pathauto');
  module_load_include('../pathauto-6.x-1.3/pathauto/inc', 'pathauto', 'pathauto_node');
  module_load_include('../pathauto-6.x-1.3/pathauto/inc', 'pathauto', 'pathauto_taxonomy');
  module_load_include('../pathauto-6.x-1.3/pathauto/inc', 'pathauto', 'pathauto_user');
}

Changed to :-

function _pathauto_include() {
  module_load_include('inc', 'pathauto');
  module_load_include('inc', 'pathauto', 'pathauto_node');
  module_load_include('inc', 'pathauto', 'pathauto_taxonomy');
  module_load_include('inc', 'pathauto', 'pathauto_user');
}