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

Error bei internem Banner mit Umlaut/Leerzeichen im Dateinamen #27

Closed
BugBuster1701 opened this issue Sep 6, 2018 · 3 comments
Closed

Comments

@BugBuster1701
Copy link
Owner

Banner anlegen und speichern. Statt der Übersicht kommt dann:
Internal Server Error
/files/bilder/09_R%C3%BCdiger-Kaminski_Feldhase.jpg does not exist
at /vendor/contao/image/src/Image.php:59

Dateiname ist "09_Rüdiger-Kaminski_Feldhase.jpg"
Contao 4.4.21

@BugBuster1701 BugBuster1701 self-assigned this Sep 6, 2018
@BugBuster1701 BugBuster1701 changed the title Error bei internem Banner mit Umlaut im Dateinamen Error bei internem Banner mit Umlaut/Leerzeichen im Dateinamen Sep 6, 2018
@BugBuster1701
Copy link
Owner Author

/files/bilder/micha%20059.jpg does not exist

@BugBuster1701
Copy link
Owner Author

In Contao 3.5 mit Banner Modul 3.6.1 funktioniert es. (mit Leerzeichen im Dateinamen geprüft)

@BugBuster1701
Copy link
Owner Author

https://github.com/BugBuster1701/contao-banner-bundle/blob/master/src/Resources/contao/classes/DcaBanner.php#L177

InvalidArgumentException:
/daten/contao4go/contao439me.contaodev/files/bilder/micha%20059.jpg does not exist

  at vendor/contao/image/src/Image.php:59
  at Contao\Image\Image->__construct('/daten/contao4go/contao439me.contaodev/files/bilder/micha%20059.jpg', object(Imagine), object(Filesystem))
     (vendor/contao/core-bundle/src/Image/ImageFactory.php:121)
  at Contao\CoreBundle\Image\ImageFactory->create('/daten/contao4go/contao439me.contaodev/files/bilder/micha%20059.jpg', array(200.0, 200, 'proportional'))
     (vendor/bugbuster/contao-banner-bundle/src/Resources/contao/classes/DcaBanner.php:179)
  at BugBuster\Banner\DcaBanner->listBannerInternal(array('id' => '9', 'pid' => '2', 'sorting' => '256', 'tstamp' => '1536276939', 'banner_type' => 'banner_image', 'banner_name' => 'Leerzeichen im Dateinamen', 'banner_weighting' => '2', 'banner_url' => 'https://www.freepngs.com/', 'banner_jumpTo' => '0', 'banner_target' => '', 'banner_image' => 'I��ò-�荀�+48��', 'banner_image_extern' => '', 'banner_imgSize' => 'a:3:{i:0;s:3:"150";i:1;s:0:"";i:2;s:12:"proportional";}', 'banner_published' => '1', 'banner_start' => '', 'banner_stop' => '', 'banner_until' => '', 'banner_views_until' => '', 'banner_clicks_until' => '', 'banner_domain' => '', 'banner_cssid' => 'a:2:{i:0;s:0:"";i:1;s:0:"";}', 'banner_comment' => null))
     (vendor/bugbuster/contao-banner-bundle/src/Resources/contao/classes/DcaBanner.php:117)
  at BugBuster\Banner\DcaBanner->listBanner(array('id' => '9', 'pid' => '2', 'sorting' => '256', 'tstamp' => '1536276939', 'banner_type' => 'banner_image', 'banner_name' => 'Leerzeichen im Dateinamen', 'banner_weighting' => '2', 'banner_url' => 'https://www.freepngs.com/', 'banner_jumpTo' => '0', 'banner_target' => '', 'banner_image' => 'I��ò-�荀�+48��', 'banner_image_extern' => '', 'banner_imgSize' => 'a:3:{i:0;s:3:"150";i:1;s:0:"";i:2;s:12:"proportional";}', 'banner_published' => '1', 'banner_start' => '', 'banner_stop' => '', 'banner_until' => '', 'banner_views_until' => '', 'banner_clicks_until' => '', 'banner_domain' => '', 'banner_cssid' => 'a:2:{i:0;s:0:"";i:1;s:0:"";}', 'banner_comment' => null))
     (vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:4462)
  at Contao\DC_Table->parentView()
     (vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:351)
  at Contao\DC_Table->showAll()
     (vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:620)
  at Contao\Backend->getBackendModule('banner', null)
     (vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:132)
  at Contao\BackendMain->run()
     (vendor/contao/core-bundle/src/Controller/BackendController.php:55)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/app_dev.php:64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant