Home arrow Forum Unable to load the 'main' template error
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 09, 2009, 04:38:40 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.1.x (Moderators: -Wolverine, kai920)
| | | |-+  Unable to load the 'main' template error
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Unable to load the 'main' template error  (Read 2269 times)
Montty
Joomla Newbie
*

Karma: +2/-1
Offline Offline

Posts: 22



View Profile WWW
Unable to load the 'main' template error
« on: February 21, 2006, 06:51:25 PM »

Hello,

Trying to set forum options in the admin section of SMF (i.e. enable the "Use database driven sessions") I get the dreaded "Unable to load the 'main' template" error.

After searching and following advice found on the SMF forum, nothing do. As suggeted on the SMF forum I have checked that all files in my online forum folder are identical to the one in the smf package and they are (except for the one pactched by the jsmf bridge component but this is normal). No files seem to be missing either.
Authorisation of the files seem to be OK to, either 666 or 755 and I can change SMF/themes happily too.

I must admit that I am a bit lost. This problem has occured since my latest upgrade (from Joomla1.03->1.07, SMF1.1RC1->1.1RC2, J-SMF1.02a->1.1b).
I do not know if this issue belongs to this forum or to the SMF forum though, please accept my apologies if not, but any help to cast some light on it or any clues of where to look to sort it out would be greatly appreciated.

My install:
Joomla v1.07
SMF 1.1 RC2
JSMF 1.1 beta
Custom template (Joomla + SMF)

Thanks in advance for your help.
Logged

-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Unable to load the 'main' template error
« Reply #1 on: February 22, 2006, 08:43:15 AM »

I have seen this once or twice on my site in the past year however a simple refresh always cleared it up.  Any http or other error msgs that might be related?
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Montty
Joomla Newbie
*

Karma: +2/-1
Offline Offline

Posts: 22



View Profile WWW
Re: Unable to load the 'main' template error
« Reply #2 on: February 22, 2006, 05:42:51 PM »

Thanks -Wolverine for helping me resolve this issue.

Quote
Any http or other error msgs that might be related?
Here are the errors reported by the SMF error log facilty Session: 327bb090883a3cc29f3c49728f0d2930
Link: http://www.mydomain.com/core/forum/index.php?option=com_smf&Itemid=34&action=serversettings2&sa=other
Error: Unable to load the 'main' template.

Link: http://www.mydomain.com/core/forum/index.php?option=com_smf&Itemid=34&action=serversettings2&sa=other
Error: 8: Undefined index: other_configuration
File: /home/mydomain/public_html/core/forum/Sources/ManageServer.php
Line: 365

Link: http://www.mydomain.com/core/forum/index.php?option=com_smf&Itemid=34&action=viewErrorLog;desc
Error: 8: Undefined index: current_board
File: /home/mydomain/public_html/core/forum/Themes/default/Errors.template.php (eval?)
Line: 229 (This one is strange indeed as Errors.template.php has only 149 lines - what am I missing!!)

Also after digging the SMF forum further, I found this post which might be of interests.

In my case, after logging out, accessing the forum directly http://www.mydomain.com/forum/ my avatar appears and the forum reports that I am still logged in. Shocked
Trying to logout at this point (via the SMF logout button) is impossible. Clicking on the SMF admin button, I get the login page requesting my password – entering the password, I get another error message: “Session verification failed. Please try logging out and back in again, and then try again”.
Now, re-accessing the forum normally wrapped in joomla via j-smf and trying to login via the forum login box is impossible. The only way I can login is via the mod_smf_login 1.3.2 available on the other pages.
After loging in, I can access the SMF admin but get stuck with the “unable to load the 'main' template” error, as highlighted in my previous post.

The only extensions I use in my installation are as follow:
mod_smf_recent_topics_1_6_2
mod_smf_login_1.3.2
mod_exmenu_1.0.1 (with son-of-suckerfish-horizontal-1.0.1)
mambo-phpShop 1.2 stable 3 (not published)

I doubt the following can be of any relevance but just in case - all online SMF files have been checked against the upgrade package (smf_1-1-rc2_upgrade.zip) not the full install package.
 
I am again very grateful to you for looking into this – sorry for such a long post.
« Last Edit: February 23, 2006, 11:54:56 AM by Montty » Logged

-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Unable to load the 'main' template error
« Reply #3 on: February 23, 2006, 08:37:38 AM »

this is just... wrong.  Clear all you cookies from this site and then try again.  If I had to guess I would say this is a SMF template issue.  But I suppose you are going to tell me you are using the default?   Lips Sealed  If not, switch to the default and try again.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Montty
Joomla Newbie
*

Karma: +2/-1
Offline Offline

Posts: 22



View Profile WWW
Re: Unable to load the 'main' template error
« Reply #4 on: February 23, 2006, 11:50:19 AM »

Thank you for your help and suggestions -Wolverine

After further unsuccessful trials and errors including your advice of using the default templates, clearing all cookies, etc... I decided to unpatch the mambo index.php, SMF index.php and Sources/Subs-Post.php file from the bridge page.

Then without re-patching, I launched the forum directly (http://www.mydomain.com/forum/), logged in, changed some settings in SMF “Server Settings/Feature Configuration” and click save. This time no complaints and the setting where changed happily.  Smiley

After re-patching, still calling the forum directly, things worked as they should (test done with all SMF theme available in the forum “Themes” directory - including my own). Cool

I then set the Joomla template to “rhuk” and the SMF theme to “SMF Default Theme” but this time called the forum via Joomla, saddly the error is back again Huh

At least this is one step forward. Now I can change the SMF “Server Settings/Feature Configuration” settings by calling the forum directly as  suggested by p9939068's workaround. Still this is clearly shows that there is a problem somewhere which do not appear to be SMF related. Is it at Joomla level or at the bridge level though I haven’t got a clue.

Edit: Last but not least, "Search Engine Friendly URLs" is enabled in the Joomla general settings, could that be a possible culprit?

Any further thoughts would be greatly appreciated.


In the mean time I continue digging.

Thanks again for your continuous help  Smiley
« Last Edit: February 23, 2006, 06:04:22 PM by Montty » Logged

Montty
Joomla Newbie
*

Karma: +2/-1
Offline Offline

Posts: 22



View Profile WWW
Re: Unable to load the 'main' template error
« Reply #5 on: February 23, 2006, 04:41:24 PM »

Quote
“...Now I can change the SMF “Server Settings/Feature Configuration” settings by calling the forum directly...”
Actually not so… After checking this again and again, I noticed that while modifying settings in the forum (called directly) the db is updated accordingly. But when returning to the forum via Joomla the settings shown in the form are different as the one in the DB – like if another table was queried or worst as if the DB was not querried at all – Shocked

I.e.:
forum called directly
Setting to true the option “Enable compressed output” in “Admin/Configuration/Server Settings/Feature Configuration” and then save, DB updated accordingly (1 displayed in the appropriate field), works like a charm.

Now loading the forum via Joomla, opening the page “Admin/Configuration/ Server Settings/Feature Configuration” shows the option “Enable compressed output” as false.

The deeper I go, the more confuse I get – any ideas of why this could happen. Huh

Thanks again in advance for your help.


EDIT: OOOPS after checking into the core it would appear that coincidentaly the “Enable compressed output” option is forced to false by the bridge - Unless this is proved wrong, please don't take any notice of the above.  Lips Sealed
Back to the drawing board  Cheesy
« Last Edit: February 23, 2006, 05:31:00 PM by Montty » Logged

p9939068
Joomla Expert
****

Karma: +18/-5
Offline Offline

Posts: 173


View Profile WWW
Re: Unable to load the 'main' template error
« Reply #6 on: February 23, 2006, 11:39:37 PM »

Hi! glad my little workaround helped someone heh
After some testing i realised this problem to definitely lie with the bridge, and it's not a compilation error, but a runtime one (so to speak).
Whether or not i patch joomla and smf's files in the configuration, so long as i access my forums directly (www.domain.com/smf), there is no problems. There is also no problems if i access it through joomla (ie through index.php?option=com_smf) when it is unpatched, which is understandable.
Some folks at simplemachines.org suggested re-uploading the files in sources and theme, which i tried. Now, i believe it has got something to do with the changes in SMF's RC2, because the problem occured when i upgraded to RC2. I cant be 100% sure though, although i never had this problem when i first upgraded to joomla-smf1.1RC1
What i'm guessing, though, is that the error might be linked to other errors with Gallery and Zoom, and might stem from how joomla-smf interfaces between the joomla and smf..
Hope this helps! Smiley

Rgds, Mike
Logged

-----
Owner of http://mike.simbunch.com
Creator of ParaInvite, AJAX Sandbox, AJAX SMF Polls, Profile URL etc..
Montty
Joomla Newbie
*

Karma: +2/-1
Offline Offline

Posts: 22



View Profile WWW
Re: Unable to load the 'main' template error
« Reply #7 on: February 24, 2006, 01:21:01 PM »

Quote
Whether or not i patch joomla and smf's files in the configuration, so long as i access my forums directly (www.domain.com/smf), there is no problems. There is also no problems if i access it through joomla (ie through index.php?option=com_smf) when it is unpatched, which is understandable.
Exactly the same here, what I find amazing though is that we seem to be the only 2 experiencing the problem.

Quote
Some folks at simplemachines.org suggested re-uploading the files in sources and theme, which i tried. Now, i believe it has got something to do with the changes in SMF's RC2, because the problem occured when i upgraded to RC2
Unfortunately I can't really tell in my case as I did a bulk upgrade of everything. Still with the prior installation Joomla 1.03 + J-SMF 1.02a + SMF RC1 it was running just great.

Quote
What i'm guessing, though, is that the error might be linked to other errors with Gallery and Zoom, and might stem from how joomla-smf interfaces between the joomla and smf..
Afaik, I do not have Gallery and Zoom in my config, I have also removed mambo-phpShop entirely just in case. I have therefore a very straight forward install with almost the latest of everything Joomla, J-SMF, SMF, Joomlahacks-login and Joomlahacks-Recent-topics but the symptoms persist.

Like you and from the result of all the tests I have done, I believe that something is not quite right within the bridging process between Joomla and SMF RC2 - What, where and why though - I haven't got a clue.  Cry

Thanks for the workaround as this will avoid me to downgrade back to SMF RC1 + J-SMF 1.02a Smiley

@-Wolverine, if you think that the problem is important enough to investigate further, please let me know and I will provide you the necessary access.

Thanks again to all
« Last Edit: February 24, 2006, 01:24:05 PM by Montty » Logged

Paul
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 36


View Profile WWW
Re: Unable to load the 'main' template error
« Reply #8 on: February 24, 2006, 08:11:07 PM »

I am having the same problem;

Joomla 1.0.4
SMF RC2
Joomla Bridge 1.1 Beta

I am using the workaround but would appreciate a fix if anyone comes up with one. Smiley
Logged

Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login