Jump to content
Piguanet

Error al Vaciar la Papelera

Recommended Posts

Hola, soy bastante nueva en esto. Tengo en la papelera de mi CMS 4300 aprox. archivos que no puedo borrar. Cuando le doy la opción vaciar me dice que no se puede y continuan ahi.

image.thumb.png.a5d2b6603edf2618eb4bedb6e1ab979c.pngimage.thumb.png.3b79bd8b4b7fd4af6178c90c213e9fa9.png

 

Share this post


Link to post
Share on other sites

Hola,

si quieres ayuda, tienes que saber que en este foro se habla ingles 😉

Intenta lo que sigue.

-----------------------------

First install the module TracyDebugger.

Then in the root folder of the website, create a file trash.php and write the following code inside this file :

<?php namespace ProcessWire;

include_once('./index.php');

set_error_handler(function($severity, $message, $file, $line) {
    if (error_reporting() & $severity) {
        throw new \ErrorException($message, 0, $severity, $file, $line);
    }
});

wire('pages')->emptyTrash();

 

then navigate to http://yourwebsite.com/trash.php and check the logs.

  • Like 1

Share this post


Link to post
Share on other sites

Hola, Piguanet y Bienvenido a Processwire,

Primero hay que eliminar los campos y plantillas asociada con el pagina.

Luego puedes borrar la pagina

 

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By celfred
      Hello,
      I have a feeling I'm missing an easy thing here (again...). If I trash a page from API with :
      mypage->trash()
      Is there a simple way to restore it if needed ? I can do it in back-end, but I'd like to do it through API with something like
      mypage->restore()
       but this doesn't exit  
      So if you can give me a little help on that, I'd appreciate. Thanks in advance !
    • By gerald
      Hi all,
      I use version 3.0.62. Is there a way to delete all children of a page with one click - without parent page?
      thanks
    • By Robin S
      PageListTrash
      Allows non-superusers to trash pages directly from Page List (if they have page-delete permission for that page).
      Not much to say really - the module adds a "Trash" option to the extra actions for pages in Page List. It looks and works just like the Trash action available to superusers.

      https://github.com/Toutouwai/PageListTrash/
       
      Up to you whether you think non-superusers should be trusted with simpler trashing. For most cases I like the default behaviour where editors have to jump through some more hoops - I want them to think carefully about what they are doing. But if an editor needs to trash several pages then this module might reduce frustration.
      @tpr, by now you can probably predict what I'm going to say...
      ...something to merge into AdminOnSteroids?
    • By alexcapes
      Hi,
      I've noticed when I trash pages from a PageTable field, then restore them, they are restored to their original location, however the connection is broken with the PageTable field.
      Is this expected behaviour? Is there a way for it to maintain this relationship? Otherwise restoring it doesn't actually restore it to it's previous state.
      Note that in this case the parent pages for the PageTable field is not set as the direct parent.
       
       
       
    • By bmacnaughton
      When I delete a page name, e.g, /cart/, using the admin interface it goes into trash and gets the name /trash/2573.1.11_cart/ .
      I see that, with the Pages::trashed hook that the previous page name (previousPage) can be accessed.
      Where can I more information about what happens when a page is put into trash and what the name means?
×
×
  • Create New...