Module displays nothing but "Array"

Phoca Gallery modules - modules for Phoca Gallery extension
dimas
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 28 Oct 2008, 00:00

Module displays nothing but "Array"

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Module displays nothing but "Array"

Post by Jan »

Hi, try to updgrade to 1.9.9 alfa...

Jan
If you find Phoca extensions useful, please support the project
dimas
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 28 Oct 2008, 00:00

Re: Module displays nothing but "Array"

Post 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
dimas
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 28 Oct 2008, 00:00

Re: Module displays nothing but "Array"

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Module displays nothing but "Array"

Post 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
If you find Phoca extensions useful, please support the project
dimas
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 28 Oct 2008, 00:00

Re: Module displays nothing but "Array"

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Module displays nothing but "Array"

Post by Jan »

ok
If you find Phoca extensions useful, please support the project
Post Reply