magefan / magento-2-dynamic-categories

Assign products to categories automatically with the Magento 2 Dynamci Categories. Category rules, categories by pattern, show by brand and more...
https://magefan.com/magento-2-dynamic-categories
11 stars 1 forks source link

Array to string conversion error on export #1

Open Beagon opened 3 years ago

Beagon commented 3 years ago

Hi,

First of all, thanks for this module it really helps us out however:

We're encountering the following issue when we want to export the rules: {"0":"Notice: Array to string conversion in \/data\/web\/deploy\/releases\/20201019083410\/vendor\/magento\/framework\/Filesystem\/Driver\/File.php on line 782","1":"#1 Magento\\Framework\\Filesystem\\Driver\\File->filePutCsv() called at [vendor\/magento\/framework\/Filesystem\/File\/Write.php:75]\n#2 Magento\\Framework\\Filesystem\\File\\Write->writeCsv() called at [vendor\/magento\/module-ui\/Model\/Export\/ConvertToCsv.php:90]\n#3 Magento\\Ui\\Model\\Export\\ConvertToCsv->getCsvFile() called at [vendor\/magento\/module-ui\/Controller\/Adminhtml\/Export\/GridToCsv.php:70]\n#4 Magento\\Ui\\Controller\\Adminhtml\\Export\\GridToCsv->execute() called at [vendor\/magento\/framework\/App\/Action\/Action.php:108]\n#5 Magento\\Framework\\App\\Action\\Action->dispatch() called at [vendor\/magento\/module-backend\/App\/AbstractAction.php:231]\n#6 Magento\\Backend\\App\\AbstractAction->dispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#7 Magento\\Ui\\Controller\\Adminhtml\\Export\\GridToCsv\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#8 Magento\\Ui\\Controller\\Adminhtml\\Export\\GridToCsv\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/module-backend\/App\/Action\/Plugin\/Authentication.php:143]\n#9 Magento\\Backend\\App\\Action\\Plugin\\Authentication->aroundDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#10 Magento\\Ui\\Controller\\Adminhtml\\Export\\GridToCsv\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#11 Magento\\Ui\\Controller\\Adminhtml\\Export\\GridToCsv\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Ui\/Controller\/Adminhtml\/Export\/GridToCsv\/Interceptor.php:26]\n#12 Magento\\Ui\\Controller\\Adminhtml\\Export\\GridToCsv\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/FrontController.php:159]\n#13 Magento\\Framework\\App\\FrontController->processRequest() called at [vendor\/magento\/framework\/App\/FrontController.php:99]\n#14 Magento\\Framework\\App\\FrontController->dispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#15 Magento\\Framework\\App\\FrontController\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#16 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#17 Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php:26]\n#18 Magento\\Framework\\App\\FrontController\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/Http.php:116]\n#19 Magento\\Framework\\App\\Http->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:261]\n#20 Magento\\Framework\\App\\Bootstrap->run() called at [pub\/index.php:40]\n","url":"\/admin\/mui\/export\/gridToCsv\/key\/7908fc16f362bbe3225c9f89e129de2c197bdb2eab18f972bc7a2b6a0e771f1b\/?filters%5Bplaceholder%5D=true&search=&namespace=mfdynamiccategory_listing&excluded=false","script_name":"\/index.php","report_id":"77bf96a640cb95df9c03dd10b876d326e01e00371dd5102a4d769c5906635e71"}

Magento version: 2.3.5-p2 Community Module version: 2.0.7

Thanks in advance!

ihorvansach commented 3 years ago

Hello @Beagon , thank you for your report. Export button is unexpected behavior. It shouldn't be there. In the pre-release version we have removed it from the rules grid https://prnt.sc/v2ykx7 Let me know if for some reason you need this feature