Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default What is the log file is saying

    Have no idea.
    I am getting thousands of these log files and need to stop. Deleting in cPanel is almost impossible as there are far too many

    What does it mean?
    What am I missing?
    What do I need to do?

    Thanks for your help.
    ===========================
    [25-Oct-2018 12:39:02 UTC] Request URI: /index.php?main_page=products_new, IP address: 66.249.70.19
    #1 str_repeat() called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php:55]
    #2 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php:54]
    #3 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php:163]
    #4 require(/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/WWMMM/public_html/index.php:97]

    [25-Oct-2018 12:39:02 UTC] PHP Warning: str_repeat() expects exactly 2 parameters, 1 given in /home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php on line 55
    [25-Oct-2018 12:39:02 UTC] Request URI: /index.php?main_page=products_new, IP address: 66.249.70.19
    #1 str_repeat() called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php:77]
    #2 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php:54]
    #3 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php:163]
    #4 require(/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/WWMMM/public_html/index.php:97]

    [25-Oct-2018 12:39:02 UTC] PHP Warning: str_repeat() expects exactly 2 parameters, 1 given in /home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php on line 77
    [25-Oct-2018 12:39:02 UTC] Request URI: /index.php?main_page=products_new, IP address: 66.249.70.19
    #1 str_repeat() called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php:85]
    #2 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php:54]
    #3 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php:163]
    #4 require(/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/WWMMM/public_html/index.php:97]

    [25-Oct-2018 12:39:02 UTC] PHP Warning: str_repeat() expects exactly 2 parameters, 1 given in /home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php on line 85
    [25-Oct-2018 12:39:02 UTC] Request URI: /index.php?main_page=products_new, IP address: 66.249.70.19
    #1 str_repeat() called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php:55]
    #2 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php:54]
    #3 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php:163]
    #4 require(/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/WWMMM/public_html/index.php:97]

    [25-Oct-2018 12:39:02 UTC] PHP Warning: str_repeat() expects exactly 2 parameters, 1 given in /home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php on line 55
    [25-Oct-2018 12:39:02 UTC] Request URI: /index.php?main_page=products_new, IP address: 66.249.70.19
    #1 str_repeat() called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php:77]
    #2 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php:54]
    #3 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php:163]
    #4 require(/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/WWMMM/public_html/index.php:97]

    [25-Oct-2018 12:39:02 UTC] PHP Warning: str_repeat() expects exactly 2 parameters, 1 given in /home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php on line 77
    [25-Oct-2018 12:39:02 UTC] Request URI: /index.php?main_page=products_new, IP address: 66.249.70.19
    #1 str_repeat() called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php:85]
    #2 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php:54]
    #3 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php:163]
    #4 require(/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/WWMMM/public_html/index.php:97]

    [25-Oct-2018 12:39:02 UTC] PHP Warning: str_repeat() expects exactly 2 parameters, 1 given in /home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php on line 85
    [25-Oct-2018 12:39:02 UTC] Request URI: /index.php?main_page=products_new, IP address: 66.249.70.19
    #1 str_repeat() called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php:55]
    #2 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php:54]
    #3 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php:163]
    #4 require(/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/WWMMM/public_html/index.php:97]

    [25-Oct-2018 12:39:02 UTC] PHP Warning: str_repeat() expects exactly 2 parameters, 1 given in /home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php on line 55
    [25-Oct-2018 12:39:02 UTC] Request URI: /index.php?main_page=products_new, IP address: 66.249.70.19
    #1 str_repeat() called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php:77]
    #2 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php:54]
    #3 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php:163]
    #4 require(/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/WWMMM/public_html/index.php:97]

    [25-Oct-2018 12:39:02 UTC] PHP Warning: str_repeat() expects exactly 2 parameters, 1 given in /home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php on line 77
    [25-Oct-2018 12:39:02 UTC] Request URI: /index.php?main_page=products_new, IP address: 66.249.70.19
    #1 str_repeat() called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php:85]
    #2 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php:54]
    #3 require(/home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_products_new_default.php) called at [/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php:163]
    #4 require(/home/WWMMM/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/WWMMM/public_html/index.php:97]

    [25-Oct-2018 12:39:02 UTC] PHP Warning: str_repeat() expects exactly 2 parameters, 1 given in /home/WWMMM/public_html/includes/templates/qbrands/templates/tpl_modules_products_new_listing.php on line 85
    Downunder QLD

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: What is the log file is saying

    Please post tpl_modules_products_new_listing.php lines 55, 85, 77. It's probably the same bug but let's be sure.

    We'll fix that, then what you should do is:
    a) rename the logs directory to "old_logs"
    b) Upload a fresh logs directory (from a clean download of Zen Cart). Don't just create a logs directory; you want the .htaccess, index.php, etc. files from a real copy.
    c) In cPanel (not FTP), delete the old_logs folder.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: What is the log file is saying

    Ok did that and as soon as I opened a product details I get serioes of debugs
    ====================
    [06-May-2019 19:01:17 Australia/Sydney] Request URI: /index.php?main_page=page_3&zenid=9t4dabjcv8js0gl0nq2rrvjnp0, IP address: 54.36.149.95
    #1 require(/home/qbr49655/public_html/includes/templates/qbrands/templates/tpl_ezpages_bar_footer.php) called at [/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_footer.php:33]
    #2 require(/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_footer.php) called at
    [/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_main_page.php:222]
    #3 require(/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/qbr49655/public_html/index.php:97]
    --> PHP Warning: Division by zero in /home/qbr49655/public_html/includes/templates/qbrands/templates/tpl_ezpages_bar_footer.php on line 43.
    ================================
    then this
    ================================
    [06-May-2019 19:01:48 Australia/Sydney] Request URI: /index.php?main_page=index&cPath=62&zenid=bs201ivlandl9btddr7j8gks74, IP address: 54.36.149.106
    #1 require(/home/qbr49655/public_html/includes/templates/qbrands/templates/tpl_ezpages_bar_footer.php) called at [/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_footer.php:33]
    #2 require(/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_footer.php) called at [/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_main_page.php:222]
    #3 require(/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/qbr49655/public_html/index.php:97]
    --> PHP Warning: Division by zero in /home/qbr49655/public_html/includes/templates/qbrands/templates/tpl_ezpages_bar_footer.php on line 43.
    =========================
    Then this
    ==========================
    [06-May-2019 19:01:55 Australia/Sydney] Request URI: /index.php?main_page=page&id=5&zenid=eiuhmhotufhn38br4liikggjh6, IP address: 54.36.148.171
    #1 require(/home/qbr49655/public_html/includes/templates/qbrands/templates/tpl_ezpages_bar_footer.php) called at [/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_footer.php:33]
    #2 require(/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_footer.php) called at [/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_main_page.php:222]
    #3 require(/home/qbr49655/public_html/includes/templates/qbrands/common/tpl_main_page.php) called at [/home/qbr49655/public_html/index.php:97]
    --> PHP Warning: Division by zero in /home/qbr49655/public_html/includes/templates/qbrands/templates/tpl_ezpages_bar_footer.php on line 43.

    etc etc.. only thing IP keeps changing and I only accessed the home page. If I refresh home page it keeps adding more myDEBUG logs files.
    Downunder QLD

  4. #4
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: What is the log file is saying

    >> Please post tpl_modules_products_new_listing.php lines 55, 85, 77. It's probably the same bug but let's be sure.

    lines 55,
    $display_products_weight = '<span class="weight">' . '<strong>'.TEXT_PRODUCTS_WEIGHT.'</strong>' . $products_new->fields['products_weight'] . TEXT_SHIPPING_WEIGHT . str_repeat(substr(PRODUCT_NEW_LIST_WEIGHT, 3, 1)).'</span>';

    lines 85,
    $display_products_price = $products_price . str_repeat(substr(PRODUCT_NEW_LIST_PRICE, 3, 1)) . (zen_get_show_product_switch($products_new->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($products_new->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON : '') : '');

    lines 77
    $display_products_manufacturers_name = '<span class="brand">'.($products_new->fields['manufacturers_name'] != '' ? '<strong>'.TEXT_MANUFACTURER.'</strong>' . ' ' . $products_new->fields['manufacturers_name'] . str_repeat(substr(PRODUCT_NEW_LIST_MANUFACTURER, 3, 1)) : '').'</span>';
    Downunder QLD

  5. #5
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: What is the log file is saying

    Quote Originally Posted by oavs View Post
    >> Please post tpl_modules_products_new_listing.php lines 55, 85, 77. It's probably the same bug but let's be sure.

    lines 55,
    Code:
     $display_products_weight = '<span class="weight">' . '<strong>'.TEXT_PRODUCTS_WEIGHT.'</strong>' . $products_new->fields['products_weight'] . TEXT_SHIPPING_WEIGHT . str_repeat(substr(PRODUCT_NEW_LIST_WEIGHT, 3, 1)).'</span>';
    lines 85,
    Code:
    $display_products_price = $products_price . str_repeat(substr(PRODUCT_NEW_LIST_PRICE, 3, 1)) . (zen_get_show_product_switch($products_new->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($products_new->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON  : '') : '');
    lines 77
    Code:
     $display_products_manufacturers_name = '<span class="brand">'.($products_new->fields['manufacturers_name'] != '' ? '<strong>'.TEXT_MANUFACTURER.'</strong>' . ' ' . $products_new->fields['manufacturers_name'] . str_repeat(substr(PRODUCT_NEW_LIST_MANUFACTURER, 3, 1)) : '').'</span>';
    When using str_repeat as the message indicated there should be a second parameter to the function. The first is what to repeat, the second is how many times to repeat it. The value of the second parameter could be 0 to provide an empty pair of quotes or some other number of times to repeat. It seems that as implemented the expectation was 0 by absence of a number of times to repeat, but also 1 by the process of even considering the use of the function.

    Pick what you want to use, but for example in line 55, to show the 4th character of PRODUCT_NEW_LIST_WEIGHT one time the str_repeat should read:
    Code:
    str_repeat(substr(PRODUCT_NEW_LIST_WEIGHT, 3, 1), 1)
    Adding ', 1' after the closure for substr.

    As to the issues with the template's tpl_ezpages_bar_footer.php and other template override files, would suggest comparing the file to the template_default or, if it exists, the responsive_classic version of that file. Identify why the differences exist and adjust to provide proper coding and response.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: What is the log file is saying

    I suspect the intent here is to add whitespace. So you want a break as the first parameter to str_repeat.

    So change
    str_repeat(substr(PRODUCT_NEW_LIST_WEIGHT, 3, 1))
    to
    str_repeat('<br clear="all" />', substr(PRODUCT_NEW_LIST_WEIGHT, 3, 1))

    same changes to other calls.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: What is the log file is saying

    I'm guessing this is a Template Monster template?
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: What is the log file is saying

    Too right :-)
    Downunder QLD

  9. #9
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: What is the log file is saying

    one error now I will report soon.
    Downunder QLD

  10. #10
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: What is the log file is saying

    Good news,

    Thank you to both That Software Guy and mc12345678 ,

    That Software Guy: Code change suggestion did not worked
    I did first followed That Software Guy's instructions and some what reduced however every time I refreshed the public site errors accumulated. So back to default code.

    mc12345678: Code change suggestion did not worked

    I then followed -
    "As to the issues with the template's tpl_ezpages_bar_footer.php and other template override files, would suggest comparing the file to the template_default or, if it exists, the responsive_classic version of that file. Identify why the differences exist and adjust to provide proper coding and response."

    and replaced only the template's tpl_ezpages_bar_footer.php file from Responsive template and BINGO :-) it worked and no more errors ..soo happy. Thankyou to both of you guys, brilliant.
    Downunder QLD

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 what does this log file mean
    By slater555 in forum Addon Payment Modules
    Replies: 5
    Last Post: 9 Feb 2018, 07:33 PM
  2. I have a very large error log file but I dont know what these errors mean
    By sportrecovery in forum Managing Customers and Orders
    Replies: 10
    Last Post: 7 Jul 2010, 04:15 AM
  3. not installing - just opens a box saying do I want to save the file?
    By alisia81 in forum Installing on a Windows Server
    Replies: 4
    Last Post: 5 May 2010, 10:53 AM
  4. Where is the log file when you set Debug Mode to "Log File"?
    By alicia1234 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 1 Feb 2009, 12:05 AM
  5. What file checks to see if it can write to the config file?
    By websmoken in forum General Questions
    Replies: 3
    Last Post: 26 Dec 2006, 10:58 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