venveo / craft-bulkedit Goto Github PK
View Code? Open in Web Editor NEWBulk edit any set of elements
License: MIT License
Bulk edit any set of elements
License: MIT License
Do You have any plans to adjust this awesome plugin for the assets?
Bulk edit of images titles etc. would be really useful!
I'm looking to bulk edit fields on assets within my Craft (3.4.8) site.
All of the assets within one Volume have the same extra fields: a lightswitch and a toggle.
When I go to bulk edit them, I get a "These elements have no associated fields." error.
Is there any extra work to make them "associated"? They have identical fields (all blank/in the same state) at the moment.
Just checking on if you plan to add support for Craft 5? Thank you
I'm changing plain text fields on a few articles, and I see the request being made:
/admin/entries/articles?elementIds=376122%2C923538%2C923513%2C738502&elementType=craft%5Celements%5CEntry&siteId=1&fieldMeta%5B0%5D%5Bid%5D=130&fieldMeta%5B0%5D%5Bstrategy%5D=replace&fields%5Bdescription%5D=FOOBARBAZ
But nothing ever actually changes. I don't see anything added to the queue either. Am I missing something easy?
Hello,
we use your plugin in a craft cms & craft commerce multisite setup. Is it also possible to do bulk changes across sites?
Currently if we change at the top of the page the site and did the bulk edit in the modal window there is the primary site. Is it possible to enable this feature also for multisites?
Wondering if this plugin will get updated for Craft 4?
Every time I've tried to use this plugin, it's given me an error saying the change didn't go through. Here's the relevant portion of the queue.log, if it helps:
2018-11-16 21:44:47 [-][1][-][info][yii\db\Command::execute] UPDATE `bulkedit_history` SET `dateUpdated`='2018-11-17 02:44:47', `status`='completed', `originalValue`='{\"editable\":false,\"sectionId\":null,\"typeId\":null,\"authorId\":null,\"authorGroupId\":null,\"postDate\":null,\"before\":null,\"after\":null,\"expiryDate\":null,\"elementType\":\"craft\\\\elements\\\\Entry\",\"query\":null,\"subQuery\":null,\"contentTable\":\"{{%content}}\",\"customFields\":null,\"inReverse\":false,\"asArray\":false,\"id\":null,\"uid\":null,\"fixedOrder\":false,\"status\":[\"live\"],\"archived\":false,\"dateCreated\":null,\"dateUpdated\":null,\"siteId\":1,\"enabledForSite\":true,\"leaves\":false,\"relatedTo\":null,\"title\":null,\"slug\":null,\"uri\":null,\"search\":null,\"ref\":null,\"with\":null,\"orderBy\":{\"relations.sortOrder\":4},\"withStructure\":true,\"structureId\":null,\"level\":null,\"hasDescendants\":null,\"ancestorOf\":null,\"ancestorDist\":null,\"descendantOf\":null,\"descendantDist\":null,\"siblingOf\":null,\"prevSiblingOf\":null,\"nextSiblingOf\":null,\"positionedBefore\":null,\"positionedAfter\":null,\"select\":[\"**\"],\"selectOption\":null,\"distinct\":null,\"from\":null,\"groupBy\":null,\"join\":[[\"INNER JOIN\",\"{{%relations}} relations\",[\"and\",\"[[relations.targetId]] = [[elements.id]]\",{\"relations.sourceId\":\"1281\",\"relations.fieldId\":\"15\"},[\"or\",{\"relations.sourceSiteId\":null},{\"relations.sourceSiteId\":1}]]]],\"having\":null,\"union\":null,\"params\":[],\"queryCacheDuration\":null,\"queryCacheDependency\":null,\"where\":null,\"limit\":\"1\",\"offset\":null,\"indexBy\":null,\"emulateExecution\":false}' WHERE `id`=26
2018-11-16 21:44:47 [-][1][-][profile begin][yii\db\Command::execute] UPDATE `bulkedit_history` SET `dateUpdated`='2018-11-17 02:44:47', `status`='completed', `originalValue`='{\"editable\":false,\"sectionId\":null,\"typeId\":null,\"authorId\":null,\"authorGroupId\":null,\"postDate\":null,\"before\":null,\"after\":null,\"expiryDate\":null,\"elementType\":\"craft\\\\elements\\\\Entry\",\"query\":null,\"subQuery\":null,\"contentTable\":\"{{%content}}\",\"customFields\":null,\"inReverse\":false,\"asArray\":false,\"id\":null,\"uid\":null,\"fixedOrder\":false,\"status\":[\"live\"],\"archived\":false,\"dateCreated\":null,\"dateUpdated\":null,\"siteId\":1,\"enabledForSite\":true,\"leaves\":false,\"relatedTo\":null,\"title\":null,\"slug\":null,\"uri\":null,\"search\":null,\"ref\":null,\"with\":null,\"orderBy\":{\"relations.sortOrder\":4},\"withStructure\":true,\"structureId\":null,\"level\":null,\"hasDescendants\":null,\"ancestorOf\":null,\"ancestorDist\":null,\"descendantOf\":null,\"descendantDist\":null,\"siblingOf\":null,\"prevSiblingOf\":null,\"nextSiblingOf\":null,\"positionedBefore\":null,\"positionedAfter\":null,\"select\":[\"**\"],\"selectOption\":null,\"distinct\":null,\"from\":null,\"groupBy\":null,\"join\":[[\"INNER JOIN\",\"{{%relations}} relations\",[\"and\",\"[[relations.targetId]] = [[elements.id]]\",{\"relations.sourceId\":\"1281\",\"relations.fieldId\":\"15\"},[\"or\",{\"relations.sourceSiteId\":null},{\"relations.sourceSiteId\":1}]]]],\"having\":null,\"union\":null,\"params\":[],\"queryCacheDuration\":null,\"queryCacheDependency\":null,\"where\":null,\"limit\":\"1\",\"offset\":null,\"indexBy\":null,\"emulateExecution\":false}' WHERE `id`=26
2018-11-16 21:44:47 [-][1][-][profile end][yii\db\Command::execute] UPDATE `bulkedit_history` SET `dateUpdated`='2018-11-17 02:44:47', `status`='completed', `originalValue`='{\"editable\":false,\"sectionId\":null,\"typeId\":null,\"authorId\":null,\"authorGroupId\":null,\"postDate\":null,\"before\":null,\"after\":null,\"expiryDate\":null,\"elementType\":\"craft\\\\elements\\\\Entry\",\"query\":null,\"subQuery\":null,\"contentTable\":\"{{%content}}\",\"customFields\":null,\"inReverse\":false,\"asArray\":false,\"id\":null,\"uid\":null,\"fixedOrder\":false,\"status\":[\"live\"],\"archived\":false,\"dateCreated\":null,\"dateUpdated\":null,\"siteId\":1,\"enabledForSite\":true,\"leaves\":false,\"relatedTo\":null,\"title\":null,\"slug\":null,\"uri\":null,\"search\":null,\"ref\":null,\"with\":null,\"orderBy\":{\"relations.sortOrder\":4},\"withStructure\":true,\"structureId\":null,\"level\":null,\"hasDescendants\":null,\"ancestorOf\":null,\"ancestorDist\":null,\"descendantOf\":null,\"descendantDist\":null,\"siblingOf\":null,\"prevSiblingOf\":null,\"nextSiblingOf\":null,\"positionedBefore\":null,\"positionedAfter\":null,\"select\":[\"**\"],\"selectOption\":null,\"distinct\":null,\"from\":null,\"groupBy\":null,\"join\":[[\"INNER JOIN\",\"{{%relations}} relations\",[\"and\",\"[[relations.targetId]] = [[elements.id]]\",{\"relations.sourceId\":\"1281\",\"relations.fieldId\":\"15\"},[\"or\",{\"relations.sourceSiteId\":null},{\"relations.sourceSiteId\":1}]]]],\"having\":null,\"union\":null,\"params\":[],\"queryCacheDuration\":null,\"queryCacheDependency\":null,\"where\":null,\"limit\":\"1\",\"offset\":null,\"indexBy\":null,\"emulateExecution\":false}' WHERE `id`=26
2018-11-16 21:44:47 [-][1][-][trace][yii\db\Transaction::rollBack] Roll back transaction
2018-11-16 21:44:47 [-][1][-][error][venveo\bulkedit\services\BulkEdit::processHistoryItemsForElement] Transaction rolled back
2018-11-16 21:44:47 [-][1][-][error][venveo\bulkedit\queue\jobs\SaveBulkEditJob::execute] Could not save element in bulk edit job... SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'originalValue' at row 1
The SQL being executed was: UPDATE `bulkedit_history` SET `dateUpdated`='2018-11-17 02:44:47', `status`='completed', `originalValue`='{\"editable\":false,\"sectionId\":null,\"typeId\":null,\"authorId\":null,\"authorGroupId\":null,\"postDate\":null,\"before\":null,\"after\":null,\"expiryDate\":null,\"elementType\":\"craft\\\\elements\\\\Entry\",\"query\":null,\"subQuery\":null,\"contentTable\":\"{{%content}}\",\"customFields\":null,\"inReverse\":false,\"asArray\":false,\"id\":null,\"uid\":null,\"fixedOrder\":false,\"status\":[\"live\"],\"archived\":false,\"dateCreated\":null,\"dateUpdated\":null,\"siteId\":1,\"enabledForSite\":true,\"leaves\":false,\"relatedTo\":null,\"title\":null,\"slug\":null,\"uri\":null,\"search\":null,\"ref\":null,\"with\":null,\"orderBy\":{\"relations.sortOrder\":4},\"withStructure\":true,\"structureId\":null,\"level\":null,\"hasDescendants\":null,\"ancestorOf\":null,\"ancestorDist\":null,\"descendantOf\":null,\"descendantDist\":null,\"siblingOf\":null,\"prevSiblingOf\":null,\"nextSiblingOf\":null,\"positionedBefore\":null,\"positionedAfter\":null,\"select\":[\"**\"],\"selectOption\":null,\"distinct\":null,\"from\":null,\"groupBy\":null,\"join\":[[\"INNER JOIN\",\"{{%relations}} relations\",[\"and\",\"[[relations.targetId]] = [[elements.id]]\",{\"relations.sourceId\":\"1281\",\"relations.fieldId\":\"15\"},[\"or\",{\"relations.sourceSiteId\":null},{\"relations.sourceSiteId\":1}]]]],\"having\":null,\"union\":null,\"params\":[],\"queryCacheDuration\":null,\"queryCacheDependency\":null,\"where\":null,\"limit\":\"1\",\"offset\":null,\"indexBy\":null,\"emulateExecution\":false}' WHERE `id`=26
2018-11-16 21:44:47 [-][1][-][error][venveo\bulkedit\queue\jobs\SaveBulkEditJob::execute] Failed to save... Couldn’t save element 1281 (craft\elements\Entry)
2018-11-16 21:44:47 [-][1][-][error][craft\queue\QueueLogBehavior::afterError] [206] Bulk Edit in progress by (attempt: 1) - Error (time: 0.017s): Couldn’t save element 1281 (craft\elements\Entry)
2018-11-16 21:44:47 [-][1][-][error][yii\base\Exception] yii\base\Exception: Couldn’t save element 1281 (craft\elements\Entry) in /app/craft/vendor/venveo/craft-bulkedit/src/queue/jobs/SaveBulkEditJob.php:51
Stack trace:
#0 /app/craft/vendor/yiisoft/yii2-queue/src/Queue.php(214): venveo\bulkedit\queue\jobs\SaveBulkEditJob->execute(Object(craft\queue\Queue))
#1 /app/craft/vendor/yiisoft/yii2-queue/src/cli/Queue.php(147): yii\queue\Queue->handleMessage('206', 'O:42:"venveo\\bu...', '300', 1)
#2 /app/craft/vendor/craftcms/cms/src/queue/Queue.php(95): yii\queue\cli\Queue->handleMessage('206', 'O:42:"venveo\\bu...', '300', 1)
#3 /app/craft/vendor/craftcms/cms/src/controllers/QueueController.php(86): craft\queue\Queue->run()
#4 [internal function]: craft\controllers\QueueController->actionRun()
#5 /app/craft/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#6 /app/craft/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#7 /app/craft/vendor/craftcms/cms/src/web/Controller.php(104): yii\base\Controller->runAction('run', Array)
#8 /app/craft/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('run', Array)
#9 /app/craft/vendor/craftcms/cms/src/web/Application.php(282): yii\base\Module->runAction('queue/run', Array)
#10 /app/craft/vendor/craftcms/cms/src/web/Application.php(542): craft\web\Application->runAction('queue/run', Array)
#11 /app/craft/vendor/craftcms/cms/src/web/Application.php(266): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#12 /app/craft/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#13 /app/craft/web/index.php(21): yii\base\Application->run()
#14 {main}
2018-11-16 21:44:47 [-][1][-][info][yii\db\Command::execute] UPDATE `queue` SET `fail`=1, `dateFailed`='2018-11-17 02:44:47', `error`='Couldn’t save element 1281 (craft\\elements\\Entry)' WHERE `id`='206'
2018-11-16 21:44:47 [-][1][-][profile begin][yii\db\Command::execute] UPDATE `queue` SET `fail`=1, `dateFailed`='2018-11-17 02:44:47', `error`='Couldn’t save element 1281 (craft\\elements\\Entry)' WHERE `id`='206'
2018-11-16 21:44:47 [-][1][-][profile end][yii\db\Command::execute] UPDATE `queue` SET `fail`=1, `dateFailed`='2018-11-17 02:44:47', `error`='Couldn’t save element 1281 (craft\\elements\\Entry)' WHERE `id`='206'
2018-11-16 21:44:47 [-][1][-][info][yii\db\Command::query] SELECT *
FROM `queue`
WHERE ((`fail`=FALSE) AND (`timeUpdated` IS NULL)) AND (`timePushed` <= 1542422687 - `delay`)
ORDER BY `priority`, `id`
LIMIT 1
2018-11-16 21:44:47 [-][1][-][profile begin][yii\db\Command::query] SELECT *
FROM `queue`
WHERE ((`fail`=FALSE) AND (`timeUpdated` IS NULL)) AND (`timePushed` <= 1542422687 - `delay`)
ORDER BY `priority`, `id`
LIMIT 1
2018-11-16 21:44:47 [-][1][-][profile end][yii\db\Command::query] SELECT *
FROM `queue`
WHERE ((`fail`=FALSE) AND (`timeUpdated` IS NULL)) AND (`timePushed` <= 1542422687 - `delay`)
ORDER BY `priority`, `id`
LIMIT 1
Describe the bug
When running a bulk edit on my production server the task is failing with the error: Getting unknown property: craft\console\Request::absoluteUrl
Environmental Info
Additional context
I'm trying to update a lightswitch field. I've done this on the same channel in the past. The error is new to me.
I go through the steps, but categories are not getting updated.
Set scenario to live
Is your feature request related to a problem? Please describe.
I would like like to translate your plugin into French
Describe the solution you'd like
Can you add the translation file with all the entry field needed then I will fork it with the french file
I'd like to be able to click a checkbox labeled "Select All" to select all elements in the current element index result set across all pages.
Using both an admin user and a non-admin with all permissions enabled, and verifying the Bulk Edit permissions are set in the database, I do not see Bulk Edit in the actions menu unless I comment out the permissions check.
Describe the bug
Trying to bulk edit a tags field on multiple assets
Environmental Info
Additional context
The task queue seems to just get stuck on processing the bulk edit. I only discovered the error by looking in the queue log and found this:
[queue.ERROR] [TypeError] TypeError: array_merge(): Argument #2 must be of type array, string given in /[...]/vendor/venveo/craft-bulkedit/src/fields/processors/RelationFieldProcessor.php:49
Similar to #4 but for Products in Craft Commerce - would be great if you could bulk assign values to category fields on products, for example.
Describe the bug
As of Craft 4, element queries that are executed before Craft is fully initialised will not work and will result in a warning being logged that says 'Element query executed before Craft is fully initialized.'
It seems that this is usually caused by element queries being executed from a plugin's init
method (see discussion here), and from looking at the Bulk Edit source code, there's a lot of queries to check user permissions in the init
method, e.g.
if (Craft::$app->user->checkPermission(self::PERMISSION_BULKEDIT_ENTRIES)) {
...
}
This results in a call to getIdentity()
which executes a user query to get the current user.
From the guidance in the thread linked above, those queries should be deferred until Craft is fully initialised by listening for the Application::EVENT_INIT
event. At the moment, my logs are filled with line after line of 'Element query executed before Craft is fully initialized.', making it hard to debug other issues.
Screenshots
Stack trace:
2022-09-28 10:07:07 [web.WARNING] [craft\elements\db\ElementQuery::prepare] Element query executed before Craft is fully initialized. {"trace":[{"file":"/var/www/html/vendor/craftcms/cms/src/elements/db/ElementQuery.php","line":1241,"function":"warning","class":"yii\\BaseYii","type":"::"},{"file":"/var/www/html/vendor/craftcms/cms/src/db/Query.php","line":274,"function":"one","class":"yii\\db\\Query","type":"->"},{"file":"/var/www/html/vendor/craftcms/cms/src/elements/db/ElementQuery.php","line":1485,"function":"one","class":"craft\\db\\Query","type":"->"},{"file":"/var/www/html/vendor/craftcms/cms/src/elements/User.php","line":532,"function":"one","class":"craft\\elements\\db\\ElementQuery","type":"->"},{"file":"/var/www/html/vendor/craftcms/cms/src/web/User.php","line":500,"function":"renewAuthStatus","class":"yii\\web\\User","type":"->"},{"file":"/var/www/html/vendor/craftcms/cms/src/web/User.php","line":270,"function":"getIdentity","class":"yii\\web\\User","type":"->"},{"file":"/var/www/html/vendor/venveo/craft-bulkedit/src/Plugin.php","line":83,"function":"checkPermission","class":"craft\\web\\User","type":"->"},{"file":"/var/www/html/vendor/craftcms/cms/src/base/Plugin.php","line":122,"function":"__construct","class":"yii\\base\\Module","type":"->"},{"file":"/var/www/html/vendor/craftcms/cms/src/Craft.php","line":53,"function":"createObject","class":"yii\\BaseYii","type":"::"},{"file":"/var/www/html/vendor/craftcms/cms/src/services/Plugins.php","line":949,"function":"createObject","class":"Craft","type":"::"},{"file":"/var/www/html/vendor/craftcms/cms/src/services/Plugins.php","line":228,"function":"createPlugin","class":"craft\\services\\Plugins","type":"->"},{"file":"/var/www/html/vendor/craftcms/cms/src/base/ApplicationTrait.php","line":1477,"function":"loadPlugins","class":"craft\\services\\Plugins","type":"->"},{"file":"/var/www/html/vendor/craftcms/cms/src/web/Application.php","line":105,"function":"_postInit","class":"craft\\web\\Application","type":"->"},{"file":"/var/www/html/vendor/craftcms/cms/src/Craft.php","line":53,"function":"createObject","class":"yii\\BaseYii","type":"::"},{"file":"/var/www/html/vendor/craftcms/cms/bootstrap/bootstrap.php","line":239,"function":"createObject","class":"Craft","type":"::"},{"file":"/var/www/html/vendor/craftcms/cms/bootstrap/web.php","line":40,"function":"require"}],"memory":10123624}
Environmental Info
Just an idea - would be cool to be able to merge one entry into another entry, trashing the original. This should propagate through all relationships on the site to avoid breaking things.
Would be useful for resolving/normalizing mistaken relationships, especially in multi-site environments.
Describe the bug
I was updating from Craft 4.5.3 to 4.5.6 and it seems to blocking Bulk Edit menu to show up.
Environmental Info
Just idea.
Would be usefull to have option to Find replace just some part of text .. in field
find "#rzt6" replace with "someting" or if replace field is empty.. then remove. it
as normal find replace work..
It does not work properly. with Vizy field..
It copy elemnts.. but just partialy..
Let say from 1 matrix blocks with couple rows.. inside vizy..
in some entries replace.. 3 rows in some 4 and so on..
if i select any entries, the "Bulk edit" is always grey (=disabled).
My Bulk Edit jobs are failing with the error message: Erroneous data format for unserializing 'ArrayObject'
The job is attempting to remove an entry from an Entry field.
Any thoughts?
The job data looks like :
{
"context": {
"ownerId": 118,
"siteId": 1,
"elementType": "craft\\elements\\Entry",
"elementIds": "[\"108537\",\"108539\",\"108535\",\"108533\",\"108531\",\"108527\",\"108525\",\"108441\",\"108419\",\"108417\",\"108415\",\"108413\",\"108411\",\"108409\",\"108407\",\"108405\",\"108421\",\"108423\",\"108439\",\"108437\",\"108435\",\"108433\",\"108431\",\"108429\",\"108427\",\"108425\",\"108403\",\"108401\",\"108399\",\"108377\",\"108375\",\"108373\",\"108371\",\"108369\",\"108367\",\"108365\",\"108363\",\"108379\",\"108381\",\"108397\",\"108395\",\"108393\",\"108391\",\"108389\",\"108387\",\"108385\",\"108383\",\"108361\",\"108443\",\"108497\",\"108503\",\"108501\",\"108499\",\"108495\",\"108493\",\"108491\",\"108505\",\"108489\",\"108507\",\"108509\",\"108529\",\"108523\",\"108521\",\"108519\",\"108517\",\"108515\",\"108511\",\"108487\",\"108485\",\"108483\",\"108461\",\"108459\",\"108457\",\"108455\",\"108453\",\"108451\",\"108449\",\"108447\",\"108463\",\"108465\",\"108481\",\"108479\",\"108477\",\"108475\",\"108473\",\"108471\",\"108469\",\"108467\",\"108445\",\"108513\"]",
"fieldIds": "[169]",
"dateCreated": "2022-02-12 00:23:40",
"dateUpdated": "2022-02-12 00:23:40",
"uid": "176eb599-254b-4007-91d5-d803f4a8d807",
"id": 3
},
"description": null
}
Found a stacktrace in the queue.log:
Next yii\queue\InvalidJobException: Erroneous data format for unserializing 'ArrayObject' in /home/webapps/jobsite-staging/releases/167/craft/vendor/yiisoft/yii2-queue/src/Queue.php:270
Stack trace:
#0 /home/webapps/jobsite-staging/releases/167/craft/vendor/yiisoft/yii2-queue/src/Queue.php(230): yii\queue\Queue->unserializeMessage('O:42:"venveo\\bu...')
#1 /home/webapps/jobsite-staging/releases/167/craft/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\queue\Queue->handleMessage('142103', 'O:42:"venveo\\bu...', '300', '1')
#2 /home/webapps/jobsite-staging/releases/167/craft/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\queue\cli\Queue->execute('142103', 'O:42:"venveo\\bu...', '300', '1', '2395')
#3 [internal function]: yii\queue\cli\Command->actionExec('142103', '300', '1', '2395')
#4 /home/webapps/jobsite-staging/releases/167/craft/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#5 /home/webapps/jobsite-staging/releases/167/craft/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
#6 /home/webapps/jobsite-staging/releases/167/craft/vendor/yiisoft/yii2/console/Controller.php(182): yii\base\Controller->runAction('exec', Array)
#7 /home/webapps/jobsite-staging/releases/167/craft/vendor/yiisoft/yii2/base/Module.php(552): yii\console\Controller->runAction('exec', Array)
#8 /home/webapps/jobsite-staging/releases/167/craft/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('queue/exec', Array)
#9 /home/webapps/jobsite-staging/releases/167/craft/vendor/craftcms/cms/src/console/Application.php(89): yii\console\Application->runAction('queue/exec', Array)
#10 /home/webapps/jobsite-staging/releases/167/craft/vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction('queue/exec', Array)
#11 /home/webapps/jobsite-staging/releases/167/craft/vendor/yiisoft/yii2/base/Application.php(384): yii\console\Application->handleRequest(Object(craft\console\Request))
#12 /home/webapps/jobsite-staging/releases/167/craft/craft(27): yii\base\Application->run()
#13 {main}
Craft Version 3.4.8
BulkEdit Version 2.0.2.1
Since upgrading BulkEdit I get this error when trying to edit Entries:
These elements have no associated fields.
I've never encountered this bug editing these entry types before, is there something I am missing? Thanks!
Updated to the latest version so we can edit Commerce Products, but I am getting an unknown error in het CP after selecting some products and clicking on bulk edit.
Stacktrace:
2019-07-22 10:29:44 [-][1][-][error][yii\base\UnknownPropertyException] yii\base\UnknownPropertyException: Getting unknown property: venveo\bulkedit\Plugin::bulkEdit in /var/www/site/craft/vendor/yiisoft/yii2/base/Component.php:154
Stack trace:
#0 /var/www/site/craft/vendor/yiisoft/yii2/di/ServiceLocator.php(77): yii\base\Component->__get('bulkEdit')
#1 /var/www/site/craft/vendor/venveo/craft-bulkedit/src/controllers/BulkEditController.php(53): yii\di\ServiceLocator->__get('bulkEdit')
#2 [internal function]: venveo\bulkedit\controllers\BulkEditController->actionGetFields()
#3 /var/www/site/craft/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#4 /var/www/site/craft/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#5 /var/www/site/craft/vendor/craftcms/cms/src/web/Controller.php(187): yii\base\Controller->runAction('get-fields', Array)
#6 /var/www/site/craft/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('get-fields', Array)
#7 /var/www/site/craft/vendor/craftcms/cms/src/web/Application.php(299): yii\base\Module->runAction('venveo-bulk-edi...', Array)
#8 /var/www/site/craft/vendor/craftcms/cms/src/web/Application.php(566): craft\web\Application->runAction('venveo-bulk-edi...', Array)
#9 /var/www/site/craft/vendor/craftcms/cms/src/web/Application.php(278): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#10 /var/www/site/craft/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#11 /var/www/site/craft/web/index.php(21): yii\base\Application->run()
#12 {main}
2019-07-22 10:29:44 [-][1][-][info][application] $_GET = [
'p' => 'cp/actions//venveo-bulk-edit/bulk-edit/get-fields'
]
$_POST = [
'elementIds' => [
0 => '10261'
1 => '9581'
]
'requestId' => '1'
'elementType' => 'craft\\commerce\\elements\\Product'
]
$_FILES = []
$_COOKIE = [
'CRAFT_CSRF_TOKEN' => '•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••'
'1031b8c41dfff97a311a7ac99863bdc5_username' => '8597fcb1c537290b66bb33afabd354d85655181b73ac682af8be80205a65e1c7a:2:{i:0;s:41:\"1031b8c41dfff97a311a7ac99863bdc5_username\";i:1;s:4:\"arif\";}'
'_ga' => 'GA1.2.791794327.1563531932'
'_gid' => 'GA1.2.1743822713.1563531932'
'_fbp' => 'fb.1.1563531934084.375698754'
'CraftSessionId' => 'hf0abl4uu08kqsf2p7b0sk8sc2'
'1031b8c41dfff97a311a7ac99863bdc5_identity' => '71784daa2e83c9930f18c10c15cf0412c404d2bdcff56142b2b7d2422f3ec4b0a:2:{i:0;s:41:\"1031b8c41dfff97a311a7ac99863bdc5_identity\";i:1;s:254:\"[\"1\",\"[\\\"cEBm3bTqC8QMOfG5PnG-6mTzRdqCHJJpzDJHqz8xN325ZNZog523BiDoBIS4W7AyGn39ookhpHPZuKQUBQgVrzZ3tw6peiHEsfpz\\\",null,\\\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36\\\"]\",25920000]\";}'
'__stripe_mid' => '9b34fc2d-bb7f-4da2-9698-53590147f2bc'
'_gat_gtag_UA_750851_59' => '1'
]
$_SESSION = [
'bd62416aa8538ede709019a5e113eea5__flash' => []
'1031b8c41dfff97a311a7ac99863bdc5__token' => '••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••'
'1031b8c41dfff97a311a7ac99863bdc5__id' => '1'
'1031b8c41dfff97a311a7ac99863bdc5__expire' => 1589704184
'enableDebugToolbarForCp' => true
'commerce_customer' => '1'
'commerce_cart' => '99a2b9eefb39e9b5eb0fdac69b1bdba8'
'rv-recent-ids' => [
0 => 9581
1 => 9183
4 => 9317
5 => 8730
10 => 10261
11 => 6408
15 => 6111
17 => 8764
]
'bd62416aa8538ede709019a5e113eea5__auth_access' => [
0 => 'saveAssetInVolume:3'
1 => 'saveAssetInVolume:155'
2 => 'saveAssetInVolume:157'
3 => 'saveAssetInVolume:72'
4 => 'saveAssetInVolume:69'
5 => 'saveAssetInVolume:98'
]
]
Craft CMS 3.2.4.1
Craft Commerce Pro 2.1.10
I saw your note in the README about Matrix fields:
Custom fields and Matrix fields are not currently supported due to issues that arise when a field is rendered without single entry selected.
What work needs to be done for this? This would help my team out a lot and I would love to contribute if possible.
Describe the bug
When selecting the "Bulk Edit" option from the dropdown, nothing happens. The following error is instead ejected to the developer console:
Uncaught TypeError: Craft.BulkEditModal is not a constructor
Steps To Reproduce
Screenshots
If applicable, add screenshots to help explain your problem.
Environmental Info
Additional context
Add any other context about the problem here.
Describe the bug
In a multisite setup.
If doing a bulk edit of a datetime field on the non-primary site*, the date is being saved in a different format from that the UI showed it in.
i.e. I use the datepicker to choose April 10. The date shows as 10/05/2022 as I would expect from my user local settings (en-GB)
After saving, if I examine the entry, the field now reads 05/10/2022 = 5 Oct
Environmental Info
Additional context
*I'm guessing it's related to the locale of the site, not the user. I think the formatting of the field should reflect the locale of the user, but it's not being picked up in the bulk-edit modal?
More of a question than a issue : Do you plan to add some native field to the 'bulk editable' fields list, like the postDate or Parent(for Categories and Structure) ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.