osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

BTS 1.2/Max1.5.5 warning & fatal error

This is a discussion on BTS 1.2/Max1.5.5 warning & fatal error within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; I have a clean install of OSCMax 1.5.5 and bts1.2 upgrade with OptionType contrib. The store works fine except when ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 General Mods Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 05-11-2004, 03:55 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
Default BTS 1.2/Max1.5.5 warning & fatal error

I have a clean install of OSCMax 1.5.5 and bts1.2 upgrade with OptionType contrib.

The store works fine except when I complete the install for bts and remove the 3 lines from configure.php than I get this message.

Code:
Warning: main(DIR_WS_TEMPLATESmain_page.tpl.php): failed to open stream: No such file or directory in /home/tourname/public_html/shop/index.php on line 159

Fatal error: main(): Failed opening required 'DIR_WS_TEMPLATESmain_page.tpl.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/townsuk/www/include/sessions') in /home/tourname/public_html/shop/index.php on line 159
First. the settings in admin are fine... change=true and dir=aabox. The sql file is run and I confirmed all files are uploaded (in fact I re-uploaded it).

With the code still in the config file the site displays but when you remove the code all you get is the above error. However, you cannot change the template. no matter what I put in as the default template path in the admin the aabox template shows.

Note the different paths? the home/townsuk is not on my host. I did a search through my site and cant find any /townsuk/ code anywhere. Where is this coming from?


I have been using OSC and OSCMax for a while now and I have never had the problems I have lately. between the option type (though it is my fault trying to install the ms2 version and not the max version) and this template issue I am having a hard time not losing my shorts configging stores for customers.

Please help me to regain my sanity!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 05-11-2004, 04:03 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
Default

Ok I confirmed that it is using the main_page.tpl.php in the root of the templates folder...

what does that mean?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 05-11-2004, 08:02 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

You missed a step. You have not defined DIR_WS_TEMPLATES

It is defined in /includes/configure.bts.php. Either you are missing this file, or you have not defined it in application_top.php
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 05-12-2004, 12:17 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
Default

Well after a long time tearing my hair out it turned out it was missing files... lots and lots of missing and corrupt files.

Got it going now.

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 06-22-2004, 04:35 PM
Lurker
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dreadlock1
Default

Warning: main(templates/main_page.tpl.php): failed to open stream: No such file or directory in /home/ypayret/public_html/katalog/index.php on line 159

Fatal error: main(): Failed opening required 'templates/main_page.tpl.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/public_html/katalog/index.php on line 159

++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++

I get this same error now. I uploaded all files three times (all files in the catalog/includes folder and catalog/templates folder). All files seem to have uploaded properly. This is a clean install with no changes or added features to max 1.5.5 except for this upgrade.
Ive removed my old templates folder, renamed it and put it in the templates folder. (i have no custom templates yet)
Ive executed the BTS.sql
Ive checked application_top: configure_bts is included
Ive checked configure_bts: its there
Ive removed the lines required out of configure.php
Template Switching Allowed : is True
Default Template: aabox

With this upgrade added their is no 'templates/main_page.tpl.php' , however, there is 'templates/common_top_bts.php'

It seems as if this file is not being called even though its defined and included in the right places.

Any suggestions, help or thoughts would be appreciated.

p.s

Second, if i put 'templates/main_page.tpl.php' back, it works except for the template switching. It doesnt show.
When i put in the required (IF statement) the template switcher shows but it is not functional, it stays aabox no matter what i click.

I do understand that this second set-up is not correct but its the only way i can see something.


Thanks in advance for any help and for taking the time to read my post
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 06-22-2004, 05:27 PM
Anonymous
Guest
 
Posts: n/a
Default

I've recently had a lot of problems with ftp. It seems to be dropping a lot of files when uploading MAX, or other packages. I don't know why it's doing it, but I've tried 3 different ftp programs and all of them seem to be dropping files, and causing me problems just like the one's above. I find I have to upload the packages one folder at a time to get them to get all the files through.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 06-22-2004, 05:46 PM
Anonymous
Guest
 
Posts: n/a
Default

I noticed that too. My fourth attempt, i downloaded each file in every folder one at a time, this took awhile, but i thought it was worht it, V1.5, v1.5.5 upgrade, and bts2a upgrade.

I have done many modification to my current web site.

I have ms2.2 heavily moded SEC(linda mcgrath) version with about 20 additional mods I added such as ebay other stuff.
I have ossuite for wholesale which ive been converting ms2.2 mods for it.
Just happend to come accross this and like it because of the template system and its flexibility. I figured i could transfer my current mods to it

Now im not a programmer or tech , I just catch on to things very quickly. So i been able to figure out problems, however, with this one i see its defined and included where it suppose to be and it should work. I was hoping to get this up a going and participate in making it better.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 06-22-2004, 09:30 PM
Lurker
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dreadlock1
Default

Help! Help! Help!

An suggestion for the above post. Are there any files possible missing?

Ive be going in circles and dont see the problem.
application_top
configure_bts
common_top_bts
all seem to be fine, but the same error continues to appear.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 06-22-2004, 09:53 PM
Lurker
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dreadlock1
Default

you wouldnt believe me if i told you. all of a sudden it just started working.

now time to move on w other modifications.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 08-30-2004, 08:28 AM
Lurker
 
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jdawes
Default

is it just really unstable? one minute i was adding categories and then wham.


Warning: main(templates/DIR_WS_TEMPLATES/main_page.tpl.php): failed to open stream: No such file or directory in /home/kids/public_html/catalog/index.php on line 159

Warning: main(templates/DIR_WS_TEMPLATES/main_page.tpl.php): failed to open stream: No such file or directory in /home/kids/public_html/catalog/index.php on line 159

Fatal error: main(): Failed opening required 'templates/DIR_WS_TEMPLATES/main_page.tpl.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kids/public_html/catalog/index.php on line 159


bloody annoying.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Warning: htmlspecialchars() error warrenthewindmill osCommerce 2.2 Modification Help 3 08-13-2006 08:31 AM
fatal error plz help uglyrain osCMax v2 Installation issues 1 11-30-2005 03:28 PM
new max1.7 error danieln osCMax v1.7 Installation 4 10-05-2004 05:13 AM
fatal error litotes osCommerce 2.2 Installation Help 0 03-09-2004 06:57 PM
Installation problems (fatal error and warning) Martin_J osCommerce 2.2 Installation Help 1 02-04-2004 06:27 AM


All times are GMT -8. The time now is 11:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax