Project:
UbercartCategory:
bug reportPriority:
normalStatus:
fixedIn 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...



Re: uc_catalog pathauto feature not working in dev?
Good call. Thanks for the fix.
Re: Re: uc_catalog pathauto feature not working in dev?
I just got this error also I'm kinda new where do I insert this?
thanks
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
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;
}
?>