I noticed a few issues with the latest dev that was released on 2013-Oct-01. First of all it doesn't show as a available release on the Available Updates Screen in the Admin pages. Also if you install the module I receive the following:

Notice: Undefined index: version_major in update_calculate_project_update_status() (line 628 of /home/somepath/public_html/modules/update/update.compare.inc).
Notice: Undefined index: version_major in update_calculate_project_update_status() (line 638 of /home/somepath/public_html/modules/update/update.compare.inc).
Notice: Undefined index: version_major in update_calculate_project_update_status() (line 628 of /home/somepath/public_html/modules/update/update.compare.inc).
Notice: Undefined index: version_major in update_calculate_project_update_status() (line 638 of /home/somepath/public_html/modules/update/update.compare.inc).
Notice: Undefined index: version_major in update_calculate_project_update_status() (line 628 of /home/somepath/public_html/modules/update/update.compare.inc).
Notice: Undefined index: version_major in update_calculate_project_update_status() (line 638 of /home/somepath/public_html/modules/update/update.compare.inc).

If I downgrade to the release version and not the dev version the issue goes away. Suggestions? Comments?

Thanks In Advance.

Comments

jeremy’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

Did you flush the cache after you upgraded? If yes, how did you flush the cache?

Christopher Riley’s picture

I used the clear cache in the developer module as well as the drush clear cache command.

tolstoydotcom’s picture

The below is the contents of $project_data in the update_calculate_project_update_status function in modules/update/update.compare.inc. I got rid of the "+22" in memcache.info, but that didn't fix it. Without looking into this, I'm assuming it's expecting a dev version in the releases array, although that might be wrong. Since this would require hacking core for little gain I'll use the disable_messages module until this issue is resolved.

Array
(
    [name] => memcache
    [info] => Array
        (
            [name] => Memcache
            [package] => Performance and scalability
            [version] => 7.x-1.0+22-dev
            [project] => memcache
            [datestamp] => 1380586696
            [_info_file_ctime] => 1384454364
        )

    [datestamp] => 1380586696
    [includes] => Array
        (
            [memcache] => Memcache
            [memcache_admin] => Memcache Admin
        )

    [project_type] => module
    [project_status] => 1
    [sub_themes] => Array
        (
        )

    [base_themes] => Array
        (
        )

    [existing_version] => 7.x-1.0+22-dev
    [existing_major] => 1
    [install_type] => dev
    [title] => Memcache API and Integration
    [link] => http://drupal.org/project/memcache
    [latest_version] => 7.x-1.0
    [releases] => Array
        (
            [7.x-1.0] => Array
                (
                    [name] => memcache 7.x-1.0
                    [version] => 7.x-1.0
                    [tag] => 7.x-1.0
                    [version_major] => 1
                    [status] => published
                    [release_link] => http://drupal.org/node/1410218
                    [download_link] => http://ftp.drupal.org/files/projects/memcache-7.x-1.0.tar.gz
                    [date] => 1326973845
                    [mdhash] => 1963feb483f2af322c2df54430896689
                    [filesize] => 39777
                    [files] => 
   
   
  
                    [terms] => Array
                        (
                            [Release type] => Array
                                (
                                    [0] => Bug fixes
                                )

                        )

                )

        )

)
Christopher Riley’s picture

I really hate having to use the disable messages module however it is better than having this message confusing my customers and having them think that I am not managing their site.

Christopher Riley’s picture

This seems to be a bug that is plaguing various modules and it seems the best fix is for the module to be recommitted or the latest dev version made into a release. Can we get a push or an idea of when the next push will come?

CJdriver’s picture

I just updated to 7.25 and am seeing:

Notice: Undefined index: version_major in update_calculate_project_update_status() (line 638 of /home/somepath/public_html/mydomain/modules/update/update.compare.inc).

Has there been a solution found? I too hate using the disable messages module unless I absolutely have to.

jeremy’s picture

Is this still a problem with the 7.x-1.1-beta3 (or later) release?

peshopl’s picture

Thank you Jeremy it work !!

jeremy’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks for testing! Marking as fixed.

Andre-B’s picture

Jeremy, I am seeing the same issue with the userpoints module, since this might be related, what was the solution for the fix provided with beta3?

jeremy’s picture

There was nothing specific; we've just made a lot of significant improvements/fixes in 7.x-1.1 over 7.x-1.0.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.