batch duplicate failed

Phoca Maps - displaying maps in Joomla! CMS
vientito
Phoca Member
Phoca Member
Posts: 13
Joined: 18 Oct 2018, 14:51

batch duplicate failed

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: batch duplicate failed

Post 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
If you find Phoca extensions useful, please support the project
vientito
Phoca Member
Phoca Member
Posts: 13
Joined: 18 Oct 2018, 14:51

Re: batch duplicate failed

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: batch duplicate failed

Post by Jan »

Hi, try to open:

administrator\components\com_phocamaps\controllers\phocamapsmap.php

and on line cca 45 change
FROM:

Code: Select all

public function batch($model) {
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
If you find Phoca extensions useful, please support the project
vientito
Phoca Member
Phoca Member
Posts: 13
Joined: 18 Oct 2018, 14:51

Re: batch duplicate failed

Post by vientito »

it seems to work at first trial.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: batch duplicate failed

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: batch duplicate failed

Post by Jan »

Hi, should be OK in version 3.0.6

https://www.phoca.cz/news/1019-phoca-ma ... 6-released

Jan
If you find Phoca extensions useful, please support the project
Post Reply