Update package broken. refreshDatabase() missing

Permalink
When I attempt to update my package by incrementing to version, and it shows “1 update availabe”, when I click on it it says

Call to undefined method Concrete\Package\IstandTvTools\Controller::refreshDatabase()
/store/jw/sites/istandc57/web/concrete/src/Package/Package.php
           $v = array($p1->getPackageName(), $p1->getPackageDescription(), $p1->getPackageVersion(), $this->getPackageID());
           $db->query("update Packages set pkgName = ?, pkgDescription = ?, pkgVersion = ? where pkgID = ?", $v);
       }
   }
   public function upgrade()
   {
       $this->refreshDatabase();
       // now we refresh all blocks


and indeed, it appears to not exist. I searched the tree and only found one reference which is the line that is causing the crash

ntisithoj
 
ntisithoj replied on at Permalink Reply
ntisithoj
gentle bump
andrew replied on at Permalink Reply
andrew
Looks like you're using some version of 5.7 between the official 5.7.3.1 and the version in github today. I would update from github and run the upgrade process or run the supported 5.7.3.1 install.
ntisithoj replied on at Permalink Reply
ntisithoj
I attempted to do an update… did a “git pull”, then did a “composer update”


I get

Reading composer.json of concrete5/flysystem (feature/http-guzzle-adapter)
Reading composer.json of concrete5/flysystem (master)
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dapphp/securimage 3.5.4 requires ext-gd * -> the requested PHP extension gd is missing from your system.
    - dapphp/securimage 3.5.4 requires ext-gd * -> the requested PHP extension gd is missing from your system.
    - Installation request for dapphp/securimage 3.5.* -> satisfiable by dapphp/securimage[3.5.4].



But clearly GD is installed..


print_r(gd_info());
Array
(
    [GD Version] => 2.1.1
    [FreeType Support] => 1
    [FreeType Linkage] => with freetype
    [T1Lib Support] =>
    [GIF Read Support] => 1
    [GIF Create Support] => 1
    [JPEG Support] => 1
    [PNG Support] => 1
    [WBMP Support] => 1
    [XPM Support] => 1
    [XBM Support] => 1
    [JIS-mapped Japanese Font Support] =>


$locate gd.so 
/usr/lib/libgd.so
/usr/lib/libgd.so.3
/usr/lib/libgd.so.3.0.0
/usr/lib/php/modules/gd.so


grep gd.so /etc/php/php.ini 
extension=gd.so

(I am using Arch, which only has one php.ini, and not one for apache and one for cli)

Am I missing a step somewhere?

update: if I remove dapphp/securimage from the composer.json, the update is fine, so it seems to be a problem just with that one... how important IS that anyway? (i'll soon find out)

also, I get the message
Package facebook/php-sdk is abandoned, you should avoid using it. Use facebook/php-sdk-v4 instead.


replacing with
"facebook/php-sdk-v4": "4.*",


works...

and, shouldn't composer.lock be in the gitignore list? doing a pull created a conflict, which then caused problems with the update.
ntisithoj replied on at Permalink Reply
ntisithoj
Am i pulling from the wrong place? Like I said, I did a "git pull", againsthttps://github.com/concrete5/concrete5-5.7.0.git...... should I be pulling from a particular branch? I have been assuming that everything gets merged into the 'develop' branch. Is that not correct?

Thanks
ntisithoj replied on at Permalink Reply
ntisithoj
just tested it again with the latest 5.7.4b1 on github

same problem
andrew replied on at Permalink Reply
andrew
refreshDatabase was changed to upgradeDatabase in this commit on February 25th:

https://github.com/concrete5/concrete5-5.7.0/commit/b64cabe7a66321d6...

Any source pulled after that time shouldn't be calling the refreshDatabse method. As I said before, you need to update from Github.