Gizmo Installation Problem

Gizmo Installation Problem

by Ollie Deane -
Number of replies: 14

Hi,

I am just attempting to install the gizmo block into my moodle and during the 2nd step of going to the admin page this error comes up at top of screen:

 

title = 'GISMO'; // $this->content_type = BLOCK_TYPE_LIST; //$this->course = $course; $this->version = 2005091000; } function specialization(){ $this->course = get_record('course','id',$this->instance->pageid); } function get_content() { global $USER, $CFG, $THEME; if($this->content !== NULL) { return $this->content; } $this->content = New object; $this->content->items = array(); $this->content->icons = array(); $this->content->footer = ''; if (isguest()) { return $this->content; } if ($this->course->id!=1) { if (isteacher($this->course->id)) { $this->content->items[]=''.'Students Tracking...'; $this->content->icons[]=' gismo.gif'; $this->content->items[]='Domain Configuration'; $this->content->icons[]=' domain.gif'; } } else{ return $this->content; } return $this->content; } } ?>

Block gismo: block_gismo not implemented
 
Could anyone please help me on this.
 
Thanks,
 
Ollie
Average of ratings: -
In reply to Ollie Deane

Re: Gizmo Installation Problem

by Ollie Deane -
Anyone willing/able to help on this matter please?
In reply to Ollie Deane

Re: Gizmo Installation Problem

by Mark Laffoon -
There is a small error in the block_gismo.php file.
the red text (PHP) was left out of line 15

<?PHP
class block_gismo extends block_list {...


this fixed it for me



In reply to Mark Laffoon

Re: Gizmo Installation Problem

by Ollie Deane -
Hi,

Many thanks for this. I have a new problem however. Ive added the block to one of my courses but when I click on Students Tracking... just a blank screen appears. Could anyone help me on this?

Thanks,

Ollie
In reply to Ollie Deane

Re: Gizmo Installation Problem

by Ken Wilson -

I've had this problem also using Moodle 1.5.4. Tracked it to Gismo using short php tags. There are two ways to overcome this:

1. Short-term: edit php.ini and set the flag short_open_tag = On (not recommended - but a time saver).

2. Long-term: take Mark's suggestion and do a find/replace in these files: block_gismo.php, setupdomain.php, applet.php, credits.php, help.php and replace <? with <?php.

There may be some other files that need changing that I've not yet come across!

HTH

Ken

In reply to Ken Wilson

Re: Gizmo Installation Problem

by Ken Wilson -

... and attached is a zip file containing the latest gismo-1.0rc1 with the relevant php files and all the short tags removed. It's been tested OK with Moodle 1.5.4 and 1.6 so I'm emailing Christian Milani with these suggestions.

//Start rant...

Gismo is one of those blocks that adds a wow! factor to moodle. From the teaching perspective, it supplements the moodle logs and allows an instant overview of student progress through activities and of their achievement or under-achievement. Why, oh why, is this not available as a download through moodle.org?!

//End rant 

Ken

 

In reply to Ken Wilson

Re: Gizmo Installation Problem

by Mark Laffoon -
Do you also have the setupdomain feature working under 1.6?  The link still just gives me Page cannot be displayed... DOH
In reply to Mark Laffoon

Re: Gizmo Installation Problem

by Ken Wilson -
I don't get this error, but instead there looks like there is a parameter passing bug in fetching the $id variable. Here's my fixed setupdomain.php from Moodle 1.6 blocks/gismo directory.

Can you try out and report back.

Ken
In reply to Ken Wilson

Re: Gizmo Installation Problem

by Peter de Groot -
Hi .. using 1.6 and installed gismo by downloaded and patching from these
recent posts..

After putting the block in a course and then select student tracking ...
I get a blank screen with  java null pointer exception  down the bottom..... and nothing else ...

any thoughts ?

I have run the cron job.
My php.ini has the short open tags enabled ...

My Java console shows .....

----------------------------------------------------
load: class appletLoader/LoadMainGUI.class not found.
java.lang.ClassNotFoundException: appletLoader.LoadMainGUI.class
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more
Exception in thread "Thread-106" java.lang.NullPointerException
    at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
    at sun.plugin.AppletViewer.showAppletException(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
    at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
    at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Exception in thread "thread applet-appletLoader/LoadMainGUI.class" java.lang.NullPointerException
    at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
    at sun.plugin.AppletViewer.showAppletException(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
load: class ch.unisi.GISMO.GUI.MainGUI.class not found.
java.lang.ClassNotFoundException: ch.unisi.GISMO.GUI.MainGUI.class
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more
Exception in thread "Thread-108" java.lang.NullPointerException
    at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
    at sun.plugin.AppletViewer.showAppletException(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
    at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
    at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Exception in thread "thread applet-ch.unisi.GISMO.GUI.MainGUI.class" java.lang.NullPointerException
    at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
    at sun.plugin.AppletViewer.showAppletException(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

cheers
peter
In reply to Peter de Groot

Re: Gizmo Installation Problem

by Ken Wilson -
Peter -- The Java access controller is saying that it cannot access to the applet LoadMainGui, so there is an io exception. This looks like a permissions problem. Check these:
- get the latest version of the java client for your machine
- if IIS is running on the local computer, set it to anonymous authentication (not NTLM)
- your web server should be able to execute scripts in your gismo folder. When the browser requests the java program it downloads it from the client and it is then transferred into memory and executed by the Java Virtual Machine. If there are no execute permissions then this will fail.

-- Ken
In reply to Ken Wilson

Re: Gizmo Installation Problem

by Chad Outten -

i rcv same error msg as Peter. ive got latest java client & checked IIS permissions are ok. unable to run java client when i select 'Student Tracking' from GISMO block [just get a blank window]. im also unable to configure domain > cant add concepts that can be related to quizzes, forums & assignments. Any ideas?

im running moodle 1.6.1+ Java 1.5.0_06 Internet Explorer 6.0.29 winxp2002sp2

Cheers, Chad big grin

In reply to Peter de Groot

Re: Gizmo Installation Problem

by Ben Lee -
I am running 1.5.4. My final symptoms are the same: blank screen and "main java applet notinited".
Here is the error log:

Charset: Cp1252
URL: http://benjaminlee.org/moodle
Downloading http://benjaminlee.org/moodle/blocks/gismo/retrive_data.php?action=get_course_start_date&course=2
javax.xml.parsers.FactoryConfigurationError: Provider <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> could not be instantiated: java.lang.RuntimeException: java.lang.NullPointerException
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
at ch.unisi.GISMO.DB.DataBase.getData(DataBase.java:84)
at ch.unisi.GISMO.DB.DataBase.getCourseStartDate(DataBase.java:186)
at ch.unisi.GISMO.GUI.MainGUI.init(MainGUI.java:68)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Does anyone have any ideas I can try?
Thanks!
- Ben
In reply to Peter de Groot

Re: Gizmo Installation Problem

by David Dyer -
I was having the same problem, then I read the README.txt. Did you run the export_data.php?

It still doesn't quite work for me, the applet loads but has no data. this seems to be due to a reorganization of Moodle's data tables in version 1.7, renaming "user" to "mdl_user" and "user_students" as I haven't figured out what yet.

David
In reply to Ken Wilson

Re: Gizmo Installation Problem

by Mark Laffoon -
Hey Ken,

Sorry it took me so long to reply, but I was forced to get this thing live a bit before I thought.  Tried out the file and can actually get to the setup domain settings now, although I can't add a concept.  I'll give it another look in the coming week to see if I can find the problem. Thanks for your efforts!

Mark