ViewAssets error on installation
Permalink Browser Info Environment
I've tried downloading and installing the package twice now, and each time I get this error when I click the install button:
Declaration of Concrete\Package\Instafolio\Block\Instafolio\Controller::registerViewAssets() should be compatible with Concrete\Core\Block\BlockController::registerViewAssets($outputContent = '')
When I navigate back to the "Extend Concrete5" dashboard page, Instafolio shows as installed, but it's not available as a block to add to a page. When I try to uninstall, I get another error:
An exception occurred while executing 'DROP TABLE btInstafolio': SQLSTATE[42S02]: Base table or view not found: 1051 Unknown table 'nutmegan_conc255.btInstafolio'
But then it shows as uninstalled, and I can delete the package folder with no problems.
Any thoughts on why this might be happening?
Declaration of Concrete\Package\Instafolio\Block\Instafolio\Controller::registerViewAssets() should be compatible with Concrete\Core\Block\BlockController::registerViewAssets($outputContent = '')
When I navigate back to the "Extend Concrete5" dashboard page, Instafolio shows as installed, but it's not available as a block to add to a page. When I try to uninstall, I get another error:
An exception occurred while executing 'DROP TABLE btInstafolio': SQLSTATE[42S02]: Base table or view not found: 1051 Unknown table 'nutmegan_conc255.btInstafolio'
But then it shows as uninstalled, and I can delete the package folder with no problems.
Any thoughts on why this might be happening?
Type: | Ticket |
---|---|
Status: | Archived |
It is there if you click on Environment right under the title of my post.
Hi,
Thanks, I'll test this in my local environment. Hang on.
xxcriversxx
Thanks, I'll test this in my local environment. Hang on.
xxcriversxx
Hi,
I was able to install this successfully without any issues. Can you possibly send me login info so I can confirm whats happening?
xxcriversxx
I was able to install this successfully without any issues. Can you possibly send me login info so I can confirm whats happening?
xxcriversxx
Hi. I am having an identical problem with the the same error messages. Uninstalling/reinstalling does the same thing. I'm using this version:
# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000
Thanks,
Mat
# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000
Thanks,
Mat
Hey Crispymores. I've just found this answer in another support post which fixes the problem. Funny thing is, crivers replied to this answer in February!
After a search I found a thread that said in php7 you may have to change
to
For anyone else with this issue:
1. I removed the package manually
2. Made the change in the blocks/instafolio/controller.php file
3. Manually re-uploaded the package
4. Installed it via the dashboard
5. It worked!
After a search I found a thread that said in php7 you may have to change
public function registerViewAssets()
to
public function registerViewAssets($outputContent = '')
For anyone else with this issue:
1. I removed the package manually
2. Made the change in the blocks/instafolio/controller.php file
3. Manually re-uploaded the package
4. Installed it via the dashboard
5. It worked!
Hi,
Thanks for taking the time to look into this. I was actually just about to inform you that the latest update will include this support fix for that version of PHP. This will be a non-issue for anyone in the future.
Thanks!
xxcriversxx
Thanks for taking the time to look into this. I was actually just about to inform you that the latest update will include this support fix for that version of PHP. This will be a non-issue for anyone in the future.
Thanks!
xxcriversxx
Mat and crivers,
Thank you for finding that! It worked perfectly.
Thank you for finding that! It worked perfectly.
Let me know if you need anything else.
Cheers!
xxcriversxx
Cheers!
xxcriversxx
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
xxcriversxx