osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


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

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-11-2005, 04:17 PM
New Member
 
Join Date: Jan 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
leeb
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 01-11-2005, 04:25 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,436
Thanks: 73
Thanked 334 Times in 313 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 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 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!
  #3  
Old 01-11-2005, 04:33 PM
New Member
 
Join Date: Jan 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
leeb
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-15-2005, 07:37 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,436
Thanks: 73
Thanked 334 Times in 313 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 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 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!
  #5  
Old 01-15-2005, 07:51 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,436
Thanks: 73
Thanked 334 Times in 313 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 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 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!
Sponsored Links
Advertisement
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
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


All times are GMT -8. The time now is 12:36 AM.


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