minik2 updated, shows blank page for portfolio and proximity subtemplates
- Posted by tim (7) Offline
Sure:
campgroundvfs.nl/index.php/2012-11-29-11-19-55/tutorials2
site is in the dutch language.
from the base: campgroundvfs.nl
you can see the homepage using the simple template, working correctly.
the "nieuws" tab in the menu (=news in the dutch language), contains the agenda, and the 3 seperate pages, each using a new instance of the module.
i have set the following:
Tutorials = module1 with simple template (working)
nieuwtjes (=news) = module2 with proximity template (not working)
missie verslagen (=mission reports) = module3 with portfolio template (not working)
changing any module to the simple template fixes the page.
changing any module to either proximity or portfolio kills the page.
11 years 11 months ago #7
by tim
campgroundvfs.nl/index.php/2012-11-29-11-19-55/tutorials2
site is in the dutch language.
from the base: campgroundvfs.nl
you can see the homepage using the simple template, working correctly.
the "nieuws" tab in the menu (=news in the dutch language), contains the agenda, and the 3 seperate pages, each using a new instance of the module.
i have set the following:
Tutorials = module1 with simple template (working)
nieuwtjes (=news) = module2 with proximity template (not working)
missie verslagen (=mission reports) = module3 with portfolio template (not working)
changing any module to the simple template fixes the page.
changing any module to either proximity or portfolio kills the page.
Please Log in or Create an account to join the conversation.
- Posted by tim (7) Offline
Been experimenting with it. I'm getting closer . In the default.php file in the portfolio folder:
line 28:<img src="<?php echo resizeImageHelper::getResizedImage('/'.$item->image, $tmbWidth, $tmbHeight, $option); ?>" alt="<?php echo $item->title; ?>" style="height:<?php echo $tmbHeight; ?>px; width:<?php echo $tmbWidth; ?>px" />
change to:<img src="" alt="<?php echo $item->title; ?>" style="height:<?php echo $tmbHeight; ?>px; width:<?php echo $tmbWidth; ?>px" />
and the page starts working again. so there is something going wrong in the
<?php echo resizeImageHelper::getResizedImage('/'.$item->image, $tmbWidth, $tmbHeight, $option); ?>
edit:
Ok, i managed to get some php fatal error reporting. It seems the "resizeImageHelper class" is not found.
11 years 11 months ago #8
by tim
line 28:<img src="<?php echo resizeImageHelper::getResizedImage('/'.$item->image, $tmbWidth, $tmbHeight, $option); ?>" alt="<?php echo $item->title; ?>" style="height:<?php echo $tmbHeight; ?>px; width:<?php echo $tmbWidth; ?>px" />
change to:<img src="" alt="<?php echo $item->title; ?>" style="height:<?php echo $tmbHeight; ?>px; width:<?php echo $tmbWidth; ?>px" />
and the page starts working again. so there is something going wrong in the
<?php echo resizeImageHelper::getResizedImage('/'.$item->image, $tmbWidth, $tmbHeight, $option); ?>
edit:
Ok, i managed to get some php fatal error reporting. It seems the "resizeImageHelper class" is not found.
Please Log in or Create an account to join the conversation.
- Posted by erwinschro (1034) Offline
Hi
Regarding the fatal error, could you confirm if this file is there?
/modules/mod_minik2/image.php
11 years 11 months ago #9
by erwinschro
Regarding the fatal error, could you confirm if this file is there?
/modules/mod_minik2/image.php
Please Log in or Create an account to join the conversation.
- Posted by tim (7) Offline
- Posted by erwinschro (1034) Offline
Mmm weird....the resizeImageHelper class should be found then.
Could you open /modules/mod_minik2/mod_minik2.php and see if this line is there (about line 20)
If it's there then check if this class is in there
If all are in place then the error shown up is really really weird....
Let us know then
11 years 11 months ago #11
by erwinschro
Could you open /modules/mod_minik2/mod_minik2.php and see if this line is there (about line 20)
require_once(dirname(__FILE__).DS.'image.php');
If it's there then check if this class is in there
class resizeImageHelper {
...
}
If all are in place then the error shown up is really really weird....
Let us know then
Please Log in or Create an account to join the conversation.
- Posted by tim (7) Offline
ok, we nailed it. The require_once line was not there. adding it fixed the page (although not completly yet). So probably, this file did not get updated. I re-enabled all writing permissions for the mod_minik2 folder, en did the update again. That worked. The line is now there and de page is working again.
2 smaller problems turned up, wich i took the liberty of solving.
Firstly, the proximity template causes a mootool/jquery conflict. The jquery in my menus do not work if i select the proximity template. This can be solved by changing proximity.js
line6 :
$(function() {
change to:
$(function($) {
secondly, the images aren't showing up. The generated path in the templates is done with this line:
(default.php from the <<templatename>> folder)
<img src="<?php echo resizeImageHelper::getResizedImage('/'.$item->image, $tmbWidth, $tmbHeight, $option); ?>" alt="<?php echo $item->title; ?>" style="height:<?php echo $tmbHeight; ?>px; width:<?php echo $tmbWidth; ?>px" />
the extra '/'. at the beginning of the path, causes a double slash in the generated imagepath
example:
//media/k2/items/cache/e44a6f32e15cb53ee479b2697e759e2e_XS.jpg
The double // at the start should be a single /
removing the '/'. from the template fixes the problem. (at least in my case)
This worked for me!. Problem solved.
11 years 11 months ago #12
by tim
2 smaller problems turned up, wich i took the liberty of solving.
Firstly, the proximity template causes a mootool/jquery conflict. The jquery in my menus do not work if i select the proximity template. This can be solved by changing proximity.js
line6 :
$(function() {
change to:
$(function($) {
secondly, the images aren't showing up. The generated path in the templates is done with this line:
(default.php from the <<templatename>> folder)
<img src="<?php echo resizeImageHelper::getResizedImage('/'.$item->image, $tmbWidth, $tmbHeight, $option); ?>" alt="<?php echo $item->title; ?>" style="height:<?php echo $tmbHeight; ?>px; width:<?php echo $tmbWidth; ?>px" />
the extra '/'. at the beginning of the path, causes a double slash in the generated imagepath
example:
//media/k2/items/cache/e44a6f32e15cb53ee479b2697e759e2e_XS.jpg
The double // at the start should be a single /
removing the '/'. from the template fixes the problem. (at least in my case)
This worked for me!. Problem solved.
Please Log in or Create an account to join the conversation.