9 replies [Last post]
Lynae's picture
Offline
Joined: 12/26/2007
Juice: 20
Was this information Helpful?

I'm getting the following error message after adding a category term:

Quote:

Fatal error: Call to undefined function: _pathauto_include() in /home/domain/public_html/sites/subdomain.domain.net/modules/ubercart/uc_catalog/uc_catalog.module on line 479

Not sure if this is a bug or what (I'm new to all this). The terms appear to be getting added, at least if I hit the back button and refresh they are displayed in the Parent Terms list.

In searching for an answer/help, I found this in the Issue Tracker and while I have no idea if it's at all related to what I'm experiencing, I did look at the uc_catalog.module code and see that the _pathauto_include(); already exists. Couldn't find anything else so I'm at a loss. Please advise? Thanks.

Drupal 5.6
Pathauto 5.x-1.2
Ubercart 5.x-1.0-beta3
PHP 4.4.7

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Call to undefined function: _pathauto_include()

Pathauto has a version 2.0 out, which probably has all the functions you need. I wasn't aware that I stopped supporting old versions of pathauto when I made the changes to uc_catalog.

Lynae's picture
Offline
Joined: 12/26/2007
Juice: 20
Re: Re: Call to undefined function: _pathauto_include()

Thank you, Lyle--as per your recommendation, I upgraded to Pathauto 2.0 and this rectified the problem. Thanks again!

torsti's picture
Offline
Joined: 08/11/2010
Juice: 5
Again: Fatal error: Call to undefined function _pathauto_include

Sorry to open this issue again, but I'm experiencing this behaviour with Drupal 6. When I try to edit or create a new term, I get the white screen and this:

Fatal error: Call to undefined function _pathauto_include() in /home/xxxxxx/public_html/sites/all/modules/ubercart/uc_catalog/uc_catalog.module on line 525

I'm using the latest dev version of Pathauto and Ubercart 6.x-2.3.

T1Lib Support, GIF Read Support, GIF Create Support, JPG Support, PNG Support, WBMP Support, XPM Support, XBM Support, FreeType Support with freetype
Configuration file Protected
Cron maintenance tasks Last run 56 min 26 sec ago
Drupal core update status Up to date
GD library bundled (2.0.34 compatible)
Module and theme update status Up to date
MySQL database 5.0.51a
PHP 5.2.6-1+lenny3
PHP memory limit 128M
PHP register globals Disabled
File system Writable (public download method)
Unicode library PHP Mbstring Extension
Upload progress Enabled (PECL uploadprogress)
Web server Apache

spuky's picture
Offline
Joined: 01/31/2008
Juice: 80
Re: Again: Fatal error: Call to undefined function _pathauto_inc

the 6.2.3 version of ubercart is tuned for pathauto 6.1.x

but if you wan't to use pathauto 6.2.x

you must change the line 525 of the catalog.module to ... include pathauto correctly...

from

<?php
_pathauto_include
() ;
?>

to

<?php
module_load_include
('inc', 'pathauto');
?>

I guess the later would/should work with pathauto 6.1.x too...

Spuky

torsti's picture
Offline
Joined: 08/11/2010
Juice: 5
Re: Re: Again: Fatal error: Call to undefined function _pathauto

Works great - thanks a lot, Spuky!

BR,

Torsti

jasom's picture
Offline
Joined: 04/13/2008
Juice: 121
torsti wrote: Works great -
torsti wrote:

Works great - thanks a lot, Spuky!

BR,

Torsti

tnx Spuky

--
Problem with ubercart?
First:
google.com > site:ubercart.org my problem description > enter
google.com > site:drupal.org my problem description > enter

jasom.net

magic's picture
Offline
Joined: 07/06/2010
Juice: 9
D6.19,Pathauto 6.x-2.0-alpha2, Ubercart 6.x-2.4 Same Issue

D6.19,Pathauto 6.x-2.0-alpha2, Ubercart 6.x-2.4 Same Issue

No changes after update. Should we hack the code all the time?

cfab's picture
Offline
Joined: 06/30/2009
Juice: 70
Re: [SOLVED] Call to undefined function: _pathauto_include()

I confirm : same problem with path_auto 2a3 and ubercart 2.4...

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Re: [SOLVED] Call to undefined function: _pathauto_include()
<tr>.