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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| |
|
#2
| ||||
| ||||
| 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
|
|
#3
| |||
| |||
| 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
| ||||
| ||||
| 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
|
|
#5
| ||||
| ||||
| To fix this, edit line 540 in /includes/application_top.php: Find this: Code: $tplDir = DIR_WS_TEMPLATES_BASE . DIR_WS_TEMPLATES; Code: $tplDir = DIR_WS_TEMPLATES_BASE . DIR_WS_TEMPLATES_DEFAULT;
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| upgrading osmax | wptech | osCMax v2 Customization/Mods | 0 | 09-26-2005 02:07 PM |
| is AAP V1.2 contribution compatible with osmax | Christy | osCMax v1.7 Discussion | 14 | 02-12-2005 06:26 PM |
| How about oscommerce.qsl and osmax.sql ? | doumawis | osCMax v1.7 Installation | 0 | 02-05-2005 03:41 PM |
| PayPal IPN in osMax 1.7 | bleu | osCMax v1.7 Discussion | 2 | 01-10-2005 11:28 PM |