Page 1 of 2

Joomla 4.2.5 Multiple add not working for me

Posted: 10 Nov 2022, 10:01
by phoenixjonty
I am trying to add multiple files to PhocaDownload and every time I attempt to add more than one file it results in this error:
"An error has occurred.
0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::getError()"

Adding one file works fine and leaving the title blank results in the filename being used as the title which is what I want.

Any help would be appreciated please.
Thanks Jonathan

Re: Joomla 4.2.5 Multiple add not working for me

Posted: 15 Nov 2022, 00:27
by Jan
Hi, do you get the same error with latest Beta?
https://github.com/PhocaCz/PhocaDownloa ... 5Beta2.zip

Jan

Re: Joomla 4.2.5 Multiple add not working for me

Posted: 15 Nov 2022, 16:42
by phoenixjonty
Hi Jan - Thanks for looking into this.
I installed the com_phocadownload_v4.0.5Beta2 and tried a multiple-add and now I get:
Save failed with the following error: Field 'publish_up' doesn't have a default value
Thanks for looking into this.
Best regards
Jonathan

Re: Joomla 4.2.5 Multiple add not working for me

Posted: 18 Nov 2022, 23:55
by Jan
Hi, can you enable debug mode when saving, to see the file and row where this occurs. When enabled debug mode, can you paste the full error message? Can you exaclty describe when this error occurs?

Thank you, Jan

Re: Joomla 4.2.5 Multiple add not working for me

Posted: 20 Nov 2022, 13:03
by phoenixjonty
Screnshots: https://imgur.com/gPLbOHO

Debug result of error on "Save & Close" to add multiple files using "Multiple Add":

Shot of screen just before error is shown: https://imgur.com/a/PXEtPrS

danger
Save failed with the following error: Field 'publish_up' doesn't have a default value
An error has occurred.
404 View not found [name, type, prefix]: phocadownloadm, html, phocadownloadcpView
Call stack
# Function Location
1 () JROOT/libraries/src/MVC/Controller/BaseController.php:816
2 Joomla\CMS\MVC\Controller\BaseController->getView() JROOT/libraries/src/MVC/Controller/BaseController.php:602
3 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_phocadownload/controller.php:58
4 PhocadownloadCpController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:672
5 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_phocadownload/phocadownload.php:47
6 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
7 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
8 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
9 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
10 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
11 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
12 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
13 require_once() JROOT/administrator/index.php:32

Thank you
Best regards
phoenixjonty

Re: Joomla 4.2.5 Multiple add not working for me

Posted: 21 Nov 2022, 00:16
by Durk1959
Hi Jan,

i have exact the same problem. Using 4.2.5. and Phoca download 4.0.4. I m waiting for an answer before I wil instal the next beta version.

Durk

Re: Joomla 4.2.5 Multiple add not working for me

Posted: 21 Nov 2022, 01:34
by Jan
Hi, did you update or migrate Phoca Download? It seems like the database column is stored with obsolete options :idea:

BTW - try to install the latest Beta (4.0.5Beta3), I added some protection there:
https://github.com/PhocaCz/PhocaDownloa ... 5Beta3.zip

And let me know if this is OK?

Thank you, Jan

Re: Joomla 4.2.5 Multiple add not working for me

Posted: 21 Nov 2022, 12:32
by Durk1959
Goodmorning Jan,

You solved the problem. After the update with 4.0.5.beta3 the multiadd is working fine. Thanks.

Greeting from the Netherlands,

Durk

Jan wrote: 21 Nov 2022, 01:34 Hi, did you update or migrate Phoca Download? It seems like the database column is stored with obsolete options :idea:

BTW - try to install the latest Beta (4.0.5Beta3), I added some protection there:
https://github.com/PhocaCz/PhocaDownloa ... 5Beta3.zip

And let me know if this is OK?

Thank you, Jan

Re: Joomla 4.2.5 Multiple add not working for me

Posted: 21 Nov 2022, 15:22
by Jan
Hi, great to hear it, thank you for the info.

Jan

Re: Joomla 4.2.5 Multiple add not working for me

Posted: 22 Nov 2022, 11:32
by phoenixjonty
Hi Jan ... Jonty here!
It is a new J4 site replacing our previous J3 site. Not migrated and with a new database.
The (4.0.5Beta3) also works fine now and the Multiple add gave the 10 files in my test the new title for each using the File Name. That is perfect for my needs.
Thank you so much
Best regards Phoenixjonty