PDA

View Full Version : Error when Approving Links


echopulse
12-08-2005, 03:29 PM
I just found the first bug in the new version. When I try to approve a link, I get the following error. It only happens when the e-mail approval alert is unchecked.

Fatal error: Call to undefined function: convert_str() in /home/conserva/public_html/classes/DirMailer.php on line 71

Simon Gooffin
12-08-2005, 03:34 PM
Here is the fix:
*** open classes/DirMailer.php ***

*** find and remove the following code ***
$link_url = $this->mConfig['base'].$this->mConfig['dir'].$aCategory['path'].'/'.convert_str($aLink['title'])."-l{$aLink['id']}.html";
$body = str_replace('{dir_link_url}', $link_url, $body);

*** save the changes ***

This should help.

echopulse
12-09-2005, 01:20 AM
That code is not in my file. I'm using Pro by the way.

Simon Gooffin
12-09-2005, 02:37 AM
yes I know. :) You do have that line if you applied comments patch.

echopulse
12-09-2005, 03:33 AM
I have applied the comments patch, and I don't have that line.

Edit:

I just realized that the online version is the one with the patch, not the local version I was looking at.

Simon Gooffin
12-09-2005, 04:46 AM
I checked comments patch and I do see that line there :)) Please check again. Check the version where you have problems.

echopulse
12-09-2005, 04:48 AM
Yes, I was looking at my local version. I downloaded the updated version, and removed the code. It did fix the problem. Thanks.

Simon Gooffin
12-09-2005, 04:55 AM
Glad to help you :)

echopulse
12-14-2005, 08:17 PM
Well, this has been fixed, so I'll close this topic now.

Simon Gooffin
12-15-2005, 07:04 AM
Well, this has been fixed, so I'll close this topic now.
sure