Fatal error: Call to undefined function pathauto_cleanstring() in C:\Documents\localhost\modules\pathauto\pathauto.module on line 401

I'm building a view for venue names and addresses. The content type has a title/summary, the taxonomy vocab is the city, and then CCK is adding street address, zip code, and some contact info. Originally I had city as a CCK field and my view worked fine, but I decided to turn it into a category so I could view all venues in a particular city. I had pathauto set up doing individual venues as "venue/cityname/venuename" and then category was setup as "venue/cityname". This works. My views page url alias is "venues". Now that I switched cities over to a category it no longer works and spits out that error.
Any ideas? I searched but didn't find anything at all.

Comments

epatr’s picture

Project: Pathauto » Views (for Drupal 7)
Version: 5.x-2.x-dev » 5.x-1.6

update: after some trouble shooting it actually seems to be a problem with the URL add-on i had installed for CCK. it gave me the option of having it as a link, but when i make it plain text it seems to fix it. i haven't searched the site for that one yet so maybe this is a duplicate problem.

heres my export:

  $view = new stdClass();
  $view->name = 'venues';
  $view->description = 'Venues List';
  $view->access = array (
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = 'Florida Venues and Stores';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'table';
  $view->url = 'venues';
  $view->use_pager = FALSE;
  $view->nodes_per_page = '10';
  $view->sort = array (
  );
  $view->argument = array (
  );
  $view->field = array (
    array (
      'tablename' => 'node',
      'field' => 'title',
      'label' => 'Venue',
      'handler' => 'views_handler_field_nodelink',
      'options' => 'link',
    ),
    array (
      'tablename' => 'term_node_2',
      'field' => 'name',
      'label' => 'City',
      'options' => 'link',
    ),
    array (
      'tablename' => 'node_data_field_address',
      'field' => 'field_address_value',
      'label' => 'Address',
      'handler' => 'content_views_field_handler_group',
      'options' => 'default',
    ),
    array (
      'tablename' => 'node_data_field_url',
      'field' => 'field_url_url',
      'label' => 'Website',
      'handler' => 'content_views_field_handler_group',
      'options' => 'short',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'venue',
),
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node, term_node_2, node_data_field_address, node_data_field_url);
  $views[$view->name] = $view;
 
merlinofchaos’s picture

Project: Views (for Drupal 7) » Pathauto
Version: 5.x-1.6 » 5.x-2.x-dev

The error you cite is from pathauto.module and doesn't appear to have anything specifically to do with Views, though there may be some odd interaction here.

epatr’s picture

Project: Views (for Drupal 7) » Pathauto
Version: 5.x-1.6 » 5.x-2.x-dev

I ended up finding a solution to my problem in the Links issue page: http://drupal.org/node/212529
It had to do with allowing the Links module to use tokens.

Sorry for putting this under Views, but I just assumed since I was having a problem with the view it would be the best place. Thanks!

greggles’s picture

Title: pathauto_cleanstring() » call to undefined function pathauto_cleanstring()
Status: Active » Closed (duplicate)

Ok, glad it's fixed.