Home arrow Forum
"Template File Not Found!" when using 'wrapped'
  Welcome, Guest. Please login or register.
January 08, 2009, 11:01:12 PM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: "Template File Not Found!" when using 'wrapped' « previous next »
Pages: [1] Go Down Print
Author Topic: "Template File Not Found!" when using 'wrapped'  (Read 5804 times)
Armand
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
"Template File Not Found!" when using 'wrapped'
« on: April 26, 2005, 04:05:32 PM »

I installed according to the readme file and all the checklist points were marked done or installed.

However... when I click the forum link using wrapped mode  i get an error:
Quote
Template File Not Found! Looking for template:zerobarrier

'zerobarrier' is the template I use on my mambo site...

unwrapped mode shows me the forum, but also with some errors:

Quote
Notice: Array to string conversion in *httpdocs\forum\Sources\Subs.php on line 1802

Notice: Undefined offset: 1 in *httpdocs\forum\Sources\Subs.php on line 1804

( I replaced the full path with * in the error msg )

What is going wrong?
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: "Template File Not Found!" when using 'wrapped'
« Reply #1 on: April 26, 2005, 07:45:22 PM »

Armand,

I don't know the answer for your issue. This is the first time I heard about this kind of issue. Did your install went smoothly?
Logged
Armand
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: "Template File Not Found!" when using 'wrapped'
« Reply #2 on: April 27, 2005, 06:50:01 AM »

Install went smoothly, I installed everything according to description and got no errors whatsoever during install.. all checkpoints were marked done/installed and also the SMF package installed without any trouble.

direct access to SMF forum without or with administrator account also works but when using the mambo bridge in wrapped/unwrapped mode it just fails with the two different situations as described in my first post.

the forum is located in a subdirectory of the mambo installation (root directory of my website). I'm using the CB login module, but I don't think that's the problem cause the forum fails even when logged out.

Maybe it's the windows environment in which the website resides?
Win2003 server + IIS + PHP + MySql (+additionale requirements for mambo). Mambo itself works like a charm.

I'm currently researching the problem but I hope some more similar cases will report on the forum so it can be resolved quicker Wink If I find the cause or solution I will post it here.. otherwise I will be checking this forum regularly to check if someone got it fixed Smiley
Logged
Armand
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: "Template File Not Found!" when using 'wrapped'
« Reply #3 on: April 28, 2005, 04:31:32 PM »

ow btw i'm using Mambo 4.5.2.1 ..
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: "Template File Not Found!" when using 'wrapped'
« Reply #4 on: April 29, 2005, 11:42:53 AM »

I only had this tested on Linux and local XP desktop.

Does anyone here on win2k and mos 4.5.2.1 not having a problem or having same issue?
Logged
Armand
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: "Template File Not Found!" when using 'wrapped'
« Reply #5 on: May 02, 2005, 01:36:24 PM »

I fixed the template bug by replacing the following in the mambo index.php template:

replace (near line 223):
Quote
// loads template file
if ( !file_exists( 'templates/'. $cur_template .'/index.php' ) ) {

with

Quote
// loads template file
if ( !file_exists($mosConfig_absolute_path . '/templates/'. $cur_template .'/index.php' ) ) {

the second error still occurs btw
Logged
guilliam
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 15



View Profile WWW
Re: "Template File Not Found!" when using 'wrapped'
« Reply #6 on: June 15, 2005, 11:59:55 AM »

i did what armand has suggested in his fix.. NO luck! still the same error:

Code:
Unable to load the 'main' template.

8: Array to string conversion
File: /home/k4nocorp/public_html/forum/Sources/Subs.php
Line: 1807

8: Undefined offset: 1
File: /home/k4nocorp/public_html/forum/Sources/Subs.php
Line: 1809

======

these exact three errors are in the log everytime there is an action made by a member,.. either sending a private message to someone or posting new messages in the board.

can any one lead a help??

guilliam
Logged

----

smf ported on mamboserver:
www.kanocorp.com
rich
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: "Template File Not Found!" when using 'wrapped'
« Reply #7 on: August 02, 2005, 05:30:59 PM »

I am running a W3k3 box and had the same problem.  I got around it by linking to the forum via a wrapper link.  This may not work for those of you running mambo 4.5.2 as the wrapper isn’t very friendly.

My setup is as follows:
W2k3 server IIS6
Mambo version: 4.5.1b, I had the same problem with version 4.5.2.3
Logged
Pages: [1] Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: "Template File Not Found!" when using 'wrapped' « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved.
TERMS OF USE