[Register]
Powered by Elgg

Plugins :: Blog :: Archives

December 2007

December 02, 2007

Hi there i am getting this error message: Fatal error: Call to undefined function __gettext() in /home/tepegne/public_html/mod/calendar/config.php on line 2

 I know it's something stupid iam doing but can advise?

thanks.

Posted by Rodrigue @ Plugins | 2 comment(s)

December 13, 2007

I get this error. 

=================

Fatal error: mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] in EXECUTE("select * from elgg_files where files_owner = 2 and ( owner = 2 OR access IN ('PUBLIC', 'LOGGED_IN', 'user2') ) order by time_uploaded desc limit ") in /home/~user/public_html/elgg/lib/adodb/adodb-errorhandler.inc.php on line 77

================= 

 

What causes it is a user adds the 'file widget' to their profile and doesn't set a number for how many files to view.  However, I am using 0.8. 

The error is in file mod/file/lib.php.  Line 180.  I fixed it by the following adjustment

function file_widget_display($widget) {
    global $CFG;
    $latest_files = widget_get_data("latest_files",$widget->ident);
    if(strlen($latest_files)==0 || !is_numeric($latest_files)){$latest_files=5;}
    $html = "<p>" . __gettext("No files found.") . "</p>";
    if ($widget->type == "file::files") {
from
function file_widget_display($widget) {
    global $CFG;
    $latest_files = widget_get_data("latest_files",$widget->ident);
    $html = "<p>" . __gettext("No files found.") . "</p>";
    if ($widget->type == "file::files") {
I just set a default amount.

 

 

Posted by bigorangemachine @ Plugins | 0 comment(s)

December 21, 2007

New Google search plugin for internal sitesearch form 

http://elgg.org/mod/plugins/plugin.php?id=65

Keywords: google, plugin, search

Posted by simontol @ Plugins | 2 comment(s)

Site supported by Curverider Ltd - powered by the awesome Elgg