Results 1 to 7 of 7
  1. #1
    Join Date
    May 2014
    Posts
    68
    Plugin Contributions
    0

    Default Admin: Version Check Error

    I tried to install a clean version of Zen Cart 1.5.6b (ZIP from GitHub) without any demo products.
    However, once I logged into admin. I noticed something big... and looked funky!

    Name:  HTu6crW.png
Views: 258
Size:  2.8 KB

    That's really big error.
    Therefore, I went to check the "logs" folder...

    Code:
    [30-Jan-2019 15:59:19 UTC] Request URI: /zc156_base/adm/server_info.php, IP address: ::1
    #1  VersionServer->isProjectCurrent() called at [C:\wamp64\www\zc156_base\adm\includes\header.php:97]
    #2  require(C:\wamp64\www\zc156_base\adm\includes\header.php) called at [C:\wamp64\www\zc156_base\adm\server_info.php:96]
    --> PHP Warning: Illegal string offset 'versionMajor' in C:\wamp64\www\zc156_base\adm\includes\classes\VersionServer.php on line 77.
    
    [30-Jan-2019 15:59:19 UTC] Request URI: /zc156_base/adm/server_info.php, IP address: ::1
    #1  require(C:\wamp64\www\zc156_base\adm\includes\header.php) called at [C:\wamp64\www\zc156_base\adm\server_info.php:96]
    --> PHP Warning: Illegal string offset 'versionMajor' in C:\wamp64\www\zc156_base\adm\includes\header.php on line 103.
    
    [30-Jan-2019 15:59:19 UTC] Request URI: /zc156_base/adm/server_info.php, IP address: ::1
    #1  require(C:\wamp64\www\zc156_base\adm\includes\header.php) called at [C:\wamp64\www\zc156_base\adm\server_info.php:96]
    --> PHP Warning: Illegal string offset 'versionMinor' in C:\wamp64\www\zc156_base\adm\includes\header.php on line 103.
    
    [30-Jan-2019 15:59:19 UTC] Request URI: /zc156_base/adm/server_info.php, IP address: ::1
    #1  require(C:\wamp64\www\zc156_base\adm\includes\header.php) called at [C:\wamp64\www\zc156_base\adm\server_info.php:96]
    --> PHP Warning: Illegal string offset 'versionDetail' in C:\wamp64\www\zc156_base\adm\includes\header.php on line 103.
    
    [30-Jan-2019 15:59:19 UTC] Request URI: /zc156_base/adm/server_info.php, IP address: ::1
    #1  require(C:\wamp64\www\zc156_base\adm\includes\header.php) called at [C:\wamp64\www\zc156_base\adm\server_info.php:96]
    --> PHP Warning: Illegal string offset 'versionDownloadURI' in C:\wamp64\www\zc156_base\adm\includes\header.php on line 122.
    {admin}\server_info.php (line 96)
    Code:
    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
    {admin}\includes\classes\VersionServer.php (line 77)
    Code:
        public function isProjectCurrent($newVersionInfo)
        {
            if (trim($newVersionInfo['versionMajor']) > PROJECT_VERSION_MAJOR) {
                return false;
            }
            if (trim($newVersionInfo['versionMinor']) > PROJECT_VERSION_MINOR) {
                return false;
            }
            return true;
        }
    {admin}\includes\header.php (line 103)
    Code:
        if (!$isCurrent) {
            $new_version = TEXT_VERSION_CHECK_NEW_VER . trim($newinfo['versionMajor']) . '.' . trim($newinfo['versionMinor']) . ' :: ' . $newinfo['versionDetail'];
        }
    {admin}\includes\header.php (line 122)
    Code:
        // display download link
        if ($new_version != '' && $new_version != TEXT_VERSION_CHECK_CURRENT) $new_version .= '<br /><a href="' . $newinfo['versionDownloadURI'] . '" target="_blank"><input type="button" class="btn btn-success" value="' . TEXT_VERSION_CHECK_DOWNLOAD . '"/></a>';
    }
    That's really nuts too see that version checker is malfunction!

    -PanZC2020

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,739
    Plugin Contributions
    0

    Default Re: Admin: Zen Cart New Version Check Error

    curl is not compiled into your version of PHP, fix that first and that problem will go away
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3
    Join Date
    May 2014
    Posts
    68
    Plugin Contributions
    0

    Default Re: Admin: Zen Cart New Version Check Error

    I think my CURL is running fine...
    Sure, there is a bunch of "Error 60" since I'm testing on my PC (via WAMP).
    Therefore, I can't use real certificate. My certificate is self-signed... so I can't get rid of that Error 60.

    Code:
    Notice: Trying to get property 'tls_version' of non-object in C:\wamp64\www\zc156\extras\curltester.php on line 26
    Connection uses
    
    Testing communications to various destinations. This is a simple diagnostic to determine whether your server can connect to common destinations.
    For advanced "details" mode, add ?details=on to the URL.
    
    (Another resource you may find useful for testing your server's overall customer-facing SSL configuration: https://www.ssllabs.com/ssltest/index.html )
    
    Connecting to Zen Cart Version Server (http) ...
    GOOD: CURL Connection successful.
    
    Connecting to Zen Cart Version Server (https) ...
    Error 60: SSL certificate problem: unable to get local issuer certificate
    IMPORTANT NOTE: Error 60 or 61 means that this server has an SSL certificate configuration problem. YOU NEED TO ASK YOUR HOSTING COMPANY SERVER ADMIN FOR ASSISTANCE with fixing the server's OpenSSL certificate chain. 
    This error has nothing to do with Zen Cart. It is a server configuration issue.
    
    (If you are running this test on a localhost/PC/dev/standlone server then you can either ignore this until you put the site on a live production server, or temporarily override things by manually configuring the CURLOPT_CAINFO value with a legitimate CA bundle. If you don't know what that means, just defer your CURL testing until you are on a live production webserver!)
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to Zen Cart Support Server (https) ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to USPS (port 80)...
    GOOD: CURL Connection successful.
    
    Connecting to USPS Test/Staging/Sandbox Server (port 80)...
    GOOD: CURL Connection successful.
    
    Connecting to UPS (port 80)...
    GOOD: CURL Connection successful.
    
    GOOD: Socket established
    
    Connecting to UPSXML (onlinetools.ups.com) ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to UPSXML (sandbox) ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to FedEx (port 80)...
    GOOD: Socket established
    
    Connecting to Canada Post REST API (SSL) ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to PayPal IPN (port 443)...
    GOOD: Socket established
    
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to PayPal IPN (port 443) Sandbox ...
    GOOD: Socket established
    
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to PayPal Express/Pro Server ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to PayPal Express/Pro Sandbox ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to PayPal Payflowpro Server ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to PayPal Payflowpro Pilot/Sandbox Server ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to PayPal TLSTest Server ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to Cardinal Commerce 3D-Secure Server ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to Square Payments Server ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to AuthorizeNet Production Server ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to AuthorizeNet Developer/Sandbox Server ...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to First Data GGe4 server (SSL)...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to Payeezy Processing Server...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to Payeezy Sandbox Server...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to Elavon Server...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Connecting to Elavon Sandbox Server...
    Error 60
    
    Testing again with less security...
    GOOD: CURL Connection successful. (but without being able to verify certificate chain. Again: this is a server issue, not a Zen Cart issue.)
    
    Testing completed. See results above.
    If the check version required actual SSL with actual true CA certificate... Then, this is expected result... and therefore, this is not the bug.
    However, this also means that nobody can check Zen Cart versions when testing in local/PC environment!

    -PanZC2020

  4. #4
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Admin: Zen Cart New Version Check Error

    Quote Originally Posted by PanZC2020 View Post
    However, this also means that nobody can check Zen Cart versions when testing in local/PC environment!
    True...

    If you are in development, lampp, working offline or not in full production, you would see such error logs.. once you go online the errors should disappear.

    in admin/includes/local/skip_version_check.ini change version_check=on to off.. once you go live, change it back to keep informed on version updates.
    Dave
    Always forward thinking... Lost my mind!

  5. #5
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    red flag Re: Admin: Zen Cart New Version Check Error

    Quote Originally Posted by davewest View Post
    True...

    If you are in development, lampp, working offline or not in full production, you would see such error logs.. once you go online the errors should disappear.

    in admin/includes/local/skip_version_check.ini change version_check=on to off.. once you go live, change it back to keep informed on version updates.

    I am seeing this same error on my live site.....


    [25-Apr-2019 10:38:47 America/Chicago] Request URI: /ADMIN/index.php, IP address: XX.XX.XX.XX
    #1 VersionServer->isProjectCurrent() called at [/home/shrimps/public_html/ADMIN/includes/header.php:97]
    #2 require(/home/shrimps/public_html/ADMIN/includes/header.php) called at [/home/shrimps/public_html/ADMIN/index_dashboard.php:222]
    #3 require(/home/shrimps/public_html/ADMIN/index_dashboard.php) called at [/home/shrimps/public_html/ADMIN/index.php:26]
    --> PHP Warning: Illegal string offset 'versionMajor' in /home/shrimps/public_html/ADMIN/includes/classes/VersionServer.php on line 77.


    [25-Apr-2019 10:38:47 America/Chicago] Request URI: /ADMIN/index.php, IP address: XX.XX.XX.XX
    #1 require(/home/shrimps/public_html/ADMIN/includes/header.php) called at [/home/shrimps/public_html/ADMIN/index_dashboard.php:222]
    #2 require(/home/shrimps/public_html/ADMIN/index_dashboard.php) called at [/home/shrimps/public_html/ADMIN/index.php:26]
    --> PHP Warning: Illegal string offset 'versionMajor' in /home/shrimps/public_html/ADMIN/includes/header.php on line 103.


    [25-Apr-2019 10:38:47 America/Chicago] Request URI: /ADMIN/index.php, IP address: XX.XX.XX.XX
    #1 require(/home/shrimps/public_html/ADMIN/includes/header.php) called at [/home/shrimps/public_html/ADMIN/index_dashboard.php:222]
    #2 require(/home/shrimps/public_html/ADMIN/index_dashboard.php) called at [/home/shrimps/public_html/ADMIN/index.php:26]
    --> PHP Warning: Illegal string offset 'versionMinor' in /home/shrimps/public_html/ADMIN/includes/header.php on line 103.


    [25-Apr-2019 10:38:47 America/Chicago] Request URI: /ADMIN/index.php, IP address: XX.XX.XX.XX
    #1 require(/home/shrimps/public_html/ADMIN/includes/header.php) called at [/home/shrimps/public_html/ADMIN/index_dashboard.php:222]
    #2 require(/home/shrimps/public_html/ADMIN/index_dashboard.php) called at [/home/shrimps/public_html/ADMIN/index.php:26]
    --> PHP Warning: Illegal string offset 'versionDetail' in /home/shrimps/public_html/ADMIN/includes/header.php on line 103.


    [25-Apr-2019 10:38:47 America/Chicago] Request URI: /ADMIN/index.php, IP address: XX.XX.XX.XX
    #1 require(/home/shrimps/public_html/ADMIN/includes/header.php) called at [/home/shrimps/public_html/ADMIN/index_dashboard.php:222]
    #2 require(/home/shrimps/public_html/ADMIN/index_dashboard.php) called at [/home/shrimps/public_html/ADMIN/index.php:26]
    --> PHP Warning: Illegal string offset 'versionDownloadURI' in /home/shrimps/public_html/ADMIN/includes/header.php on line 122.

  6. #6
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default Re: Admin: Zen Cart New Version Check Error

    Its all related to communication. I had this issue and found this tool useful to detail the root cause:

    \extras\curltester.php
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  7. #7
    Join Date
    Jan 2010
    Posts
    48
    Plugin Contributions
    0

    Default Re: Admin: Zen Cart New Version Check Error

    This topic keeps popping up from time to time. See New Version Available code doesn't handle error return from getProjectVersion for how I fixed it about a year ago for my XAMPP local environment.

    The upcoming 1.5.6b release incorporates fixes (issue #2226 - commit on Mar 25, 2019). Thanks DrByte.

 

 

Similar Threads

  1. Admin error message in version 1.2.1
    By malcolm in forum General Questions
    Replies: 2
    Last Post: 11 Feb 2007, 01:39 AM
  2. Check if version update is available. --admin broke
    By juglesh in forum General Questions
    Replies: 2
    Last Post: 7 Feb 2007, 07:36 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