Page 1 of 1
batch duplicate failed
Posted: 03 Nov 2018, 23:48
by vientito
batch duplicating either maps or markers would fail with message
0 Too few arguments to function PhocaMapsCpControllerPhocaMapsMap::batch(), 0 passed in /opt/bitnami/apps/joomla/htdocs/libraries/src/MVC/Controller/BaseController.php on line 710 and exactly 1 expected
Re: batch duplicate failed
Posted: 06 Nov 2018, 13:57
by Jan
Hi, the error coms from BaseController of Joomla!, can you paste here more information:
- which version of Joomla! and Phoca Maps do you use?
- what is the complete error when making the batch (when you enable debug mode, there will be information from which Phoca Maps file the error starts)
Thank you, Jan
Re: batch duplicate failed
Posted: 10 Nov 2018, 14:59
by vientito
You already have the latest Joomla version, 3.9.0.
PHP 7.1.21
MySQLi 5.7.23
Phoca.cz Version 3.0.5
here is the full error message:
0 Too few arguments to function PhocaMapsCpControllerPhocaMapsMap::batch(), 0 passed in /opt/bitnami/apps/joomla/htdocs/libraries/src/MVC/Controller/BaseController.php on line 710 and exactly 1 expected
/opt/bitnami/apps/joomla/htdocs/administrator/components/com_phocamaps/controllers/phocamapsmap.php:45
Call stack
# Function Location
1 () JROOT/administrator/components/com_phocamaps/controllers/phocamapsmap.php:45
2 PhocaMapsCpControllerPhocaMapsMap->batch() JROOT/libraries/src/MVC/Controller/BaseController.php:710
3 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_phocamaps/phocamaps.php:31
4 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
5 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
6 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101
7 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159
8 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:196
9 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/index.php:51
Re: batch duplicate failed
Posted: 10 Nov 2018, 19:37
by Jan
Hi, try to open:
administrator\components\com_phocamaps\controllers\phocamapsmap.php
and on line cca 45 change
FROM:
TO:
Code: Select all
public function batch($model = '') {
The same in
administrator\components\com_phocamaps\controllers\phocamapsmarker.php
on line cca 44
and let me know if it works now?
Thank you, Jan
Re: batch duplicate failed
Posted: 17 Nov 2018, 20:42
by vientito
it seems to work at first trial.
Re: batch duplicate failed
Posted: 17 Nov 2018, 21:52
by Jan
Ok
Re: batch duplicate failed
Posted: 03 Mar 2019, 23:05
by Jan