Hi
i have this error message now when i want to go on back after last update http://grav.en-toutes-lettres.fr/admin
Web site work in front but I cannot go on back now
I have tried bin/gpm update and i have this message
Fatal error: Call to a member function set() on a non-object in /homepages/22/d294493844/htdocs/grav/system/src/Grav/Common/GPM/Local/ AbstractPackageCollection.php on line 12
Whoops\Exception\ErrorException: Call to a member function set() on a non-object in file /homepages/22/d294493844/htdocs/grav/system/src/Grav/Common/GPM/Local/ AbstractPackageCollection.php on line 12
Stack trace:
1. () /homepages/22/d294493844/htdocs/grav/system/src/Grav/Common/GPM/Local/ AbstractPackageCollection.php:12
Fatal error: Call to a member function set() on a non-object in /homepages/22/d294493844/htdocs/grav/system/src/Grav/Common/GPM/Local/ AbstractPackageCollection.php on line 12
Whoops\Exception\ErrorException: Call to a member function set() on a non-object in file /homepages/22/d294493844/htdocs/grav/system/src/Grav/Common/GPM/Local/ AbstractPackageCollection.php on line 12
Stack trace:
1. () /homepages/22/d294493844/htdocs/grav/system/src/Grav/Common/GPM/Local/ AbstractPackageCollection.php:12
Nothing from my side too
I have two Grav sites on the same Webhost. One was upgrade to RC5 with this current fatal error. The second always in v1.0.0-rc.4 work without any issue. for info pb is only to go to admin, back, both sites are ok on front
Open: /homepages/22/d294493844/htdocs/grav/system/src/Grav/Common/GPM/Local/ AbstractPackageCollection.php
use Grav\Common\GPM\Common\AbstractPackageCollection as BaseCollection;
abstract class AbstractPackageCollection extends BaseCollection
{
public function __construct($items)
{
foreach ($items as $name => $data) {
$data->set('slug', $name);
$this->items[$name] = new Package($data, $this->type);
}
As described there I have cleared the cache-directory in root, admin does still not work. Interesting fact is, if you are updating via admin backend you everything works fine. If you are installing new plugins via cli then there are errors. But if you are doing a simple selfupgrade at first it works like a charm.
Had the same issue. Appeared not exactly after update core but when i tried to install some plugins via cli. The only solution for me was restore from backup, update once again. This time via admin. Maybe there is problem with windows oriented envirorment and : / ; ?
I’m also having this issue. I’ve tried installing the latest version of both Grav and the Admin panel to no avail.
When trying to run index as an SSH command I get this
grav]$ php bin/gpm index
PHP Fatal error: Call to a member function set() on a non-object in /home/rdewar/public_html/grav/system/src/Grav/Common/GPM/Local/Abstrac tPackageCollection.php on line 12
Whoops\Exception\ErrorException: Call to a member function set() on a non-object in file /home/rdewar/public_html/grav/system/src/Grav/Common/GPM/Local/Abstrac tPackageCollection.php on line 12
Stack trace:
1. () /home/rdewar/public_html/grav/system/src/Grav/Common/GPM/Local/Abstrac tPackageCollection.php:12
Any ideas on how to fix this without rolling back to a previous version?
Can one of you guys who are having this problem perhaps zip up your site and drop it on dropbox, then PM me the link to download it? I would like to try to recreate this as I can’t on my own setups.
@rhukster unfortunately the issue still seems to be there. Still getting
Whoops\Exception\ErrorException thrown with message "Call to a member function set() on a non-object"
Stacktrace:
#0 in /home/rdewar/public_html/grav/system/src/Grav/Common/GPM/Local/Abstrac tPackageCollection.php:12
In SSH for bin/gpm index and
Whoops\Exception\ErrorException thrown with message "Call to a member function set() on a non-object"
Stacktrace:
#0 in /home/rdewar/public_html/grav/system/src/Grav/Common/GPM/Local/Abstrac tPackageCollection.php:12
In admin.
Am zipping up a copy of the site for you now. Will PM you the details.
Pete
Thanks. I’ll take a look but one other thing to try if you could:
Install a new core grav install on the same server in another location, and see if you have the same problem there? That would help isolate if its a code issue or a server issue. Thanks!
I have the same issue with a clear install, directly at login, on a personnal server (Synology) but after uploading on a online server there is no error, so it looks like a server issue.