osCmax v2.5 User Manual
Results 1 to 5 of 5

OSMAX Problem

This is a discussion on OSMAX Problem within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Hi, I just installed osmax i downloaded from theis site. Everything went fine and i used the osC / template ...

      
  1. #1
    New Member
    Join Date
    Jan 2005
    Posts
    13
    Rep Power
    0


    Default OSMAX Problem

    Hi,
    I just installed osmax i downloaded from theis site. Everything went fine and i used the osC/ template with some basic mods i made. After around a hour it jumped back to the aabox template so i added the "common_top_bts.php" file again and changed it back to the osC again.

    I looked around and it says you to change template switching allowed in my store. I changed it to false and now get this message:

    Warning: main(templates/DIR_WS_TEMPLATES/main_page.tpl.php): failed to open stream: No such file or directory in /home/girlz/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/girlz/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/girlz/public_html/catalog/index.php on line 159


    Any ideas what im doing wrong. Its my firstattempt with anything so please dont shout at me if its something stupid

  2. #2
    osCMax Developer

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


    Default RE: OSMAX Problem

    Hi, the first red flag I see is 'It jumped back to the aabox template'

    This cannot happen unless you changed something. It simply will not switch on its own. Did you change the template used to the osC template in the admin under configuration? If not, most likely your session expired and that is why it 'jumped' back to the aabox template.
    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

  3. #3
    New Member
    Join Date
    Jan 2005
    Posts
    13
    Rep Power
    0


    Default RE: OSMAX Problem

    I just sort of worked out that i hade to change the default option in the admin area from aabox to osC/. I then changed Template Switching Allowed to "false" and then i started getting the messages
    Regards
    Lee

  4. #4
    osCMax Developer

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


    Default RE: OSMAX Problem

    I just confirmed that there is a problem with the template switching option in the admin. It causes the error. As a workaround, turn template switching back on and remove the code in main_page.tpl.php:

    Code:
    <?php
    // include i.e. template switcher in every template
    if(file_exists(DIR_WS_TEMPLATES_BASE . 'common_top_bts.php')) require(DIR_WS_TEMPLATES_BASE . 'common_top_bts.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

  5. #5
    osCMax Developer

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


    Default And the fix is...

    To fix this, edit line 540 in /includes/application_top.php:

    Find this:
    Code:
      $tplDir = DIR_WS_TEMPLATES_BASE . DIR_WS_TEMPLATES;
    and change to:

    Code:
      $tplDir = DIR_WS_TEMPLATES_BASE . DIR_WS_TEMPLATES_DEFAULT;
    That will fix the issue, and allow the correct use of the template switching toggle in the admin.
    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

Similar Threads

  1. upgrading osmax
    By wptech in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 09-26-2005, 02:07 PM
  2. is AAP V1.2 contribution compatible with osmax
    By Christy in forum osCmax v1.7 Discussion
    Replies: 14
    Last Post: 02-12-2005, 06:26 PM
  3. How about oscommerce.qsl and osmax.sql ?
    By doumawis in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 02-05-2005, 03:41 PM
  4. PayPal IPN in osMax 1.7
    By bleu in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 01-10-2005, 11:28 PM

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
  •