Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Feb 2007
    Location
    Walsall
    Posts
    222
    Plugin Contributions
    0

    Default Urgent help required.. Website all blank after editing configure.php to add SSL

    Hi,

    Don't know why but all of sudden my website has gone down since morning and only showing blank page.

    I was trying to make changes in both configure.php file to enable ssl. That's all

    I have also restored these files from previous back up but no luck. My hosting company has been very useful and provided the following error.

    PHP Fatal error: Call to a member function Execute() on a non-object in public_html/includes/classes/currencies.php on line 31

    I have replaced currencies.php but no luck.

    My website is here

    Urgent help is required please.

    Thanks
    Last edited by hamid84; 22 Mar 2010 at 10:01 PM. Reason: Link not provided

  2. #2
    Join Date
    Feb 2007
    Location
    Walsall
    Posts
    222
    Plugin Contributions
    0

    Default Re: Urgent help required.. Website all blank

    I purchased static ip address for ssl... Could this be issue?

    I have asked host company to change my ip address...

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Urgent help required.. Website all blank

    You might try a search on that error such as on:
    Call to a member function Execute()

    this post comes up for me that may be helpful ...
    http://www.zen-cart.com/forum/showth...+Execute%28%29
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Feb 2007
    Location
    Walsall
    Posts
    222
    Plugin Contributions
    0

    Default Re: Urgent help required.. Website all blank

    I have gone through so many posts but no luck.

    Need quick fix

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Urgent help required.. Website all blank

    There's a handy FAQ article which provides a utility to help you find out what exact errors are occurring on your site. I found it by simply searching the FAQs area for "blank page": https://www.zen-cart.com/tutorials/index.php?article=82

    The debug logs that the mentioned utility will generate are likely going to point you to an error which this additional FAQ article will help you sort out: https://www.zen-cart.com/tutorials/index.php?article=87
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Feb 2007
    Location
    Walsall
    Posts
    222
    Plugin Contributions
    0

    Default Re: Urgent help required.. Website all blank

    Dr Byte,

    This is what im getting from debug error logging

    [22-Mar-2010 23:56:00] PHP Fatal error: Call to a member function Execute() on a non-object in /home/softhand/public_html/includes/classes/currencies.php on line 31

    I am just lost

  7. #7
    Join Date
    Feb 2007
    Location
    Walsall
    Posts
    222
    Plugin Contributions
    0

    Default Re: Urgent help required.. Website all blank

    This is my currencies.php
    Code:
     
    <?php
    /**
     * currencies Class.
     *
     * @package classes
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: currencies.php 3041 2006-02-15 21:56:45Z wilt $
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    /**
     * currencies Class.
     * Class to handle currencies
     *
     * @package classes
     */
    class currencies extends base {
      var $currencies;
      // class constructor
      function currencies() {
        global $db;
        $this->currencies = array();
        $currencies_query = "select code, title, symbol_left, symbol_right, decimal_point,
                                      thousands_point, decimal_places, value
                              from " . TABLE_CURRENCIES;
        $currencies = $db->Execute($currencies_query);
        while (!$currencies->EOF) {
          $this->currencies[$currencies->fields['code']] = array('title' => $currencies->fields['title'],
          'symbol_left' => $currencies->fields['symbol_left'],
          'symbol_right' => $currencies->fields['symbol_right'],
          'decimal_point' => $currencies->fields['decimal_point'],
          'thousands_point' => $currencies->fields['thousands_point'],
          'decimal_places' => $currencies->fields['decimal_places'],
          'value' => $currencies->fields['value']);
          $currencies->MoveNext();
        }
      }
    ...

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Urgent help required.. Website all blank

    The $db->Execute is the statement that's triggering the error.
    That can only be caused if the $db variable isn't properly initialized as a database object.
    And, since $db is the database object that drives *everything* in Zen Cart, it doesn't make sense that it wouldn't be set unless you had something broken before it *could* be set.
    That means backtracing everything all the way back to the first line of code, and stepping your way through everything one line at a time until you find what exactly is broken.
    That'll take you months if you're not used to doing it and don't have the tools to make the process even thinkable.

    Instead, I recommend you undo whatever changes you made just before the problem started happening, including any edits to your configure.php files or whatever.
    And if undoing that stuff doesn't completely solve the problem, then the next logical step is to find out which files are broken by comparing everything on your server against your last known good backup from when the site was working just fine. You can use a tool like WInMerge for the actual file comparisons once you have all the files on your PC. Related article: http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Feb 2007
    Location
    Walsall
    Posts
    222
    Plugin Contributions
    0

    Default Re: Urgent help required.. Website all blank after editing configure.php to add SSL

    My hosting company has been looking into this and suggested that if it all fails, fresh installation would be only option.

    I am very much happy with new installation provided i do not lose anything. My main concerns are customers, orders, products.. That's all.

    I don't want add ons because i can upload them again.

    I have backed up whole database from phpmyadmin just to be on very safe side.

    Now after reinstallation, would it be just fine to restore the database and have everything up and running?

    Thanks

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Urgent help required.. Website all blank after editing configure.php to add SSL

    That all depends on what the real problem is.
    Blindly restoring from backup could be a huge waste of time and create unnecessary risk of data loss (ie: all orders placed SINCE that backup was made).

    I think your issue is PHP-based, and not database-based, hence the recommendation to verify the contents of all your PHP files by comparing them all against your known good backups.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 0 DB_ERROR_NOT_CONNECTED after editing configure.php
    By michaelchu in forum Basic Configuration
    Replies: 7
    Last Post: 21 Nov 2014, 08:02 PM
  2. Syntax error after editing configure.php
    By domenic in forum General Questions
    Replies: 6
    Last Post: 5 Mar 2011, 12:24 AM
  3. blank page after editing the 2 configure.php files
    By jpmill1953 in forum General Questions
    Replies: 4
    Last Post: 12 Apr 2010, 08:03 PM
  4. Editing configure.php after install
    By msmith1111 in forum General Questions
    Replies: 2
    Last Post: 14 Nov 2006, 11:30 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR