Prevent error when updating an existing asset via WebDav#1
Closed
BlackbitDevs wants to merge 32 commits into
Closed
Prevent error when updating an existing asset via WebDav#1BlackbitDevs wants to merge 32 commits into
BlackbitDevs wants to merge 32 commits into
Conversation
In the `$this->asset->save()` call, the stream can get closed, which leads to a TypeError when trying to close the stream. The extra `is_resource` check prevents this.
…rent background turns out black instead of white
…esting a thumbnail not deferred we need to ensure it exists
on certain database names, dropping the application log tables fails because the database name is unquoted
on certain database names, dropping the application log tables fails because the database name is unquoted
…n Field-Collection
…1735) * Setup Content Security Policy header based on new handler. * Content Security Handler - Whitelisting Urls (Modified)
…mcore#11817) * optimize tables with full text indexes periodically * optimize tables with full text indexes periodically
* add fillename postfix and prefix options * add filename postfix and prefix to lowqualtity command * introduce filenameRegex option * fix filenameRegex conditionVariable * empty commit * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Bernhard Rusch <brusch@users.noreply.github.com>
…ication store and Fieldcollections
* [Improvement] Copy the icon path by clicking the icon * Update bundles/AdminBundle/Resources/views/Admin/Misc/iconList.html.twig * Update iconList.html.twig * Update bundles/AdminBundle/Resources/views/Admin/Misc/iconList.html.twig Co-authored-by: Bernhard Rusch <brusch@users.noreply.github.com>
…esult (pimcore#11825) * Fix: KeyGroupRelation::getById returns wrong result * Fix also CollectionGroupRelation, use LEFT JOIN, throw/catch NotFoundException
The header of a custom-report when exporting to CSV was repeating every 5000 entries. Fixed this to only print the header once.
…mcore#11763) * Image Optimization using the new package - spatie/image-optimizer * Fix - Image Optimization using spatie/image-optimizer * Fix - Image Optimization using spatie/image-optimizer * Fix - spatie/image-optimizer * Update lib/Image/Optimizer/AbstractCommandOptimizer.php Co-authored-by: Jacob Dreesen <j.dreesen@neusta.de> * Updated deprecation message - spatie/image-optimizer * Spatie image optimizer changes * Update doc/Development_Documentation/23_Installation_and_Upgrade/09_Upgrade_Notes/README.md Co-authored-by: Jacob Dreesen <j.dreesen@neusta.de> * Fixed upgrade notes Co-authored-by: Jacob Dreesen <j.dreesen@neusta.de> Co-authored-by: Bernhard Rusch <bernhard.rusch@elements.at>
…e to protected (pimcore#11846) * Changed the method mode * Changed the method mode * Update Areablock.php Co-authored-by: Bernhard Rusch <brusch@users.noreply.github.com>
# Conflicts: # bundles/InstallBundle/Resources/install.sql
BlackbitDevs
pushed a commit
that referenced
this pull request
Jul 6, 2022
…s deprecate (pimcore#12458) * [PHP 8.1] fix Passing null to parameter #1 ($string) of type string is deprecate https://github.com/coreshop/CoreShop/runs/6981738951?check_suite_focus=true#step:17:93 * Update Staticroute.php * Update Staticroute.php * Update Staticroute.php * Update models/Staticroute.php Co-authored-by: Sebastian Blank <sebastian.bl@gmx.de> Co-authored-by: Bernhard Rusch <brusch@users.noreply.github.com> Co-authored-by: Sebastian Blank <sebastian.bl@gmx.de>
BlackbitDevs
pushed a commit
that referenced
this pull request
Aug 8, 2022
… Passing null to parameter #1 ($string) of type string is deprecated" when calling it with null
BlackbitDevs
pushed a commit
that referenced
this pull request
Aug 23, 2022
… Passing null to parameter #1 ($string) of type string is deprecated" when calling it with null (pimcore#12839)
BlackbitDevs
pushed a commit
that referenced
this pull request
Nov 22, 2022
Example error message:
Warning: Undefined array key "localizedfields"
Es ist eine Ausnahme aufgetreten - der Vorgang konnte nicht durchgeführt werden. Bitte laden Sie die Adminoberfläche neu und versuchen Sie es danach erneut.Timestamp: Wed Nov 09 2022 16:06:23 GMT+0100 (Mitteleuropäische Normalzeit) Status: 500 | Internal Server Error URL: /admin/object-helper/grid-get-column-config Message: Warning: Undefined array key "localizedfields" Trace: in /var/www/html/vendor/pimcore/pimcore/models/DataObject/Service.php:1263 #0 /var/www/html/vendor/pimcore/pimcore/bundles/AdminBundle/Controller/Admin/DataObject/DataObjectHelperController.php(257): Pimcore\Model\DataObject\Service::getCustomGridFieldDefinitions('subscription', 49356) #1 /var/www/html/vendor/pimcore/pimcore/bundles/AdminBundle/Controller/Admin/DataObject/DataObjectHelperController.php(225): Pimcore\Bundle\AdminBundle\Controller\Admin\DataObject\DataObjectHelperController->doGetGridColumnConfig(Object(Symfony\Component\HttpFoundation\Request), Object(Pimcore\Config)) #2 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(153): Pimcore\Bundle\AdminBundle\Controller\Admin\DataObject\DataObjectHelperController->gridGetColumnConfigAction(Object(Symfony\Component\HttpFoundation\Request), Object(Pimcore\Config)) #3 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(75):
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) pimcore#4 /var/www/html/vendor/symfony/http-kernel/Kernel.php(202): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) pimcore#5 /var/www/html/public/index.php(40): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) pimcore#6 {main}
BlackbitDevs
pushed a commit
that referenced
this pull request
Dec 19, 2022
…ype string is deprecated"
BlackbitDevs
pushed a commit
that referenced
this pull request
Dec 20, 2022
…ype string is deprecated" (pimcore#13828)
BlackbitDevs
pushed a commit
that referenced
this pull request
Jan 4, 2023
…f type resource, null given Folder Preview $tileThumb->getStream can return null
BlackbitDevs
pushed a commit
that referenced
this pull request
Aug 1, 2023
* Update Video.php Pimcore\Model\Asset\Video::getThumbnailConfig(): Argument #1 ($config) must be of type Pimcore\Model\Asset\Video\Thumbnail\Config|string, null given, called in /var/www/html/vendor/pimcore/pimcore/models/Document/Editable/Video.php on line 492 File: /var/www/html/vendor/pimcore/pimcore/models/Asset/Video.php Line: 73 * Update Video.php strpos(): Argument #1 ($haystack) must be of type string, int given File: /var/www/html/vendor/pimcore/pimcore/models/Document/Editable/Video.php Line: 938 some values arent strings
BlackbitDevs
pushed a commit
that referenced
this pull request
Aug 17, 2023
…when uploading video (pimcore#15621) * Fix: Ceil():Argument #1 ($num) must be of type int|float, null given when uploading video * Fix wrong php doc. * move ceil to getDurationString() * Remove unnecessary int cast * Make getDurationString non static
BlackbitDevs
pushed a commit
that referenced
this pull request
Aug 30, 2023
…of type int|float, string given
BlackbitDevs
pushed a commit
that referenced
this pull request
Aug 30, 2023
…$string1) of type string is deprecated" when cpath is NULL
BlackbitDevs
pushed a commit
that referenced
this pull request
Oct 11, 2023
* Fallback to url if text is disabled Fix `htmlspecialchars(): Argument #1 ($string) must be of type string, null given` * Update models/Document/Editable/Link.php Readable code Co-authored-by: Divesh Pahuja <divesh.pahuja@pimcore.com> --------- Co-authored-by: Divesh Pahuja <divesh.pahuja@pimcore.com>
BlackbitDevs
pushed a commit
that referenced
this pull request
Oct 11, 2023
…core#15861) * set cpath when using AbstractElement::setProperty() * prevent error "E_DEPRECATED: strcmp(): Passing null to parameter #1 ($string1) of type string is deprecated" when cpath is NULL * fill cpath based on owner element if not set
BlackbitDevs
pushed a commit
that referenced
this pull request
Jan 19, 2024
Automated PR from CE repository
BlackbitDevs
pushed a commit
that referenced
this pull request
Aug 12, 2024
BlackbitDevs
pushed a commit
that referenced
this pull request
May 26, 2025
…aVersionTimestamp) must be of type int, null given (pimcore#18057)
kingjia90
pushed a commit
that referenced
this pull request
Aug 8, 2025
kingjia90
pushed a commit
that referenced
this pull request
Aug 29, 2025
Can not filter checkbox values in Grid. Fatal Error File - vendor/doctrine/dbal/src/Connection.php Line - 568 Trace - Doctrine\DBAL\Connection::quote(): Argument #1 ($value) must be of type string, int given, called in vendor/pimcore/pimcore/models/DataObject/ClassDefinition/Data/Checkbox.php on line 174 Trace - #0 vendor/pimcore/pimcore/models/DataObject/ClassDefinition/Data/Checkbox.php(174): Doctrine\DBAL\Connection->quote() #1 vendor/pimcore/pimcore/models/DataObject/ClassDefinition/Data/Checkbox.php(158): Pimcore\Model\DataObject\ClassDefinition\Data\Checkbox->getFilterConditionExt() #2 vendor/pimcore/admin-ui-classic-bundle/src/Helper/GridHelperService.php(366): Pimcore\Model\DataObject\ClassDefinition\Data\Checkbox->getFilterCondition() #3 vendor/pimcore/admin-ui-classic-bundle/src/Helper/GridHelperService.php(667): Pimcore\Bundle\AdminBundle\Helper\GridHelperService->getFilterCondition() pimcore#4 vendor/pimcore/admin-ui-classic-bundle/src/Controller/Admin/DataObject/DataObjectActionsTrait.php(102): Pimcore\Bundle\AdminBundle\Helper\GridHelperService->prepareListingForGrid() pimcore#5 vendor/pimcore/admin-ui-classic-bundle/src/Controller/Admin/DataObject/DataObjectController.php(1693): Pimcore\Bundle\AdminBundle\Controller\Admin\DataObject\DataObjectController->gridProxy() pimcore#6 vendor/symfony/http-kernel/HttpKernel.php(181): Pimcore\Bundle\AdminBundle\Controller\Admin\DataObject\DataObjectController->gridProxyAction() pimcore#7 vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw() pimcore#8 vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle() pimcore#9 vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle() pimcore#10 vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() pimcore#11 public/index.php(19): require_once('...') pimcore#12 {main}
BlackbitDevs
pushed a commit
that referenced
this pull request
Oct 6, 2025
…ore#18321) Pimcore\Translation\Translator::trans(): Argument #1 ($id) must be of type string, null given Fixed by adding a condition to check whether abbreviation is null and using the untranslated ID instead.
BlackbitDevs
pushed a commit
that referenced
this pull request
Oct 6, 2025
…reationDate) must be of type string, null given (pimcore#18678) * Update creationDate assignment with fallback * Check creation date when setting creation date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the
$this->asset->save()call, the stream can get closed, which leads to a TypeError when trying to close the stream again.The extra
is_resourcecheck prevents this.This can be reproduced by trying to upload an asset twice: