This is a discussion on Blank default page after did the security patch within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Hi i downloaded the MS2 security patch for OCSDox and applied to my new store which is OSCDOX v2 RC2. ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi i downloaded the MS2 security patch for OCSDox and applied to my new store which is OSCDOX v2 RC2. After copied all the files and executed the SQL script file, i accessed my web site and i got a blank page ! Nothing was displayed! But i can access to my admin panel without any issues, all the configuration operations are there. Please HELP!! thanks rgds.... |
|
#2
| ||||
| ||||
| You made a mistake somewhere. Check your error logs...
__________________ 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. |
|
#3
| |||
| |||
| Hi Michael, may i know where to check the error logs ? I host my web site in a hosting company that use Cpanel...pls advice, thanks |
|
#4
| ||||
| ||||
| In cpanel there is a link called 'Error log' Look around for it, and click it. You should see a list of errors. Look for errors from 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. |
|
#5
| |||
| |||
| Hi Michael, i checked the error log, there was one line of PHP error as follows : [Sun Mar 26 01:46:03 2006] [error] PHP Parse error: parse error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxx/public_html/xyx/catalog/includes/classes/currencies.php on line 91 Before i applied the patch, i applied the contribition calls "easy call for price" which i downloaded from OSCDOX web site, it asked me to modify the below in the currencies.php file : FIND: Code: function display_price($products_price, $products_tax, $quantity = 1) {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
} Code: function display_price($products_price, $products_tax, $quantity = 1) {
// BOF: MOD - EASY CALL FOR PRICE v1.0
// return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
define ('CALL_FOR_PRICE_VALUE', 0);
// If you sell products for $0.00 and want to display "Call for Price!" for other products, set their price and the CALL_FOR_PRICE_VALUE to -1.
if ($products_price > CALL_FOR_PRICE_VALUE){
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
} else {
define ('TEXT_CALL_FOR_PRICE', 'TEXT_CALL_FOR_PRICE');
// You can set CALL_FOR_PRICE_TEXT to anything you want. Its style is determined by the page it is displayed on. Changes made here will be visible throughout your site.
return TEXT_CALL_FOR_PRICE;
// BOF: MOD - EASY CALL FOR PRICE v1.0
} pls advice, thanks |
|
#6
| ||||
| ||||
| You have a syntax error. Missing a closing brace. Use this instead: Code: function display_price($products_price, $products_tax, $quantity = 1) {
// BOF: MOD - EASY CALL FOR PRICE v1.0
// return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
define ('CALL_FOR_PRICE_VALUE', 0);
// If you sell products for $0.00 and want to display "Call for Price!" for other products, set their price and the CALL_FOR_PRICE_VALUE to -1.
if ($products_price > CALL_FOR_PRICE_VALUE){
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
} else {
define ('TEXT_CALL_FOR_PRICE', 'TEXT_CALL_FOR_PRICE');
// You can set CALL_FOR_PRICE_TEXT to anything you want. Its style is determined by the page it is displayed on. Changes made here will be visible throughout your site.
return TEXT_CALL_FOR_PRICE;
// BOF: MOD - EASY CALL FOR PRICE v1.0
}
}
__________________ 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. |
|
#7
| |||
| |||
| Hi Michael many thanks. it works now.... |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| osCMax 2.0RC2 Security Patch/Update 051112 | wilde-uk | osCMax v2 Installation issues | 5 | 04-12-2006 07:45 PM |
| Security Patch osCMax 2.0RC2 | warrenthewindmill | osCMax v1.7 Discussion | 2 | 12-04-2005 10:50 AM |
| osCMax 2.0RC2 Security Patch/Update 051112 | michael_s | osCMax v2 Announcements | 0 | 11-27-2005 10:12 AM |
| Re: Security Patch | loba | osCMax v1.7 Discussion | 13 | 03-25-2005 06:01 AM |
| Security patch killed pop-up function | bjrafferty | osCMax v1.7 Discussion | 2 | 03-24-2005 01:13 PM |