Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 06:33 am EST
Geeklog Forums
Easyfile 0.7.x moderation glitch
Status: offline
ajzz
Forum User
Regular Poster
Registered: 01/19/05
Posts: 113
When I approve a single user-submitted file from the moderation interface, the file gets approved but the page returns the error:
If I approve (say) 4 files at the same time from the moderation page, only the first one gets approved while the other three stay in the submission queue. Hitting the submit button while doing the above also returns the quoted error.
Since line 501 in functions.inc
seems to involve emailing notifications, let me add that the PEAR based mail for the admin functions and e-mailing from profiles is working fine.
This has occurred in earlier versions of Easyfile, but, since most of the files on the site are added by me, this issue fell off the radar.
Any ideas?
Ajay
Fatal error: Call to undefined function: html_entity_decode() in /geeklog-1.3.11/plugins/easyfile/functions.inc on line 501
If I approve (say) 4 files at the same time from the moderation page, only the first one gets approved while the other three stay in the submission queue. Hitting the submit button while doing the above also returns the quoted error.
Since line 501 in functions.inc
COM_mail ($A['email'], html_entity_decode($subject), html_entity_decode($mailtext));
seems to involve emailing notifications, let me add that the PEAR based mail for the admin functions and e-mailing from profiles is working fine.
This has occurred in earlier versions of Easyfile, but, since most of the files on the site are added by me, this issue fell off the radar.
Any ideas?
Ajay
13
13
Quote
Status: offline
Kelvin
Forum User
Chatty
Registered: 10/08/02
Posts: 50
Quote by ajzz: When I approve a single user-submitted file from the moderation interface, the file gets approved but the page returns the error:
Text Formatted Code
Fatal error: Call to undefined function: html_entity_decode() in /geeklog-1.3.11/plugins/easyfile/functions.inc on line 501What's your php-version? html_entity_decode was introduced in 4.3. You can safely remove that function call, but the resulting email might be uglier. Line 501 in functions.inc:
Text Formatted Code
COM_mail ($A['email'], $subject, $mailtext);
10
10
Quote
Status: offline
ajzz
Forum User
Regular Poster
Registered: 01/19/05
Posts: 113
Thanks Kelvin, this is indeed the issue. Let me try to ask my host to upgrade php (currently 4.1.x).
Meanwhile, when the above line is commented out, there is still no e-mail (even if ugly) being sent to the user when a file is approved... any ideas why?
Thanks,
Ajay
Meanwhile, when the above line is commented out, there is still no e-mail (even if ugly) being sent to the user when a file is approved... any ideas why?
Thanks,
Ajay
9
10
Quote
Status: offline
Kelvin
Forum User
Chatty
Registered: 10/08/02
Posts: 50
Quote by ajzz:Meanwhile, when the above line is commented out, there is still no e-mail (even if ugly) being sent to the user when a file is approved... any ideas why?
Sorry. I was unclear. Dont uncomment the entire line, just remove the calls to html_entity_decode. Like this:
Text Formatted Code
COM_mail ($A['email'], $subject, $mailtext);
12
11
Quote
All times are EST. The time is now 06:33 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content