Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default error logs - plugin versions

    v157C with various plugins

    I am getting 2 'admin' error logs that fire at the very same time and are obviously related - appears something is trying to update a plugin version (?) but I have no idea what to do to correct the situation so would appreciate some help please.

    error message 1

    Code:
    [03-Aug-2022 15:12:35 Australia/Sydney] Request URI: /admin/index.php?cmd=configuration&gID=49, IP address: 220.253.69.115
    #1  file_get_contents() called at [/home2/xxxx/public_html/admin/includes/init_includes/init_zcb_config.php:140]
    #2  this_plugin_version_check_for_updates() called at [/home2/xxxx/public_html/admin/includes/init_includes/init_zcb_config.php:166]
    #3  require_once(/home2/xxxx/public_html/admin/includes/init_includes/init_zcb_config.php) called at [/home2/xxxx/public_html/includes/autoload_func.php:37]
    #4  require(/home2/xxxx/public_html/includes/autoload_func.php) called at [/home2/xxxx/public_html/admin/includes/application_top.php:37]
    #5  require(/home2/xxxx/public_html/admin/includes/application_top.php) called at [/home2/xxxx/public_html/admin/configuration.php:8]
    #6  require(/home2/xxxx/public_html/admin/configuration.php) called at [/home2/xxxx/public_html/admin/index.php:11]
    --> PHP Warning: file_get_contents(https://plugins.zen-cart.com/versioncheck/1322): failed to open stream: HTTP request failed! HTTP/1.1 526 
     in /home2/dazzler3/public_html/admin/includes/init_includes/init_zcb_config.php on line 140.
    
    [03-Aug-2022 15:12:35 Australia/Sydney] PHP Notice:  file_get_contents() error checking plugin versions.
    Trying http instead. in /home2/xxxx/public_html/admin/includes/init_includes/init_zcb_config.php on line 142
    [03-Aug-2022 15:12:35 Australia/Sydney] Request URI: /admin/index.php?cmd=configuration&gID=49, IP address: 220.253.69.115
    #1  file_get_contents() called at [/home2/xxxx/public_html/admin/includes/init_includes/init_zcb_config.php:143]
    #2  this_plugin_version_check_for_updates() called at [/home2/xxxx/public_html/admin/includes/init_includes/init_zcb_config.php:166]
    #3  require_once(/home2/xxxx/public_html/admin/includes/init_includes/init_zcb_config.php) called at [/home2/xxxx/public_html/includes/autoload_func.php:37]
    #4  require(/home2/xxxx/public_html/includes/autoload_func.php) called at [/home2/xxxx/public_html/admin/includes/application_top.php:37]
    #5  require(/home2/xxxx/public_html/admin/includes/application_top.php) called at [/home2/xxxx/public_html/admin/configuration.php:8]
    #6  require(/home2/xxxx/public_html/admin/configuration.php) called at [/home2/xxxx/public_html/admin/index.php:11]
    --> PHP Warning: file_get_contents(http://plugins.zen-cart.com/versioncheck/1322): failed to open stream: HTTP request failed! HTTP/1.1 526 
     in /home2/xxxx/public_html/admin/includes/init_includes/init_zcb_config.php on line 143.
    
    [03-Aug-2022 15:12:35 Australia/Sydney] PHP Notice:  file_get_contents() error checking plugin versions.
    Aborting. in /home2/xxxx/public_html/admin/includes/init_includes/init_zcb_config.php on line 146
    the url in the error message (https://plugins.zen-cart.com/versioncheck/1322) results in the follwing error when I try to reach it via the browser.

    Code:
    Error 526 Ray ID: 734cb7289cf617c9 • 2022-08-03 05:39:54 UTC
    Invalid SSL certificate
    error message 2

    Code:
    [03-Aug-2022 15:12:35 Australia/Sydney] PHP Notice:  CURL error checking plugin versions: 0:
    Trying file_get_contents() instead. in /home2/xxxx/public_html/admin/includes/init_includes/init_zcb_config.php on line 138

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

    Default Re: error logs - plugin versions

    You can turn off version checking for plugins
    https://docs.zen-cart.com/user/plugins/version_check/
    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
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,486
    Plugin Contributions
    88

    Default Re: error logs - plugin versions

    From what plugin is the init_zcb_config.php file?

  4. #4
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: error logs - plugin versions

    Quote Originally Posted by lat9 View Post
    From what plugin is the init_zcb_config.php file?
    Colorbox for Zen Cart (https://www.zen-cart.com/downloads.php?do=file&id=1322)

    It does have an admin switch to disable version checking but for a reason I forget I didn't find that worked so ended up commenting out the Version Checking at the end of said file.
    Simon

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

    Default Re: error logs - plugin versions

    Quote Originally Posted by simon1066 View Post
    Colorbox for Zen Cart (<a href="https://www.zen-cart.com/downloads.php?do=file&amp;id=1322" target="_blank">https://www.zen-cart.com/downloads.php?do=file&amp;id=1322</a>)<br>
    <br>
    It does have an admin switch to disable version checking but for a reason I forget I didn't find that worked so ended up commenting out the Version Checking at the end of said file.
    It's not using the current URLs for the Zen Cart version server. In /admin/includes/init_includes/init_zcb_config.php, find lines 107-108 (in v2.1.2):
    Code:
    $url1 = 'https://plugins.zen-cart.com/versioncheck/'.(int)$plugin_file_id;
    $url2 = 'https://www.zen-cart.com/versioncheck/'.(int)$plugin_file_id;
    and change to
    Code:
    $url1 ='https://ping.zen-cart.com/plugincheck/'.(int)$plugin_file_id;
    $url2 = 'https://ping.zen-cart.com/zcversioncheck/'.(int)$plugin_file_id;

  6. #6
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: error logs - plugin versions

    Quote Originally Posted by lat9 View Post
    It's not using the current URLs for the Zen Cart version server. In /admin/includes/init_includes/init_zcb_config.php, find lines 107-108 (in v2.1.2):
    Code:
    $url1 = 'https://plugins.zen-cart.com/versioncheck/'.(int)$plugin_file_id;
    $url2 = 'https://www.zen-cart.com/versioncheck/'.(int)$plugin_file_id;
    and change to
    Code:
    $url1 ='https://ping.zen-cart.com/plugincheck/'.(int)$plugin_file_id;
    $url2 = 'https://ping.zen-cart.com/zcversioncheck/'.(int)$plugin_file_id;
    Great, thanks.
    Simon

  7. #7
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: error logs - plugin versions

    Quote Originally Posted by lat9 View Post
    From what plugin is the init_zcb_config.php file?
    Many thanks Cindy - it was ColorBox so I used the file change you posted in here for simon1066

 

 

Similar Threads

  1. v157 Display Logs Plugin Stuck In A Loop
    By mikeel100 in forum Bug Reports
    Replies: 6
    Last Post: 12 Sep 2021, 05:27 AM
  2. v157 Error logs
    By Angie1 in forum General Questions
    Replies: 2
    Last Post: 18 Oct 2020, 10:50 AM
  3. v155 Opinions wanted: Plugin "Packaging" for multiple Zen Cart versions
    By lat9 in forum Contribution-Writing Guidelines
    Replies: 12
    Last Post: 27 Sep 2016, 09:41 AM
  4. Can Templates from Prior Versions Be Added to Later Versions?
    By PSurf in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 6 Dec 2011, 02:38 AM

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