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

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

      
  1. #1
    New Member
    Join Date
    Oct 2005
    Posts
    5
    Rep Power
    0


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

  2. #2
    osCMax Developer

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


    Default RE: Blank default page after did the security patch

    You made a mistake somewhere. Check your error logs...
    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
    Oct 2005
    Posts
    5
    Rep Power
    0


    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

  4. #4
    osCMax Developer

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


    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 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
    New Member
    Join Date
    Oct 2005
    Posts
    5
    Rep Power
    0


    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

  6. #6
    osCMax Developer

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


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

  7. #7
    New Member
    Join Date
    Oct 2005
    Posts
    5
    Rep Power
    0


    Default RE: Blank default page after did the security patch

    Hi Michael

    many thanks. it works now....

Similar Threads

  1. osCMax 2.0RC2 Security Patch/Update 051112
    By wilde-uk in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 04-12-2006, 07:45 PM
  2. Security Patch osCMax 2.0RC2
    By warrenthewindmill in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 12-04-2005, 09:50 AM
  3. osCMax 2.0RC2 Security Patch/Update 051112
    By michael_s in forum Announcements
    Replies: 0
    Last Post: 11-27-2005, 09:12 AM
  4. Re: Security Patch
    By loba in forum osCmax v1.7 Discussion
    Replies: 13
    Last Post: 03-25-2005, 05:01 AM
  5. Security patch killed pop-up function
    By bjrafferty in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-24-2005, 12:13 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
  •