<< Back
Message for this thread
Posted by Messages text
Knight Tim

Noavatar
Total post : 3
> Profile
Attachment : file
Object : My objects and Shared objects
Hi folks, I can't seem to get 'my objects' or 'shared objects' to show, if I click on either of these, a blank page is generated. Test objects are accessed fine. I've written some echo script that says that I have access to them:

if( checkPerm('home', true, 'storage')&& checkPerm('lesson', true, 'storage') && checkPerm('public', true, 'storage')) echo "i have access!";

And this runs fine, and displays 'i have access' instead of the blank page. I'm not sure if I have set up folder permissions wrong somewhere or what is up.

On another note, I've fixed the bug that meant that when a test has a time limit for each question, and that limit is reached, the test skips to the end, instead of going to the next question. On test with an overrall time limit, the time expires like normal and the alert box sends the user to the end of the test as normal. Still no luck fixing the bug with changing the time limit on the questions, so the 'time limit per question' functionality is still not very useful, unless you know your SQL.

Edit : The attachment is the do.test.php that sits in the Lms/modules/test/ folder of your installation.
Message modified by : Timje on : 25/10/2010 18:27
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 26/10/2010 10:23 ( more than one month )
Object : Re: My objects and Shared objects
Hello,
are you using docebo 3.6.0.4 ? If you enable the debug info, do you get any error message instead of the blank page?

Thanks for providing the patched file :)

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
Knight Tim

Noavatar
Total post : 3
> Profile
Written on : 26/10/2010 11:09 ( more than one month )
Object : Re: My objects and Shared objects
Fatal error: Call to undefined method LmsModule::initialize() in blahblah Lms/modules/storage/storage.php on line 107.

I have tried making sure the correct modules are available..

require_once( $GLOBALS['where_lms'].'/class.module/class.homerepo.php');
require_once( $GLOBALS['where_lms'].'/class.module/class.pubrepo.php');

But no luck.

If I try to call any method on the variable $repo, I get the error, so my guess is that $repo = createModule( 'pubrepo' ); is not creating the module with the correct inheritances.

BTW thanks for your quick response D:
Message modified by : Timje on : 26/10/2010 12:50
 
Knight Tim

Noavatar
Total post : 3
> Profile
Written on : 26/10/2010 13:33 ( more than one month )
Object : Re: My objects and Shared objects
Fixed it - the learning_module database table was missing the entries for 'pubrepo' and 'homerepo', and so the createModule was defaulting to creating an 'LmsModule' for each of the different requested repositories. So I have manually added the required entries in the database, and now I can use the repositories fine (so far).

INSERT
INTO `testcentre`.`learning_module` (
`idModule` ,
`module_name` ,
`default_op` ,
`default_name` ,
`token_associated` ,
`file_name` ,
`class_name` ,
`module_info`
)
VALUES (
'42', 'pubrepo', 'pubrepo', '_PUBREPO', 'view', 'class.pubrepo.php', 'Module_Pubrepo', ''
);

Now I'm going to work on the security issue with the op modassigntime.

edit: the function modassigntime in test.php just needs a .'<input type="hidden" name="authentic_request" value="'.Authenticate::getSignature().'" />' shoved into the form at about line 1182.
Message modified by : Timje on : 26/10/2010 15:41
 
<< Back