Error when adding a file

Permalink
Hi everyone!
I'm trying to add a PDF file to our page, and I'm not much successful with it. The file can't be uploaded due to the error: Declaration of Carbon\Carbon::setTime($hour, $minute, $second = 0) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL). As far as I get it, it has something to do with the PHP version being updated. What do I need to do and whom to contact? The issue is pretty urgent. Thanks in advance!

 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
What is your Concrete5 version?
dinara27 replied on at Permalink Reply
Core Version: 5.7.5.13
Version Installed: 5.7.5.13
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
I think that error is being thrown because of a PHP upgrade.
The file causing the error can be found at concrete/vendor/nesbot/carbon/src/Carbon/Carbon.php.
Line 671 is where the error is coming from...
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
I have just tested this on a dummy concrete5.7.5.13 install and I can confirm that changing line 671 of the concrete/vendor/nesbot/carbon/src/Carbon/Carbon.php file to...
public function setTime($hour, $minute, $second = NULL, $microseconds = NULL)

does fix this error.
dinara27 replied on at Permalink Reply
Thank you! I've tried upgrading my concrete5 version and it kinda helped (except there were some minor issues with the content)!