-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish article date error: Data Missing #334
Comments
Check your error logs and see if you can get a stack trace. |
Or maybe try to use a different SQL engine (SQLite) to test where the problem is. |
Where do I find the error logs? |
In backend administration in Settings > Event log. Or in file system: |
Closing as it has been over a month since any activity on this occurred. |
this issue is surfacing on Windows 2019 server: timezone: Asia/Singapore here is the trace: InvalidArgumentException: Data missing in C:\STTC\vendor\nesbot\carbon\src\Carbon\Carbon.php:917
Stack trace:
#0 C:\STTC\vendor\jenssegers\date\src\Date.php(100): Carbon\Carbon::createFromFormat()
#1 C:\STTC\vendor\october\rain\src\Database\Model.php(562): Jenssegers\Date\Date::createFromFormat()
#2 C:\STTC\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasAttributes.php(738): October\Rain\Database\Model->asDateTime()
#3 C:\STTC\vendor\october\rain\src\Database\Model.php(579): Illuminate\Database\Eloquent\Model->fromDateTime()
#4 C:\STTC\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasAttributes.php(532): October\Rain\Database\Model->fromDateTime()
#5 C:\STTC\vendor\october\rain\src\Database\Model.php(1214): Illuminate\Database\Eloquent\Model->setAttribute()
#6 C:\STTC\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(1394): October\Rain\Database\Model->setAttribute()
#7 C:\STTC\vendor\october\rain\src\Extension\ExtendableTrait.php(387): Illuminate\Database\Eloquent\Model->__set()
#8 C:\STTC\vendor\october\rain\src\Database\Model.php(635): October\Rain\Database\Model->extendableSet()
#9 C:\STTC\modules\backend\traits\FormModelSaver.php(81): October\Rain\Database\Model->__set()
#10 C:\STTC\modules\backend\traits\FormModelSaver.php(40): Backend\Behaviors\FormController->setModelAttributes()
#11 C:\STTC\modules\backend\behaviors\FormController.php(317): Backend\Behaviors\FormController->prepareModelsToSave()
#12 [internal function]: Backend\Behaviors\FormController->update_onSave()
#13 C:\STTC\vendor\october\rain\src\Extension\ExtendableTrait.php(411): call_user_func_array()
#14 C:\STTC\modules\backend\classes\Controller.php(184): Backend\Classes\Controller->extendableCall()
#15 [internal function]: Backend\Classes\Controller->__call()
#16 C:\STTC\modules\backend\classes\Controller.php(620): call_user_func_array()
#17 C:\STTC\modules\backend\classes\Controller.php(478): Backend\Classes\Controller->runAjaxHandler()
#18 C:\STTC\modules\backend\classes\Controller.php(277): Backend\Classes\Controller->execAjaxHandlers()
#19 C:\STTC\modules\backend\classes\BackendController.php(165): Backend\Classes\Controller->run()
#20 [internal function]: Backend\Classes\BackendController->run() |
@chrisvidal What is your |
Asia/Singapore in |
@chrisvidal |
we tried that to leave it on I also tried unsuccessfully to use |
@chrisvidal can you modify vendor/october/rain/src/database/model.php return Argon::createFromFormat(
str_replace('.v', '.u', $this->getDateFormat()),
$value
); to Also what DB driver are you using? |
alright thanks @LukeTowers |
result is |
@chrisvidal I need to see both variables, what is the output of |
damnit I didn't get it, as it showed up in a long dialog box, sorry |
I'll need to see it in order to help further. |
I understand, but we are going to have to wait - I do not have any more access to the client server as we are biding for their project, testing OC installation on their Windows env. |
Sounds good, looking forward to an update. |
alright, I am facing the problem now, since I am doing the installation on this Winder Server. |
so the results from "Y-m-d H:i:s.v"
"2020-10-12 02:49:40.673" settings are as such |
results coming upon saving a new article in the blog plugin: "Y-m-d H:i:s.v"
"2020-10-12 03:32:38.420" |
after some digging, the blog post published date returns the value meaning that the datetime picker widget does not provide the expected format? |
@chrisvidal I can tell you that the JS based datetime picker does not include microseconds in it's format. Why on earth is the |
Where does this expected date format come from? Mmm not sure if related but looks like it laravel/framework#27200 and here laravel/framework#22407 |
@chrisvidal what version of the Laravel Framework are you using specifically? |
I just installed the last OC version with the wizard installer. Not sure which Laravel Framework version it is. |
@chrisvidal could you give https://github.com/octobercms/library/pull/528/files a try? |
here is the {
"name": "october/rain",
"description": "October Rain Library",
"homepage": "http://octobercms.com",
"keywords": ["october", "cms", "rain"],
"license": "MIT",
"authors": [
{
"name": "Alexey Bobkov",
"email": "[email protected]"
},
{
"name": "Samuel Georges",
"email": "[email protected]"
}
],
"require": {
"php": ">=7.0",
"doctrine/dbal": "2.5.*",
"erusev/parsedown-extra": "~0.7",
"kriswallsmith/assetic": "~1.3",
"linkorb/jsmin-php": "~1.0",
"leafo/scssphp": "~0.6",
"symfony/yaml": "~3.2",
"twig/twig": "~2.0",
"league/csv": "~8.0",
"jenssegers/date": "~3.0",
"laravel/tinker": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "~5.7",
"illuminate/database": "5.5.*",
"illuminate/filesystem": "5.5.*",
"illuminate/encryption": "5.5.*",
"illuminate/queue": "5.5.*",
"illuminate/support": "5.5.*",
"illuminate/log": "5.5.*",
"illuminate/mail": "5.5.*",
"illuminate/events": "5.5.*",
"illuminate/pagination": "5.5.*",
"illuminate/routing": "5.5.*",
"illuminate/validation": "5.5.*",
"illuminate/view": "5.5.*",
"illuminate/cache": "5.5.*",
"symfony/dom-crawler": "~3.1",
"symfony/css-selector": "~3.1",
"meyfa/phpunit-assert-gd": "1.1.0",
"squizlabs/php_codesniffer": "3.*",
"php-parallel-lint/php-parallel-lint": "^1.0"
},
"replace": {
"october/auth": "self.version",
"october/config": "self.version",
"october/database": "self.version",
"october/extension": "self.version",
"october/filesystem": "self.version",
"october/halcyon": "self.version",
"october/html": "self.version",
"october/mail": "self.version",
"october/network": "self.version",
"october/parse": "self.version",
"october/router": "self.version",
"october/support": "self.version",
"october/translation": "self.version"
},
"autoload": {
"files": [
"src/Support/helpers.php",
"src/Html/helpers.php",
"src/Parse/Assetic/Less/lessc.inc.php"
],
"psr-4": {
"October\\Rain\\": "src/"
},
"psr-0": {
"Less": "src/Parse/Assetic/Less/lib/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
],
"psr-4": {
"October\\Rain\\Tests\\": "tests/"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"minimum-stability": "dev",
"prefer-stable": true
} |
@chrisvidal were you able to apply https://github.com/octobercms/library/pull/528/files to see if that resolved your issue? |
having a remote call with my client in 2 hours to check this out. will post results here. |
ok it seems to be working, thanks so much @LukeTowers However, I am facing multiple issues from SQL Server with "simple" Eloquent query from the component |
@chrisvidal can you post the full error message you get for that / the full SQL statement it tries to run? |
|
@bennothommo can you take a look at the above? |
Maybe it is better that I create a new thread for this? |
Continuing thread in #525. |
Since the last OC 471 update, my client is facing again the date error issue when creating new post. OC #471 here are the errors:
and InvalidArgumentException: Data missing in D:\STTC\vendor\nesbot\carbon\src\Carbon\Carbon.php:917
Stack trace:
#0 D:\STTC\vendor\jenssegers\date\src\Date.php(100): Carbon\Carbon::createFromFormat()
#1 D:\STTC\vendor\october\rain\src\Database\Model.php(561): Jenssegers\Date\Date::createFromFormat()
#2 D:\STTC\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasAttributes.php(738): October\Rain\Database\Model->asDateTime()
#3 D:\STTC\vendor\october\rain\src\Database\Model.php(578): Illuminate\Database\Eloquent\Model->fromDateTime()
#4 D:\STTC\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasAttributes.php(532): October\Rain\Database\Model->fromDateTime()
#5 D:\STTC\vendor\october\rain\src\Database\Model.php(1213): Illuminate\Database\Eloquent\Model->setAttribute()
#6 D:\STTC\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(1394): October\Rain\Database\Model->setAttribute()
#7 D:\STTC\vendor\october\rain\src\Extension\ExtendableTrait.php(390): Illuminate\Database\Eloquent\Model->__set()
#8 D:\STTC\vendor\october\rain\src\Database\Model.php(634): October\Rain\Database\Model->extendableSet()
#9 D:\STTC\modules\backend\traits\FormModelSaver.php(81): October\Rain\Database\Model->__set()
#10 D:\STTC\modules\backend\traits\FormModelSaver.php(40): Backend\Behaviors\FormController->setModelAttributes()
#11 D:\STTC\modules\backend\behaviors\FormController.php(249): Backend\Behaviors\FormController->prepareModelsToSave()
#12 [internal function]: Backend\Behaviors\FormController->create_onSave()
#13 D:\STTC\vendor\october\rain\src\Extension\ExtendableTrait.php(414): call_user_func_array()
#14 D:\STTC\modules\backend\classes\Controller.php(184): Backend\Classes\Controller->extendableCall()
#15 [internal function]: Backend\Classes\Controller->__call()
#16 D:\STTC\modules\backend\classes\Controller.php(620): call_user_func_array()
#17 D:\STTC\modules\backend\classes\Controller.php(478): Backend\Classes\Controller->runAjaxHandler()
#18 D:\STTC\modules\backend\classes\Controller.php(277): Backend\Classes\Controller->execAjaxHandlers()
#19 D:\STTC\modules\backend\classes\BackendController.php(165): Backend\Classes\Controller->run()
#20 [internal function]: Backend\Classes\BackendController->run()
#21 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(54): call_user_func_array()
#22 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction()
#23 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Route.php(212): Illuminate\Routing\ControllerDispatcher->dispatch()
#24 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Route.php(169): Illuminate\Routing\Route->runController()
#25 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Router.php(658): Illuminate\Routing\Route->run()
#26 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#27 D:\STTC\modules\backend\classes\BackendController.php(68): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}()
#28 D:\STTC\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(131): Backend\Classes\BackendController->Backend\Classes\{closure}()
#29 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#30 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Middleware\SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}()
#31 D:\STTC\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(149): Illuminate\Routing\Middleware\SubstituteBindings->handle()
#32 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#33 D:\STTC\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}()
#34 D:\STTC\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(149): Illuminate\View\Middleware\ShareErrorsFromSession->handle()
#35 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#36 D:\STTC\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(63): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}()
#37 D:\STTC\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(149): Illuminate\Session\Middleware\StartSession->handle()
#38 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#39 D:\STTC\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}()
#40 D:\STTC\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(149): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
#41 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#42 D:\STTC\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(68): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}()
#43 D:\STTC\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(149): Illuminate\Cookie\Middleware\EncryptCookies->handle()
#44 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#45 D:\STTC\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}()
#46 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Router.php(660): Illuminate\Pipeline\Pipeline->then()
#47 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Router.php(635): Illuminate\Routing\Router->runRouteWithinStack()
#48 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Router.php(601): Illuminate\Routing\Router->runRoute()
#49 D:\STTC\vendor\october\rain\src\Router\CoreRouter.php(20): Illuminate\Routing\Router->dispatchToRoute()
#50 D:\STTC\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(176): October\Rain\Router\CoreRouter->dispatch()
#51 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()
#52 D:\STTC\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}()
#53 D:\STTC\vendor\october\rain\src\Foundation\Http\Middleware\CheckForMaintenanceMode.php(25): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle()
#54 D:\STTC\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(149): October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode->handle()
#55 D:\STTC\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#56 D:\STTC\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}()
#57 D:\STTC\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(151): Illuminate\Pipeline\Pipeline->then()
#58 D:\STTC\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#59 D:\STTC\index.php(43): Illuminate\Foundation\Http\Kernel->handle() |
Apparently, the |
Whenever I publish an article setting "published = true", and setting a published date/time, I get this error:
I then have to go into the database directly and set the published_at field. Any help on why this is happening?
I am using the latest OctoberCMS + latest plugin. I am using SQL Server with October CMS.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: