Forum Support

Shape 5
March 28, 2024, 11:04:57 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Only "head" part of template loaded - Joomfish  (Read 8802 times)
Actlas
Jr. Member
**
Offline Offline

Posts: 32



« on: January 18, 2013, 04:17:40 AM »

Everything is fine but once I install joomfish 2.5 only the part <jdoc:include type="head"> is loaded of shape5 templates such as "construction" and "corporate response" which results in only one a piece of the top of the site being loaded.

Any ideas? The Photofolio siteshaper template on the other hand seems to work ok.
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: January 18, 2013, 08:30:14 AM »

Hello,

That would be an issue with the Joomfish component, it sounds like it's altering the default layout of the template. A template can't control the functions of another extension.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Actlas
Jr. Member
**
Offline Offline

Posts: 32



« Reply #2 on: January 19, 2013, 07:09:26 AM »

I understand it could be due to joomfish but it works with the photofolio template and joomfish should be pretty stable now.

The error I get is:
Fatal error: Cannot redeclare class JMenuSite in C:\xampp\htdocs\construction-ss\includes\menu.php on line 136
Logged
Actlas
Jr. Member
**
Offline Offline

Posts: 32



« Reply #3 on: January 19, 2013, 07:38:10 AM »

https://github.com/JoomFish/jf-future/issues/101  -->

I found out this is an error that can only be fixed on shape5 side, they have hardcoded file includes everywhere (joomla has a loader for this purpose).

Actuall error is in templates/corporate_response/vertex/s5flex_menu/helpers.php, line 41 >

change

$path = $info->path.'/includes/menu.php';
if (file_exists($path)) {
require_once $path;
// Create a JPathway object
$classname  = 'JMenu'.ucfirst($client);

to

$path = $info->path.'/includes/menu.php';
$classname  = 'JMenu'.ucfirst($client);
if (file_exists($path)) {
if (!class_exists($classname)){
     require_once $path;
}
// Create a JPathway object

Could you please check your coding? This change fixes it indeed.
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #4 on: January 19, 2013, 08:56:26 AM »

Hello,

The re-written function isn't doing anything different other than an extra if statement, which isn't necessary. The statement is simply calling menu.php a very common practice in Joomlal extensions. This is not a bug in our product, we have no other members reporting any other issues of this kind. As a suggestion if you are using Joomla 1.7 or higher I would simply use the default language manager that comes with Joomla, it does the same thing as Joomfish and it's native to he CMS.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Actlas
Jr. Member
**
Offline Offline

Posts: 32



« Reply #5 on: January 19, 2013, 01:31:06 PM »

I already posted that someone reports the same error here: https://github.com/JoomFish/jf-future/issues/101
We are using Joomla 2.5.8 but Joomfish is much easier to maintain in our opinion and others think so too.

It seems the added statement fixes the template.
A different ambiguous error still shows up with the shape5 templates after that change though.
-->
https://github.com/JoomFish/jf-future/issues/126#issuecomment-12457012

It doesn't occur with the default beez2 template...

Perhaps you would know how one can fix this?
Logged
Actlas
Jr. Member
**
Offline Offline

Posts: 32



« Reply #6 on: January 20, 2013, 06:57:11 AM »

I would suggest shape5 moderators take a look at the issue.

The JoomFish people already helped me out and I modified the shape5 code a little bit.

You can find the topic here: https://github.com/JoomFish/jf-future/issues/126
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.