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
batch duplicate failed
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: batch duplicate failed
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
- 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
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 13
- Joined: 18 Oct 2018, 14:51
Re: batch duplicate failed
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: batch duplicate failed
Hi, try to open:
administrator\components\com_phocamaps\controllers\phocamapsmap.php
and on line cca 45 change
FROM:
TO:
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
administrator\components\com_phocamaps\controllers\phocamapsmap.php
and on line cca 45 change
FROM:
Code: Select all
public function batch($model) {
Code: Select all
public function batch($model = '') {
administrator\components\com_phocamaps\controllers\phocamapsmarker.php
on line cca 44
and let me know if it works now?
Thank you, Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 13
- Joined: 18 Oct 2018, 14:51
Re: batch duplicate failed
it seems to work at first trial.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: batch duplicate failed
If you find Phoca extensions useful, please support the project