osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Blank default page after did the security patch

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-23-2006, 02:23 AM
New Member
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
alphaque
Default Blank default page after did the security patch

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....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-23-2006, 06:58 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,247
Thanks: 66
Thanked 294 Times in 280 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: Blank default page after did the security patch

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-24-2006, 02:41 AM
New Member
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
alphaque
Default RE: Blank default page after did the security patch

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-24-2006, 04:26 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,247
Thanks: 66
Thanked 294 Times in 280 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: Blank default page after did the security patch

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-25-2006, 11:40 PM
New Member
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
alphaque
Default RE: Blank default page after did the security patch

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);
    }
REPLACE WITH:
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
    }
I believe that caused the currencies.php problem when i later applied the security patches. Please advice how could i modify the currencies.php to make my web site works again without affecting the contribution and the security patches ?

pls advice, thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-26-2006, 08:27 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,247
Thanks: 66
Thanked 294 Times in 280 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: Blank default page after did the security patch

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-27-2006, 02:35 AM
New Member
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
alphaque
Default RE: Blank default page after did the security patch

Hi Michael

many thanks. it works now....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
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


All times are GMT -8. The time now is 09:43 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax