1. speerwolf
  2. Commercial Templates
  3. Friday, 05 December 2014
  4.  Subscribe via email
Hello,

I bought the Calibre template and it´s a very nice template.
Now i installed Phoca Guestbook, and i have serious problem.
When i want to add a new post to the guestbook it gives out this problem:

Fatal error: Call to undefined method JDocumentError::countModules() in /www/htdocs/w00bf5a6/http://rohrhof-jakob.de/templates/j51_calibra/php/config.php on line 6

here is the domain of the site, if you want to test it on your own:
http://rohrhof-jakob.jakob-rohrhof.de/index.php/gaestebuch

Can somebody help me please? :(
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Checking my error log, I see the same issue, using Calibra template.

PHP Fatal error: Call to undefined method JDocumentError::countModules()

I tried your fix, but I get a blank page now (so put back).

I'm not using a Phoca module/pluging...
What is the solution?
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
No results sorry. I wrote you an email about that issue.
Thank you.
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you

We have been trying to edit on of your core template files in your template manager however no template files are been showing when we go in to the editor of your Joomla administration.

In your templates config.php (../templates/j51_calibra/php/config.php) could you try replacing all '$this' with '$doc'...


<?php


//COUNT MODULES IN TOP-1 - DECIDE WIDTH - COLLAPSE IF NECESSARY
$top1_counted = 0;
if ($doc->countModules('top-1a')) $top1_counted++;
if ($doc->countModules('top-1b')) $top1_counted++;
if ($doc->countModules('top-1c')) $top1_counted++;
if ($doc->countModules('top-1d')) $top1_counted++;
if ($doc->countModules('top-1e')) $top1_counted++;
if ($doc->countModules('top-1f')) $top1_counted++;
if ( $top1_counted == 6 ) {
$top1_width = '16.66%';}
else if ( $top1_counted == 5 ) {
$top1_width = '20%';
} else if ($top1_counted == 4) {
$top1_width = '25%';
} else if ($top1_counted == 3) {
$top1_width = '33.3%';
} else if ($top1_counted == 2) {
$top1_width = '50%';
} else if ($top1_counted == 1) {
$top1_width = '100%';
}

//COUNT MODULES IN TOP-2 - DECIDE WIDTH - COLLAPSE IF NECESSARY
$top2_counted = 0;
if ($doc->countModules('top-2a')) $top2_counted++;
if ($doc->countModules('top-2b')) $top2_counted++;
if ($doc->countModules('top-2c')) $top2_counted++;
if ($doc->countModules('top-2d')) $top2_counted++;
if ($doc->countModules('top-2e')) $top2_counted++;
if ($doc->countModules('top-2f')) $top2_counted++;
if ( $top2_counted == 6 ) {
$top2_width = '16.66%';
}
else if ( $top2_counted == 5 ) {
$top2_width = '20%';
} else if ($top2_counted == 4) {
$top2_width = '25%';
} else if ($top2_counted == 3) {
$top2_width = '33.3%';
} else if ($top2_counted == 2) {
$top2_width = '50%';
} else if ($top2_counted == 1) {
$top2_width = '100%';
}

//COUNT MODULES IN TOP-3 - DECIDE WIDTH - COLLAPSE IF NECESSARY
$top3_counted = 0;
if ($doc->countModules('top-3a')) $top3_counted++;
if ($doc->countModules('top-3b')) $top3_counted++;
if ($doc->countModules('top-3c')) $top3_counted++;
if ($doc->countModules('top-3d')) $top3_counted++;
if ($doc->countModules('top-3e')) $top3_counted++;
if ($doc->countModules('top-3f')) $top3_counted++;
if ( $top3_counted == 6 ) {
$top3_width = '16.66%';
}
else if ( $top3_counted == 5 ) {
$top3_width = '20%';
} else if ($top3_counted == 4) {
$top3_width = '25%';
} else if ($top3_counted == 3) {
$top3_width = '33.3%';
} else if ($top3_counted == 2) {
$top3_width = '50%';
} else if ($top3_counted == 1) {
$top3_width = '100%';
}

//COUNT MODULES IN CONTENTTOP - DECIDE WIDTH - COLLAPSE IF NECESSARY
$contenttop_counted = 0;
if ($doc->countModules('contenttop-a')) $contenttop_counted++;
if ($doc->countModules('contenttop-b')) $contenttop_counted++;
if ($doc->countModules('contenttop-c')) $contenttop_counted++;
if ( $contenttop_counted == 3 ) {
$contenttop_width = '33.3%';
}
elseif ( $contenttop_counted == 2 ) {
$contenttop_width = '49.9%';
} else if ($contenttop_counted == 1) {
$contenttop_width = '100%';
}

//COUNT MODULES IN CONTENTBOTTOM - DECIDE WIDTH - COLLAPSE IF NECESSARY
$contentbottom_counted = 0;
if ($doc->countModules('contentbottom-a')) $contentbottom_counted++;
if ($doc->countModules('contentbottom-b')) $contentbottom_counted++;
if ($doc->countModules('contentbottom-c')) $contentbottom_counted++;
if ( $contentbottom_counted == 3 ) {
$contentbottom_width = '33.3%';
}
elseif ( $contentbottom_counted == 2 ) {
$contentbottom_width = '49.9%';
} else if ($contentbottom_counted == 1) {
$contentbottom_width = '100%';
}


//COUNT MODULES IN BOTTOM-1 - DECIDE WIDTH - COLLAPSE IF NECESSARY
$bottom1_counted = 0;
if ($doc->countModules('bottom-1a')) $bottom1_counted++;
if ($doc->countModules('bottom-1b')) $bottom1_counted++;
if ($doc->countModules('bottom-1c')) $bottom1_counted++;
if ($doc->countModules('bottom-1d')) $bottom1_counted++;
if ($doc->countModules('bottom-1e')) $bottom1_counted++;
if ($doc->countModules('bottom-1f')) $bottom1_counted++;
if ( $bottom1_counted == 6 ) {
$bottom1_width = '16.66%';
}
else if ( $bottom1_counted == 5 ) {
$bottom1_width = '20%';
} else if ($bottom1_counted == 4) {
$bottom1_width = '25%';
} else if ($bottom1_counted == 3) {
$bottom1_width = '33.3%';
} else if ($bottom1_counted == 2) {
$bottom1_width = '50%';
} else if ($bottom1_counted == 1) {
$bottom1_width = '100%';
}

//COUNT MODULES IN BOTTOM-2 - DECIDE WIDTH - COLLAPSE IF NECESSARY
$bottom2_counted = 0;
if ($doc->countModules('bottom-2a')) $bottom2_counted++;
if ($doc->countModules('bottom-2b')) $bottom2_counted++;
if ($doc->countModules('bottom-2c')) $bottom2_counted++;
if ($doc->countModules('bottom-2d')) $bottom2_counted++;
if ($doc->countModules('bottom-2e')) $bottom2_counted++;
if ($doc->countModules('bottom-2f')) $bottom2_counted++;
if ( $bottom2_counted == 6 ) {
$bottom2_width = '16.66%';
}
else if ( $bottom2_counted == 5 ) {
$bottom2_width = '20%';
} else if ($bottom2_counted == 4) {
$bottom2_width = '25%';
} else if ($bottom2_counted == 3) {
$bottom2_width = '33.3%';
} else if ($bottom2_counted == 2) {
$bottom2_width = '50%';
} else if ($bottom2_counted == 1) {
$bottom2_width = '100%';
}

//COUNT MODULES IN BASE-1 - DECIDE WIDTH - COLLAPSE IF NECESSARY
$base1_counted = 0;
if ($doc->countModules('base-1a')) $base1_counted++;
if ($doc->countModules('base-1b')) $base1_counted++;
if ($doc->countModules('base-1c')) $base1_counted++;
if ($doc->countModules('base-1d')) $base1_counted++;
if ($doc->countModules('base-1e')) $base1_counted++;
if ($doc->countModules('base-1f')) $base1_counted++;
if ( $base1_counted == 6 ) {
$base1_width = '16.66%';
}
else if ( $base1_counted == 5 ) {
$base1_width = '20%';
} else if ($base1_counted == 4) {
$base1_width = '25%';
} else if ($base1_counted == 3) {
$base1_width = '33.3%';
} else if ($base1_counted == 2) {
$base1_width = '50%';
} else if ($base1_counted == 1) {
$base1_width = '100%';
}

//COUNT MODULES IN BASE-2 - DECIDE WIDTH - COLLAPSE IF NECESSARY
$base2_counted = 0;
if ($doc->countModules('base-2a')) $base2_counted++;
if ($doc->countModules('base-2b')) $base2_counted++;
if ($doc->countModules('base-2c')) $base2_counted++;
if ($doc->countModules('base-2d')) $base2_counted++;
if ($doc->countModules('base-2e')) $base2_counted++;
if ($doc->countModules('base-2f')) $base2_counted++;
if ( $base2_counted == 6 ) {
$base2_width = '16.66%';
}
else if ( $base2_counted == 5 ) {
$base2_width = '20%';
} else if ($base2_counted == 4) {
$base2_width = '25%';
} else if ($base2_counted == 3) {
$base2_width = '33.3%';
} else if ($base2_counted == 2) {
$base2_width = '50%';
} else if ($base2_counted == 1) {
$base2_width = '100%';
}
?>


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok