Jump to content

ProcessBatcher


Wanze

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 9 months later...

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

Link to comment
Share on other sites

  • 2 weeks later...

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
Link to comment
Share on other sites

  • 2 weeks later...
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
Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

 

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
Link to comment
Share on other sites

  • 4 months later...
  • 11 months later...
  • 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? 

 

Link to comment
Share on other sites

  • 7 months later...
  • 9 months later...
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
Link to comment
Share on other sites

  • 9 months later...
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?

Link to comment
Share on other sites

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...