uc_catalog pathauto feature not working in dev?

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

In the current dev-branch version of uc_catalog, I'm getting the following error when trying to use the pathauto url features:

"Fatal error: Call to undefined function pathauto_get_placeholders() in .../ubercart/uc_catalog/uc_catalog.module on line 480"

I fixed it by adding:

_pathauto_include();

above the first line in the _uc_catalog_pathauto_alias function. Sorry for not including a patch right now...

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: uc_catalog pathauto feature not working in dev?

Good call. Thanks for the fix.

bowwowadmin's picture
Offline
Bug FinderEarly adopter... addicted to alphas.
Joined: 12/09/2007
Juice: 70
Re: Re: uc_catalog pathauto feature not working in dev?
Assigned to:Lyle» bowwowadmin

I just got this error also I'm kinda new where do I insert this?
thanks

bowwowadmin's picture
Offline
Bug FinderEarly adopter... addicted to alphas.
Joined: 12/09/2007
Juice: 70
Re: Re: Re: uc_catalog pathauto feature not working in dev?

I mean in the UC_Catalog.module

<?php
function _uc_catalog_pathauto_alias($category, $op){
 
$count = 0;

 

$placeholders = pathauto_get_placeholders('taxonomy', $category);   
 
 
$src = uc_catalog_path($category);
  if (
$alias = pathauto_create_alias('uc_catalog', $op, $placeholders, $src, $category->vid)){
   
$count++;
  }
  return
$count;
}
?>

Sorry for not editing the original post but Ryan has lots of Juice already
Peace ;P

bowwowadmin's picture
Offline
Bug FinderEarly adopter... addicted to alphas.
Joined: 12/09/2007
Juice: 70
Re: Re: Re: Re: uc_catalog pathauto feature not working in dev?

I figured it out.

<?php
function _uc_catalog_pathauto_alias($category, $op){
 
_pathauto_include();//*insert here
 
$count = 0;

 

$placeholders = pathauto_get_placeholders('taxonomy', $category);  

 

$src = uc_catalog_path($category);
  if (
$alias = pathauto_create_alias('uc_catalog', $op, $placeholders, $src, $category->vid)){
   
$count++;
  }
  return
$count;
}
?>