Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42
  1. #1
    Join Date
    Feb 2009
    Location
    Landrum SC
    Posts
    141
    Plugin Contributions
    0

    Default How do I resolve this error/warning? page_parse_time.log failed to open stream

    Warning: error_log(/home/users/web/b1441/acct_name/cache/page_parse_time.log) [function.error-log]: failed to open stream: No such file or directory in C:\xampp\htdocs\local_cart\admin_name\includes\classes\logger.php on line 60

    (This shows up on the bottom of the admin/home page)


    I'm moving my website to my local machine.
    I followed the instructions:
    https://www.zen-cart.com/content.php...fferent-server

    I did a zip backup before downloading to prevent single file errors.

    /home/users/web/b1441/acct_name/ is the path to my host's website.

    C:\xampp\htdocs\local_cart\ is the path on localhost.


    The admin side works. The storefront is a blank page. There are no logfiles.

    I need to upgrade to 1.5.4, but due to an unannounced PHP upgrade by my host, I am unable to uninstall old addons before I can upgrade and retain the product data on the database.

    TIA.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: How do I resolve this error/warning?

    Try changing this

    admin > config > logging > Store Page Parse Time > set to "false"
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: How do I resolve this error/warning?

    While the suggestions provided ought to address this one issue, the fact that there is an older path still present indicates that the transfer is not quite complete. Could you provide a few lines (maybe -5 and +5) before and after the following: C:\xampp\htdocs\local_cart\admin_name\includes\classes\logger.php on line 60

    To see if there is still something not quite coded correctly to work on your local version of the site.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Feb 2009
    Location
    Landrum SC
    Posts
    141
    Plugin Contributions
    0

    Default Re: How do I resolve this error/warning?

    > admin > config > logging > Store Page Parse Time > set to "false"

    Where is that? I can't find it.

    C:\xampp\htdocs\local_cart\admin_name\includes\classes\logger.php

    Code:
        function timer_stop($display = 'false') {
          $this->timer_stop = microtime();
    
          $time_start = explode(' ', $this->timer_start);
          $time_end = explode(' ', $this->timer_stop);
    
          $this->timer_total = number_format(($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0])), 3);
    
          $this->write($_SERVER['REQUEST_URI'], $this->timer_total . 's');
    
          if ($display == 'true') {
            return $this->timer_display();
          }
        }
    
        function timer_display() {
          return '<span class="smallText">Parse Time: ' . $this->timer_total . 's</span>';
        }
    
        function write($message, $type) {
          error_log(strftime(STORE_PARSE_DATE_TIME_FORMAT) . ' [' . $type . '] ' . $message . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
        }
      }
    ?>

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: How do I resolve this error/warning?

    Quote Originally Posted by xcergy View Post
    > admin > config > logging > Store Page Parse Time > set to "false"

    Where is that? I can't find it.
    Navigate to your admin's Configuration->Logging and then change the setting for Store Page Parse Time to false.

    While you're there, also change the Log Destination to /home/users/web/b1441/acct_name/cache/page_parse_time.log

  6. #6
    Join Date
    Feb 2009
    Location
    Landrum SC
    Posts
    141
    Plugin Contributions
    0

    Default Re: How do I resolve this error/warning?

    Quote Originally Posted by lat9 View Post
    Navigate to your admin's Configuration->Logging and then change the setting for Store Page Parse Time to false.

    While you're there, also change the Log Destination to /home/users/web/b1441/acct_name/cache/page_parse_time.log
    Found it. was able to change the path there. Thanks

  7. #7
    Join Date
    Feb 2009
    Location
    Landrum SC
    Posts
    141
    Plugin Contributions
    0

    Default Re: How do I resolve this error/warning?

    The cart still is a blank page, and there is no relater error log to point to the problem.

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: How do I resolve this error/warning?

    If you're really still using Zen Cart v1.3.8a, the "native" processing did not include the error log handling. You can install the myDebug Backtrace (https://www.zen-cart.com/downloads.php?do=file&id=1879) plugin to enable logging to your store's /cache folder ...

    ... and you should really, really consider starting to upgrade.

  9. #9
    Join Date
    Feb 2009
    Location
    Landrum SC
    Posts
    141
    Plugin Contributions
    0

    Default Re: How do I resolve this error/warning?

    ... and you should really, really consider starting to upgrade.


    I'll look into that plugin.

    And yes, I will upgrade, and tried to explain my method of madness. 1.3.8 is no longer available/working on my host, and this is the only way I can save the database, removed outdated plugins befor installing 1.5.4.

  10. #10
    Join Date
    Feb 2009
    Location
    Landrum SC
    Posts
    141
    Plugin Contributions
    0

    Default Re: How do I resolve this error/warning?

    Quote Originally Posted by lat9 View Post
    If you're really still using Zen Cart v1.3.8a, the "native" processing did not include the error log handling. You can install the myDebug Backtrace (https://www.zen-cart.com/downloads.php?do=file&id=1879) plugin to enable logging to your store's /cache folder ...
    Is there a link for 1.3.8? The page you referenced is for 1.5.x

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. Replies: 0
    Last Post: 2 Jun 2009, 10:25 PM
  2. Warning: failed to open stream
    By add2much in forum General Questions
    Replies: 5
    Last Post: 23 Jun 2008, 03:23 PM
  3. Warning: main(includes/index_filters/default): failed to open stream:????
    By atracksler in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Nov 2006, 08:29 PM
  4. Replies: 1
    Last Post: 8 Jun 2006, 10:27 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