I updated to 3.0 and downloaded the fresh version from GitHub of PHPExcel. After that it did not worked anymore. Long story quick: It seems that the changelog.txt of PHPExcel vontains @version ##VERSION## instead of something numeric. Your libraries rules check for a number. So librabries return alwas false on detecting if PHPExcel is there or not.

This is also in the 1.7.8 release of PHPExcel. I manually wrote 1.7.8 in the changelog instead of ##VERSION## and it could be loaded nicely.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wadmiraal’s picture

Component: Code » Documentation
Assigned: Unassigned » wadmiraal
Category: bug » support
Priority: Normal » Critical
Status: Active » Fixed

Damn... I guess the author hasn't put up any commit hooks on Github.

If you download the code from Codeplex (where the project used to be hosted), the changelog.txt file is fine.

I'm going to put a note on the module page, so that developers either download the code from Codeplex, or put the version number in themselves. I could hard-code the version number in the Libraries info hook, but that would defeat the purpose of using the Libraries module in the first place, as I would lock developers in using the 1.7.8 version.

I'm opening an issue on Github as well, so the author updates the file :-).

wadmiraal’s picture

Status: Fixed » Postponed

Marking as postponed.
Will mark as fixed when the version is added on Github.

mikran’s picture

As a temporary fix to .make file I did this:

; phpexcel
projects[phpexcel][version] = "3.0"
libraries[PHPExcel][type] = "library"
libraries[PHPExcel][download][type] = "get"
libraries[PHPExcel][download][url] = "https://github.com/PHPOffice/PHPExcel/archive/PHPExcel_1.7.8.tar.gz"
libraries[PHPExcel][patch][] = "http://drupal.org/files/changelog_version_number-1908282-3.patch"

I couldn't find codeplex url that can be used with .make files but the lines above work well.

wadmiraal’s picture

Thanks for this. Mentionning it in the documentation.

eft’s picture

Attached is another patch for the current branch of PHPExcel library.

wadmiraal’s picture

Thanks eft ;-)

eft’s picture

And yet another patch for latest commits to develop branch.

wadmiraal’s picture

Status: Postponed » Fixed

Good news everyone.

I noticed the PHPExcel maintainers started putting the version information in the changelog.txt file, just not where you would expect it. I updated the way the version number is retrieved for Libraries API, and it works. No more need to manually hack the changelog.txt file !

Fix is on dev, and will be published with release 7.x-3.8.

Status: Fixed » Closed (fixed)

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