Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default v1.5.7d Version Server bug

    Updated to v157d from v157c and this bug keeps appearing when refreshing the admin screen(s). File is same as the previous when compared with app. PHP Version: 7.4.28 (Zend: 3.4.0). New file replaced old.


    PHP Notice: Trying to access array offset on value of type null in /youradmin/includes/classes/VersionServer.php on line 86


    {
    if (trim($newVersionInfo['versionMajor']) > PROJECT_VERSION_MAJOR) {
    return false;
    }


    Host shows PHP Version: 7.4.28 (Zend: 3.4.0). PHP8 later this month.


    Ok to throw the off switch in /youradmin/includes/local/skip_version_check.ini ?

    Thank in advance.
    Cheers!
    v2.0+

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

    Default Re: v1.5.7d Version Server bug

    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
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Re: v1.5.7d Version Server bug

    That broke access to the site. Oops. Restored ok.
    Cheers!
    v2.0+

  4. #4
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Re: v1.5.7d Version Server bug

    v157d PHP Version: 7.4.28 (Zend: 3.4.0)

    Getting two debugs now:

    * /YourAdmin/includes/classes/VersionServer.php on line 86 & Line 89

    public function isProjectCurrent($newVersionInfo)
    {
    if (trim($newVersionInfo['versionMajor']) > PROJECT_VERSION_MAJOR) {
    return false;
    }
    if (trim($newVersionInfo['versionMinor']) > PROJECT_VERSION_MINOR) {
    return false;
    }
    return true;
    }

    *File replaced with delta version after comparison.
    Cheers!
    v2.0+

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

    Default Re: v1.5.7d Version Server bug

    The 1.5.8 fix should be appllied to line 97 vs 99 of the 1.5.7c file.....BUT, although no logs are created, you now will have a note above the Check For New Version that says
    Error: Could not contact Project Version Server

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

    Default Re: v1.5.7d Version Server bug

    Yep, you're right. Need to take the version server down to test this properly. New PR (DRAFT!):
    https://github.com/zencart/zencart/pull/4719
    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
    Jan 2010
    Posts
    48
    Plugin Contributions
    0

    Default Re: v1.5.7d Version Server bug

    Has anyone checked on the health of the version server?
    By copying the CURL return to a log file, I've been seeing HTML being returned instead of the expected JSON XML.
    Code:
    <!DOCTYPE html>
    <html lang="en">
        <head>
            <meta charset="utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <meta name="viewport" content="width=device-width, initial-scale=1">
    
            <title>Error</title>
    
            <!-- Fonts -->
            <link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">
    
            <!-- Styles -->
            <style>
                html, body {
                    background-color: #fff;
                    color: #636b6f;
                    font-family: 'Raleway', sans-serif;
                    font-weight: 100;
                    height: 100vh;
                    margin: 0;
                }
    
                .full-height {
                    height: 100vh;
                }
    
                .flex-center {
                    align-items: center;
                    display: flex;
                    justify-content: center;
                }
    
                .position-ref {
                    position: relative;
                }
    
                .content {
                    text-align: center;
                }
    
                .title {
                    font-size: 36px;
                    padding: 20px;
                }
            </style>
        <script async src='/cdn-cgi/challenge-platform/h/g/scripts/invisible.js?ts=1649433600'></script></head>
        <body>
            <div class="flex-center position-ref full-height">
                <div class="content">
                    <div class="title">
                        Whoops, looks like something went wrong.                </div>
                </div>
            </div>
        <script type="text/javascript">(function(){window['__CF$cv$params']={r:'6f8c433cbe3030dd',m:'S8B_8iOyoBnAn6K29eeC6KIpa3gmFm9Iu_nUbts2CyM-1649434116-0-AWFRzFaBsYizu0L5YNVoKqWJN5wb3nDqg7/Zjcn8ltWRSqcP3JkCLp18d0ZGKAqVVyAwttF+ag1WYqUadwEv6NJeWIAeeCSxyPDGANH9to4QUqkCHk8gFtXgi13bAM7V4Q==',s:[0xdd4c0088f1,0xf185e7c593],u:'/cdn-cgi/challenge-platform/h/g'}})();</script><script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"6f8c433cbe3030dd","version":"2021.12.0","r":1,"token":"8c75eea6a45048a3bdc73ed12f7d4dd4","si":100}' crossorigin="anonymous"></script>
    </body>
    </html>
    CURL is not reporting any errors.

    Zen Cart 1.5.7d
    XAMPP PHP 7.4.20

 

 

Similar Threads

  1. v155 Plugin Version Check Bug Delays Loading Admin Site Pages
    By Fjolsvith in forum Bug Reports
    Replies: 4
    Last Post: 20 Apr 2021, 07:38 PM
  2. v155 MultiGeoZone MultiTable Shipping version 1.101 PHP split bug
    By explorer1979 in forum General Questions
    Replies: 4
    Last Post: 30 Dec 2016, 02:43 AM
  3. [Not a bug] Hits counter - version 1.3.9g
    By stanislawl in forum Bug Reports
    Replies: 6
    Last Post: 7 Oct 2010, 08:27 PM
  4. Server move - Problem with url and Server/Version Info - please help!
    By bethalicea in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 7 Jun 2009, 10:07 PM
  5. [BUG][install] Php Version Check
    By moku in forum General Questions
    Replies: 3
    Last Post: 15 May 2006, 12:30 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