osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

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 ...

      
  1. #1
    New Member
    Join Date
    Jan 2004
    Posts
    26
    Rep Power
    0


    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!

  2. #2
    New Member
    Join Date
    Jan 2004
    Posts
    26
    Rep Power
    0


    Default

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

    what does that mean?

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    New Member
    Join Date
    Jan 2004
    Posts
    26
    Rep Power
    0


    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!

  5. #5
    Lurker
    Join Date
    Jun 2004
    Posts
    3
    Rep Power
    0


    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

  6. #6
    Anonymous
    Guest


    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.

  7. #7
    Anonymous
    Guest


    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.

  8. #8
    Lurker
    Join Date
    Jun 2004
    Posts
    3
    Rep Power
    0


    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.

  9. #9
    Lurker
    Join Date
    Jun 2004
    Posts
    3
    Rep Power
    0


    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.

  10. #10
    Lurker
    Join Date
    Mar 2004
    Posts
    4
    Rep Power
    0


    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.

Page 1 of 2 12 LastLast

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •