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!
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!
What is your Concrete5 version?
Core Version: 5.7.5.13
Version Installed: 5.7.5.13
Version Installed: 5.7.5.13
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...
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...
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...
does fix this error.
public function setTime($hour, $minute, $second = NULL, $microseconds = NULL)
does fix this error.
Thank you! I've tried upgrading my concrete5 version and it kinda helped (except there were some minor issues with the content)!