Page 1 of 1

Module displays nothing but "Array"

Posted: 28 Oct 2008, 00:07
by dimas
hi,

i've just upgraded my gallery from 1.x to 2.0.2 and my Random Image Module from (i forgot which version) to 1.8.2.

and just as the title said the module displays nothing but "Array". i've tried playing with the module settings without any results.

has anyone experiencing the same problem.

i'm on Joomla 1.5.7 btw.

thx.

dimas

Re: Module displays nothing but "Array"

Posted: 28 Oct 2008, 21:53
by Jan
Hi, try to updgrade to 1.9.9 alfa...

Jan

Re: Module displays nothing but "Array"

Posted: 29 Oct 2008, 14:12
by dimas
thanks for replying Jan but can you give me the link to Random Image Module version 1.9.9 Alpha?
i've searched your site only to find the Phoca Gallery Plugin Version 1.9.9 Alpha. do i need this plugin to activate the module properly?

Dimas

Re: Module displays nothing but "Array"

Posted: 29 Oct 2008, 18:35
by dimas
FOUND A SOLUTION!!

after banging my head to the wall for several hours i noticed that anything i wrote on tmp/default.php was not shown to the output. then i realized that the output's div has the id of "phocagallery-module" BUT the code's div has the id of "phocagallery-module-ri". i really don't know where is this coming from.

so i change this.. (the last lines of mod_phocagallery_random_image.php)

Code: Select all

require(JModuleHelper::getLayoutPath('mod_phocagallery_random_image'));
?>


to this..

Code: Select all

?>
<div id ="phocagallery-module-ri" style="text-align:center;<?php echo $pgWidth;?>">
<center><?php
foreach ($output as $value) {
	echo $value;
}
?></center>
</div>
<div style="clear:both"></div>
the code is copied from default.php

i'm really glad i found the solution but i will still following this thread though. i'm really curious about what is the cause of this bug.

hope this helps someone out there.

Dimas

Re: Module displays nothing but "Array"

Posted: 30 Oct 2008, 01:10
by Jan
I am sorry for misunderstanding with the module (plugin) Module for version 2 should be done in 14 days...

no idea why:
require(JModuleHelper::getLayoutPath('mod_phocagallery_random_image'));

doesn't work ???

Jan

Re: Module displays nothing but "Array"

Posted: 31 Oct 2008, 07:57
by dimas
hmm.. never tried it. but it's okay. got the module working for now.

nice product Jan.

looking forward for the next version

cheers

Dimas

Re: Module displays nothing but "Array"

Posted: 31 Oct 2008, 18:22
by Jan
ok