Skip to content
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

Bulk creation: error when putting only 1 URL #1686

Closed
kalvn opened this issue Jan 18, 2021 · 0 comments · Fixed by #1688
Closed

Bulk creation: error when putting only 1 URL #1686

kalvn opened this issue Jan 18, 2021 · 0 comments · Fixed by #1688
Assignees
Labels
bug it's broken!
Milestone

Comments

@kalvn
Copy link

kalvn commented Jan 18, 2021

If you put only 1 URL in the bulk creation textbox, you get the following error on the next page:

Error: Call to a member function format() on null

The full stacktrace is:

Call to a member function format() on null
C:\Users\user\workspace\sandbox\shaarli\tmp\includes.cedf684561d925457130839629000a81.rtpl.php45
#0 C:\Users\user\workspace\sandbox\shaarli\inc\rain.tpl.class.php(175): include()
#1 C:\Users\user\workspace\sandbox\shaarli\tmp\editlink.batch.b91ef64efc3688266305ea9b42e5017e.rtpl.php(4): RainTPL->draw('./includes')
#2 C:\Users\user\workspace\sandbox\shaarli\inc\rain.tpl.class.php(190): include('C:\\Users\\user...')
#3 C:\Users\user\workspace\sandbox\shaarli\application\render\PageBuilder.php(253): RainTPL->draw('editlink.batch', true)
#4 C:\Users\user\workspace\sandbox\shaarli\application\front\controller\visitor\ShaarliVisitorController.php(66): Shaarli\Render\PageBuilder->render('editlink.batch', '')
#5 C:\Users\user\workspace\sandbox\shaarli\application\front\controller\admin\ShaarePublishController.php(66): Shaarli\Front\Controller\Visitor\ShaarliVisitorController->render('editlink.batch')
#6 [internal function]: Shaarli\Front\Controller\Admin\ShaarePublishController->displayCreateBatchForms(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#7 C:\Users\user\workspace\sandbox\shaarli\vendor\slim\slim\Slim\Handlers\Strategies\RequestResponse.php(40): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#8 C:\Users\user\workspace\sandbox\shaarli\vendor\slim\slim\Slim\Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#9 C:\Users\user\workspace\sandbox\shaarli\application\front\ShaarliMiddleware.php(55): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#10 C:\Users\user\workspace\sandbox\shaarli\application\front\ShaarliAdminMiddleware.php(25): Shaarli\Front\ShaarliMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#11 [internal function]: Shaarli\Front\ShaarliAdminMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#12 C:\Users\user\workspace\sandbox\shaarli\vendor\slim\slim\Slim\DeferredCallable.php(57): call_user_func_array(Array, Array)
#13 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#14 C:\Users\user\workspace\sandbox\shaarli\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#15 C:\Users\user\workspace\sandbox\shaarli\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(117): Slim\Route->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#16 C:\Users\user\workspace\sandbox\shaarli\vendor\slim\slim\Slim\Route.php(268): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#17 C:\Users\user\workspace\sandbox\shaarli\vendor\slim\slim\Slim\App.php(503): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#18 C:\Users\user\workspace\sandbox\shaarli\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#19 C:\Users\user\workspace\sandbox\shaarli\vendor\slim\slim\Slim\App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#20 C:\Users\user\workspace\sandbox\shaarli\vendor\slim\slim\Slim\App.php(297): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#21 C:\Users\user\workspace\sandbox\shaarli\index.php(196): Slim\App->run(true)
#22 {main}
@ArthurHoaro ArthurHoaro added the bug it's broken! label Jan 19, 2021
@ArthurHoaro ArthurHoaro self-assigned this Jan 19, 2021
@ArthurHoaro ArthurHoaro added this to the 0.12.2 milestone Jan 19, 2021
ArthurHoaro added a commit to ArthurHoaro/Shaarli that referenced this issue Jan 19, 2021
Make sure that header metadata associated with permalink is only used in linklist template.

Fixes shaarli#1686
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug it's broken!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants