Support ⇒ Troubleshootings :: Archives ⇒ [fixed] Fatal error: Call to undefined function get_smilies( :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexTroubleshootings

Archived ⇒ [fixed] Fatal error: Call to undefined function get_smilies(


(DF 9.1 and 9.1.1 CVS today's update) When try to view:
admin.php?op=smilies

i get


Fatal error: Call to undefined function get_smilies() in C:\home\www\admin\modules\smilies.php on line 325


is anyone having the same problem? is it a real bug?

IN admin\modules\smilies.php

i fixed changing line 316

$db->sql_query($sql);

to

$result = $db->sql_query($sql);

and line 325

$smilies = get_smilies();

to:

$smilies = $db->sql_fetchrowset($result);


added to end of the file: (after CloseTable();)

$db->sql_freeresult($result);

www.greenday2k.net

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


sorry this and issue only with cvs. sorry.
$Revision: 9.11
AND Not $Revision: 9.10

www.greenday2k.net

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


what about all the past cvs updates between 9.1.1 and today?

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


I think he meant the file revision, but 9.12 has been there for 3 days.

I can't reproduce this with cvs from 2-28 but drag and drop doesn't work either Smile

Diagon Alley - Top Design

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1


all of you are missing files .... a good practice is to get a snapshot and uploads all files ... otherwise you must follow our cvs mailing list.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


ouch, thanks.

www.greenday2k.net

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


sorry i was lying Very happy ... there is a little issue here .

after i did uploaded the new smiles system i was suppose to release 9.1.1.2 but then few more important bugs happened to have an high priority.

You do probably have all files but its missing the upgrade part. Just wait few more days an 9.1.1.2 will be available. This will fix any issue especially database queries errors Embarassed

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


i downloaded and updated my dfcms today. from 9.1.1.1 to 9.1.2.1. i am now getting the error trying to access the admin smiles page.

admin.php?op=smilies gets:
Fatal error: Call to undefined function get_smilies() in c:\myroot\htdocs\admin\modules\smilies.php on line 327.

I dont use the cvs i manually downloaded and intstall 9.1.1.1 about 2 mnths ago and it has been working fine. seen i needed an update through the admin panel so i manually downloaded and installed the files as per directions. everything seems to be working correctly without any issues except the smiles. i made the changes to the file as mentioned at the beginning of the post and it allows me now to access the smiles panel and such but it does not display the smiles that are loaded but no errors with any of the other funtions on the page. any help would be appreciated. Thanks OMK

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
winxp-pro/2.2.3/5.0.27/5.2.0/9.1.1


Mhm, same problem here.

Though I may have some CVS files mixed in now :S

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-


Hm, function get_smilies was added 2005/12/30. includes/nbbcode.php should be this one for 9.1.2.1: dragonflycms.org/cvs/h...php?v=9.37 (and Eestlane that is the newest one as of this writing).

Diagon Alley - Top Design

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1


Adding
require_once('includes/nbbcode.php');
in admin/modules/smilies.php quite beginning, helped me atleast... though interesting, where it should really include that file :S

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-


now using 9.1.2.1 smiles section runs ok.

www.greenday2k.net

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Bugger, cos i have this exact error using 9.1.2.1, should i use the fix first posted?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0


hi when i cick on the smilies link on the admin panel it shows this error

Fatal error: Call to undefined function get_smilies() in C:\wamp\www\admin\modules\smilies.php on line 327


could u tell me what the problem is as i haven't fiddled with this file at all and in fact i compared it to the original file it is absolutely same.

Thank You
Scan Cool

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Windows/Apache/MYSQL/PHP


Same topic here.

For me, this code helped:
Add in admin/modules/smilies.php quite beginning(After security check i.e):
require_once('includes/nbbcode.php');

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-

All times are UTC