Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    86
    Plugin Contributions
    0

    Default Blank screen but admin working.

    Some back details:
    - Just moved from HostGator to GoDaddy on Sunday, September 28th.
    - Using version v1.5.1
    - Admin section is working fine
    - Customers are experiencing blank pages. The website works and then all of the sudden it doesn't work, getting blank pages and some even get server error.
    - I have gotten many successful orders since transferring so it's not happening all the time.

    I contacted GoDaddy and they say everything is working properly on their side and to contact Zen Cart. I contacted the guy who did my transfer and he says it's an issue with my hosting. I don't know what to do now. I am losing customers.

    I have looked in the DEBUG files:
    [06-Oct-2014 19:59:22 UTC] PHP Fatal error: Cannot redeclare zen_create_random_value() (previously declared in /home/xxxxx/public_html/includes/functions/functions_general.php:614) in /home/xxxxx/public_html/includes/functions/password_funcs.php on line 86
    [06-Oct-2014 19:59:22 UTC] PHP Warning: require(includes/classes/db/mysql/query_factory.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/includes/functions/sessions.php on line 54
    [06-Oct-2014 19:59:22 UTC] PHP Warning: require(includes/classes/db/mysql/query_factory.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/includes/functions/sessions.php on line 54
    [06-Oct-2014 19:59:22 UTC] PHP Fatal error: require(): Failed opening required 'includes/classes/db/mysql/query_factory.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxx/public_html/includes/functions/sessions.php on line 54

    My website is glamourdolleyes.com.

    Any suggestions? I am completely at a loss.

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: Blank screen but admin working.

    Quote Originally Posted by glamourdolleyes View Post
    Some back details:
    - Just moved from HostGator to GoDaddy on Sunday, September 28th. My Condolences, out of the frying pan, into the fire.
    - Using version v1.5.1
    - Admin section is working fine
    - Customers are experiencing blank pages. The website works and then all of the sudden it doesn't work, getting blank pages and some even get server error.
    - I have gotten many successful orders since transferring so it's not happening all the time.

    I contacted GoDaddy and they say everything is working properly on their side and to contact Zen Cart. I contacted the guy who did my transfer and he says it's an issue with my hosting. I don't know what to do now. I am losing customers.

    I have looked in the DEBUG files:
    [06-Oct-2014 19:59:22 UTC] PHP Fatal error: Cannot redeclare zen_create_random_value() (previously declared in /home/xxxxx/public_html/includes/functions/functions_general.php:614) in /home/xxxxx/public_html/includes/functions/password_funcs.php on line 86
    [06-Oct-2014 19:59:22 UTC] PHP Warning: require(includes/classes/db/mysql/query_factory.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/includes/functions/sessions.php on line 54
    [06-Oct-2014 19:59:22 UTC] PHP Warning: require(includes/classes/db/mysql/query_factory.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/includes/functions/sessions.php on line 54
    [06-Oct-2014 19:59:22 UTC] PHP Fatal error: require(): Failed opening required 'includes/classes/db/mysql/query_factory.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxx/public_html/includes/functions/sessions.php on line 54

    My website is glamourdolleyes.com.

    Any suggestions? I am completely at a loss.
    Notice the path (above in red) that is repeated. That tells me that your includes/configure.php has a bad listing.
    PHP Code:
    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      
    define('HTTP_SERVER''http://yoursite.com');
      
    define('HTTPS_SERVER''https://yoursite.com');

      
    // Use secure webserver for checkout procedure?
      
    define('ENABLE_SSL''true');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      
    define('DIR_WS_CATALOG''/');
      
    define('DIR_WS_HTTPS_CATALOG''/');

      
    define('DIR_WS_IMAGES''images/');
      
    define('DIR_WS_INCLUDES''includes/');
      
    define('DIR_WS_FUNCTIONS'DIR_WS_INCLUDES 'functions/');
      
    define('DIR_WS_CLASSES'DIR_WS_INCLUDES 'classes/');
      
    define('DIR_WS_MODULES'DIR_WS_INCLUDES 'modules/');
      
    define('DIR_WS_LANGUAGES'DIR_WS_INCLUDES 'languages/');
      
    define('DIR_WS_DOWNLOAD_PUBLIC'DIR_WS_CATALOG 'pub/');
      
    define('DIR_WS_TEMPLATES'DIR_WS_INCLUDES 'templates/'); 
    This is how yours should look IF your shop is in the root directory of your site.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Mar 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Blank screen but admin working.

    HostGator was a NIGHTMARE so anything GoDaddy does couldn't be any worse, but I digress.

    I looked in my configure file and it matches everything above:

    HTML Code:
    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      define('HTTP_SERVER', 'http://www.glamourdolleyes.com');
      define('HTTPS_SERVER', 'https://www.glamourdolleyes.com');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'true');
    
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: Blank screen but admin working.

    I sincerely hope you feel the same in a year.

    But... I digress.

    Do you know if any of those having problems might have flash disabled? I just doesn't mix well with Zen Cart anyway. The iframes can help or kill.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Mar 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Blank screen but admin working.

    I have always had flash there, even on the old server without any issues so I doubt that.

    Quote Originally Posted by dbltoe View Post
    I sincerely hope you feel the same in a year.

    But... I digress.

    Do you know if any of those having problems might have flash disabled? I just doesn't mix well with Zen Cart anyway. The iframes can help or kill.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Blank screen but admin working.

    Quote Originally Posted by dbltoe View Post
    I sincerely hope you feel the same in a year.

    But... I digress.

    Do you know if any of those having problems might have flash disabled? I just doesn't mix well with Zen Cart anyway. The iframes can help or kill.
    I haven't looked to see how the iframes are used, but would support that the use of ZC in iframes is not supported and has been reported as causing sites not to display.

    Fyi,
    :/usr/lib/php:/usr/local/lib/php
    Shows two unique path locations not a single location duplicated, one under usr/lib, the other under user/local/lib, but that part of the issue/potential has been eliminated much like my theory of the same file existing twice, though there may still be some duplicate call being made as a require instead of a require_once call to that file (possibly by the iframe usage or another factor not yet identified by the time I started writing this.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Mar 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Blank screen but admin working.

    @mc12345678

    Not the issue

    Name:  Screen Shot 2014-10-06 at 1.45.34 PM.png
Views: 114
Size:  20.8 KB

  8. #8
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Blank screen but admin working.

    Quote Originally Posted by glamourdolleyes View Post
    Some back details:
    - Just moved from HostGator to GoDaddy on Sunday, September 28th.
    - Using version v1.5.1
    - Admin section is working fine
    - Customers are experiencing blank pages. The website works and then all of the sudden it doesn't work, getting blank pages and some even get server error.
    - I have gotten many successful orders since transferring so it's not happening all the time.

    I contacted GoDaddy and they say everything is working properly on their side and to contact Zen Cart. I contacted the guy who did my transfer and he says it's an issue with my hosting. I don't know what to do now. I am losing customers.

    I have looked in the DEBUG files:
    [06-Oct-2014 19:59:22 UTC] PHP Fatal error: Cannot redeclare zen_create_random_value() (previously declared in /home/xxxxx/public_html/includes/functions/functions_general.php:614) in /home/xxxxx/public_html/includes/functions/password_funcs.php on line 86
    [06-Oct-2014 19:59:22 UTC] PHP Warning: require(includes/classes/db/mysql/query_factory.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/includes/functions/sessions.php on line 54
    [06-Oct-2014 19:59:22 UTC] PHP Warning: require(includes/classes/db/mysql/query_factory.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/includes/functions/sessions.php on line 54
    [06-Oct-2014 19:59:22 UTC] PHP Fatal error: require(): Failed opening required 'includes/classes/db/mysql/query_factory.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxx/public_html/includes/functions/sessions.php on line 54

    My website is glamourdolleyes.com.

    Any suggestions? I am completely at a loss.
    My guess is that the content of functions_general.php exists in at least a second location loaded by ZC. Specifically that the content of the file is in a "backup" of the file that has an extension of .php.

    One way to identify this (and because you have admin access it is much easier) is to goto tools->developer's toolkit and in the lower left corner type in:
    Function zen_create_random_value

    Then in the next dropdown identify catalog, then select the search button on the right of that side.

    You are likely to find two files with that information. Then via ftp, goto the directory where that file is located and see if there are other files renamed the same way. The file expected to keep is the one named functions_general.php; however, the existence of the duplicate file is a question related to the developer if there really is such a second file. (Remember this is all based on my assumption of such based on the initial error.)

    Other such errors may still occur if some form of similar search and replace is not performed. The extension must not end in .php if to be omitted, and it is recommended that it not end in .old or .bak. Technically should be removed entirely.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: Blank screen but admin working.

    Never mind, not pertinent.

  10. #10
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Blank screen but admin working.

    Quote Originally Posted by lat9 View Post
    Never mind, not pertinent.
    Your plugin? :) was thinking of suggesting, but intermittent cause?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Blank Screen After Upgrade (fixed) but now blank screen after login!
    By Kias Henry in forum Upgrading to 1.5.x
    Replies: 6
    Last Post: 23 Jun 2015, 07:32 PM
  2. Site Homepage is Blank but Admin is working
    By ilavarasijohnson in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 13 May 2011, 06:15 PM
  3. Blank Screen at Admin
    By pdf1106 in forum Basic Configuration
    Replies: 14
    Last Post: 14 Jul 2010, 05:41 AM
  4. blank screen/template override not working
    By trebo70 in forum General Questions
    Replies: 4
    Last Post: 31 May 2010, 06:48 AM
  5. Blank Catalogue; but Working Admin
    By pepamilk in forum General Questions
    Replies: 3
    Last Post: 7 Nov 2006, 05:46 AM

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