Jump to content

Recommended Posts

Posted
59 minutes ago, verdeandrea said:

Is there any valid alternative for batch actions on pages?

ListerPro, I think

Posted
1 hour ago, kongondo said:

....am curious,  why do you need an alternative? :)

Well, it's not working with my PW 3.0.28 site, e here it says compatibility to 2.6, so i guessed that wasn't compatible with latest PW release.

Is this just happening to me?

Posted

I also have troubles to make it work with 1400+ page deletion. I have no error, and the pages are still there after execution of the script.

It works if I have less result (e.g. if I filter id>1000,template=mytemplate)

The issue seems to be related to the high amount of results.

Posted

ProcessBatcher is not compatible with 3.0 devns at the moment, as far as I know.

But why not try some custom code? It's just four lines actually.

<?php

$pagesToDelete =  $pages->find('id>1000,template=mytemplate');
foreach ($pagesToDelete as $p) {
    $pages->delete($p, true);
}
  • Like 4
  • 9 months later...
Posted

It works with v. 3.0.62... well, sort of.

When I get results / list, the console says

ProcessBatcher.js?v=104-1499794358:54 Uncaught TypeError: $(...).fancybox is not a function
    at HTMLDocument.<anonymous> (ProcessBatcher.js?v=104-1499794358:54)
    at l (JqueryCore.js?v=1499794378:2)
    at Object.fireWith [as resolveWith] (JqueryCore.js?v=1499794378:2)
    at Function.ready (JqueryCore.js?v=1499794378:2)
    at HTMLDocument.A (JqueryCore.js?v=1499794378:2)

Also, the "Actions..." bar doesn't work anymore

  • 2 weeks later...
Posted

I forked this module and made it PW3 compatible. See the readme and the commit for details of what was changed.

https://github.com/Toutouwai/ProcessBatcher

If folks want to test it and report back I can make a pull request for @Wanze.

@tpr, I hid the AdminOnSteroids datatables filterbox and the title case-change button because the layout was a bit messed up. Maybe you could take a look at that when you have time? 

  • Like 5
  • Thanks 1
  • 2 weeks later...
Posted
On 21/07/2017 at 4:55 AM, Robin S said:

I forked this module and made it PW3 compatible. See the readme and the commit for details of what was changed.

https://github.com/Toutouwai/ProcessBatcher

If folks want to test it and report back I can make a pull request for @Wanze.

@tpr, I hid the AdminOnSteroids datatables filterbox and the title case-change button because the layout was a bit messed up. Maybe you could take a look at that when you have time? 

Works fine for me :) thanks!

Would love to see this pulled back into the main module

  • Like 1
Posted
On 22/07/2017 at 7:46 AM, Wanze said:

I will gladly merge a pull request to make this module PW3 compatible:) 

Great, pull request made. :)

  • Like 3
  • 4 months later...
  • 5 weeks later...
  • 3 weeks later...
  • 2 weeks later...
Posted

I've installed ProcessBatcher and can get pages to edit but the Actions button at the bottom doesn't do anything and I'm seeing this error in the console...

ProcessBatcher.js:54 Uncaught TypeError: $(...).fancybox is not a function

Any ideas?

Thanks,

Heather

Posted

 

On 7/20/2017 at 9:55 PM, Robin S said:

I forked this module and made it PW3 compatible. See the readme and the commit for details of what was changed.

https://github.com/Toutouwai/ProcessBatcher

If folks want to test it and report back I can make a pull request for @Wanze.

@tpr, I hid the AdminOnSteroids datatables filterbox and the title case-change button because the layout was a bit messed up. Maybe you could take a look at that when you have time? 

That worked for me!  Thanks @Robin S

  • Like 1
  • 4 months later...
Posted

@Peter Knight

@benbyf

You need to install Robin S's version. Simply FTP Robin S's files into a subfolder in /site/modules, go to your modules dash and click install. Actions are still working properly in the latest PW with this version.

  • 11 months later...
Posted
  • Batcher (1.1.0) 
  • ProcessWire 3.0.121

Moved about 50 pages to a new location. The pages were moved and the page paths are correct but clicking on a page in the front-end throws a 404 error.

Deleted the cache, flushed permissions, and other caches etc. No ProCache running either. Page Path History is running.

I could fix this by moving a page manually back to its original location and then manually moving it again to the new location.

Might be worth a look? 

 

  • 7 months later...
  • 9 months later...
Posted

Hey there, I have had an error with this for a while. I am using pw 3.0.123 and have uninstalled, cleared cache and reinstalled and still get this:

count(): Parameter must be an array or an object that implements Countable

on line 341

Any ideas? Appreciated

Posted
14 minutes ago, opalepatrick said:

Any ideas? Appreciated

This is due to a backward incompatible change introduced in PHP 7.2. 

Quote

An E_WARNING will now be emitted when attempting to count() non-countable types (this includes the sizeof() alias function).

Line #341 of ProcessBatcher has this code:

<?php namespace ProcessWire;

  if (!count($this->input->post->title)) {
  // code
  }

That needs to be changed to ensure that the variable being counted ($input->post->title) is an array or a countable object.

Best to send @Wanze a pull request.

 

  • Like 1
  • 9 months later...
Posted
On 11/18/2020 at 11:59 AM, kongondo said:

Line #341 of ProcessBatcher has this code:

<?php namespace ProcessWire;

  if (!count($this->input->post->title)) {
  // code
  }

That needs to be changed to ensure that the variable being counted ($input->post->title) is an array or a countable object.

Can anybody show me how to change that line?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...