Closed (fixed)
Project:
Notify
Version:
master
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
10 Sep 2004 at 00:17 UTC
Updated:
20 Apr 2006 at 19:08 UTC
Hi. I recently updated to 4.4.2 from 4.2. I started clean and added new modules as needed. The notify module 4.4.0 causes this error in cron.php:
Fatal error: Call to undefined function: html_entity_decode() in /var/www/smithson/modules/notify/notify.module on line 24
Anybody know how to fix this?
Comments
Comment #1
(not verified) commentedI see no function called html_entity_decode within notify.module and I don't know where it expects to get the module from. Boo, I hate to actually have to work to figure things out. ;)
Comment #2
(not verified) commentedSo, here I am again, the anonymous seeker, speaking to nobody in particular. I found that html_entity_decode is a PHP builtin function (http://us4.php.net/manual/en/function.html-entity-decode.php) that requires (PHP 4 >= 4.3.0, PHP 5). I am currently using PHP Version 4.2.3. Oops. Time to rebuild.
Comment #3
(not verified) commentedThanks to dave at codexweb dot co dot za for providing this code for less than 4.3 versions of PHP. It is an easier fix than upgrading, in my case anyway. Only problem is that links to nodes are just plain text in the emails.
Comment #4
(not verified) commentedHmm...for some reason color coding of PHP code is not working here at drupal.org at the time of this writing. Anyhow, I had to make a final adjustment to notify.module to make links in notification work. I'm not sure why I had to do this, but I'm guessing it is again due to my version of PHP being less than 4.3.
At line 89 and 95, change from:
to:
I hope this helps somebody.
Comment #5
dsmithson commentedI finally added a Drupal account. All of the above messages are from me. What the hell happened to code display?
Comment #6
RobRoy commentedClosing old bugs.