Raju Tech Blog - Forum Topic

Forum Topic

Thanks for your participation and contribution.


Back to Useful References

OctoberCMS Martin Forms Plugin Error

Post a reply
450 views
i90runner
i90runner

OctoberCMS Martin Forms Plugin Error

[2022-10-29 18:45:45] local.ERROR: Carbon\Exceptions\InvalidFormatException: Data missing in /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php:678
Stack trace:
#0 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/october/rain/src/Argon/Argon.php(50): Carbon\Carbon::rawCreateFromFormat('Y-m-d H:i:s.u', '2022-10-29 18:4...', NULL)
#1 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php(708): October\Rain\Argon\Argon::createFromFormatWithCurrentLocale('Y-m-d H:i:s.u', '2022-10-29 18:4...')
#2 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/october/rain/src/Database/Model.php(582): Carbon\Carbon::createFromFormat('Y-m-d H:i:s.u', '2022-10-29 18:4...')
#3 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(835): October\Rain\Database\Model->asDateTime('2022-10-29 18:4...')
#4 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/october/rain/src/Database/Model.php(599): Illuminate\Database\Eloquent\Model->fromDateTime('2022-10-29 18:4...')
#5 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php(580): October\Rain\Database\Model->fromDateTime('2022-10-29 18:4...')
#6 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/october/rain/src/Database/Model.php(1235): Illuminate\Database\Eloquent\Model->setAttribute('created_at', '2022-10-29 18:4...')
#7 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1539): October\Rain\Database\Model->setAttribute('created_at', '2022-10-29 18:4...')
#8 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/october/rain/src/Extension/ExtendableTrait.php(469): Illuminate\Database\Eloquent\Model->__set('created_at', '2022-10-29 18:4...')
#9 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/october/rain/src/Database/Model.php(651): October\Rain\Database\Model->extendableSet('created_at', '2022-10-29 18:4...')
#10 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/plugins/martin/forms/classes/MagicForm.php(192): October\Rain\Database\Model->__set('created_at', '2022-10-29 18:4...')
#11 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/modules/system/traits/DependencyMaker.php(29): Martin\Forms\Classes\MagicForm->onFormSubmit()
#12 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/modules/cms/classes/ComponentBase.php(197): Cms\Classes\ComponentBase->makeCallMethod(Object(Martin\Forms\Components\GenericForm), 'onFormSubmit')
#13 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/modules/cms/classes/Controller.php(897): Cms\Classes\ComponentBase->runAjaxHandler('onFormSubmit')
#14 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/modules/cms/classes/Controller.php(762): Cms\Classes\Controller->runAjaxHandler('genericForm::on...')
#15 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/modules/cms/classes/Controller.php(375): Cms\Classes\Controller->execAjaxHandlers()
#16 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/modules/cms/classes/Controller.php(222): Cms\Classes\Controller->runPage(Object(Cms\Classes\Page))
#17 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/modules/cms/classes/CmsController.php(50): Cms\Classes\Controller->run('contact')
#18 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Cms\Classes\CmsController->run('contact')
#19 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('run', Array)
#20 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Cms\Classes\CmsController), 'run')
#21 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): Illuminate\Routing\Route->runController()
#22 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Routing/Router.php(681): Illuminate\Routing\Route->run()
#23 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#24 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/plugins/rainlab/translate/classes/LocaleMiddleware.php(29): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#25 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): RainLab\Translate\Classes\LocaleMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#26 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/plugins/alxy/captcha/middleware/CaptchaMiddleware.php(51): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#27 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Alxy\Captcha\Middleware\CaptchaMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#28 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#29 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#32 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#33 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#34 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#35 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#36 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#37 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#38 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#39 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Routing/Router.php(683): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#40 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#41 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Routing/Router.php(624): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#42 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/october/rain/src/Router/CoreRouter.php(31): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#43 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): October\Rain\Router\CoreRouter->dispatch(Object(Illuminate\Http\Request))
#44 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#45 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/plugins/serenitynow/cacheroute/classes/RouteCacheMiddleware.php(19): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): SerenityNow\Cacheroute\Classes\RouteCacheMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/october/rain/src/Foundation/Http/Middleware/CheckForMaintenanceMode.php(23): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#50 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/plugins/octobro/api/vendor/barryvdh/laravel-cors/src/HandlePreflight.php(34): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#51 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Barryvdh\Cors\HandlePreflight->handle(Object(Illuminate\Http\Request), Object(Closure))
#52 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#53 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#54 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#55 /Users/raju/Dev/AzureDevOps/H1BSalaryOrg/index.php(43): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#56 {main}  

./AzureDevOps/H1BSalaryOrg/plugins/martin/forms folder and replace DateTime format

From Y-m-d to From date('Y-m-d H:i:s.u')
       $record->created_at = date('Y-m-d H:i:s.u');
        // format('Y-m-d H:i:s.u'),

1-1 of 1

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.