• Resolved rednotizieoggi

    (@rednotizieoggi)


    How can I “approve” an url and clean all the “errors”:
    I have 30k errors into “Index of errors”, but URLs work well (transitional mode)

Viewing 15 replies - 16 through 30 (of 42 total)
  • Thread Starter rednotizieoggi

    (@rednotizieoggi)

    Isnt the db error a problem??

    Thread Starter rednotizieoggi

    (@rednotizieoggi)

    this?

    /* custom css */
    .tdi_49_643{
                        position: relative !important;
                        top: 0;
                        transform: none;
                        -webkit-transform: none;
                    }.tdi_49_643,
    				.tdi_49_643 .tdc-inner-columns{
    				    display: block;
    				}.tdi_49_643 .tdc-inner-columns{
    				    width: 100%;
    				}
    Thread Starter rednotizieoggi

    (@rednotizieoggi)

    Now on another website I have seen the “review” process and I could approve the markup.

    In the news website maybe I have the db error because are too many errors?

    Thread Starter rednotizieoggi

    (@rednotizieoggi)

    Maybe I need to delete AMP plugin and then reactivated to get the mobile theme?

    Thread Starter rednotizieoggi

    (@rednotizieoggi)

    I have put the mobile theme again, now I dont have errors

    Plugin Author Weston Ruter

    (@westonruter)

    Because you have so many errors, what you should do is reset the validation state entirely. The best way to do so is via WP-CLI:

    wp amp validation reset

    This will remove all the validation errors and all validated URLs so you can start with a clean slate.

    If you can’t use WP-CLI, then what you can do is go to the Validated URLs screen, select all URLs, and in the Bulk Actions select “Forget”. Keep doing this bulk action until you’ve forgotten/trashed all the Validated URLs. You can then go to the Error Index screen and click the “Clear Empty” button. That will remove all the validation errors which have no associated Validated URL, which at this point will be none. Nevertheless, 30K is a large number and deleting all of them may cause the request to timeout. Therefore, using WP-CLI is preferred.

    After you have reset the validation state, then in the support forum here you can find other users who have used Newspaper and how it should be configured. As I recall they have a mobile theme plugin that integrates with the AMP plugin. I believe that @milindmore22 or @jamesosborne can point you to more information how best to configure Newspaper for AMP.

    Thread Starter rednotizieoggi

    (@rednotizieoggi)

    I have eliminated all the “transient” from db, there were 472k rows.

    Now seems fine, I re-installated mobile theme and now I dont even have the “Index of errors”

    Plugin Author Weston Ruter

    (@westonruter)

    I believe the Newspaper theme just hides the error index and the validated URLs. (We’ve asked tagDiv to not do this.)

    So you should still reset them.

    Thread Starter rednotizieoggi

    (@rednotizieoggi)

    How can I install WP-CLI?
    I dont have access to webserver

    Plugin Author Weston Ruter

    (@westonruter)

    OK, then you should take the alternate approach I outlined above.

    Thread Starter rednotizieoggi

    (@rednotizieoggi)

    Which was?

    Thread Starter rednotizieoggi

    (@rednotizieoggi)

    Can I uninstall AMP and then reactivate that?

    Thread Starter rednotizieoggi

    (@rednotizieoggi)

    This:
    If you can’t use WP-CLI, then what you can do is go to the Validated URLs screen, select all URLs, and in the Bulk Actions select “Forget”. Keep doing this bulk action until you’ve forgotten/trashed all the Validated URLs. You can then go to the Error Index screen and click the “Clear Empty” button. That will remove all the validation errors which have no associated Validated URL, which at this point will be none. Nevertheless, 30K is a large number and deleting all of them may cause the request to timeout. Therefore, using WP-CLI is preferred.

    but now I dont have the index errors

    Thread Starter rednotizieoggi

    (@rednotizieoggi)

    If I clean the “overhead” into DB? Where are all the validation errors in the db?

    I have wp_option to 600MB

    Plugin Author Weston Ruter

    (@westonruter)

    1. Go to the Validated URLs screen.
    2. Select all URLs via the checkbox in the first row.
    3. In the Bulk Actions select “Forget”.
    4. Keep doing this bulk action until you’ve forgotten/trashed all the Validated URLs.
    5. You can then go to the Error Index screen and click the “Clear Empty” button.

    Do note that your request may timeout. So you may need to re-try multiple times.

    Uninstalling won’t delete the data currently, see https://github.com/ampproject/amp-wp/issues/3210. But in your case it would probably call a timeout as well.

    I’ve filed a feature request to make it easier to delete all the validation data in the admin: https://github.com/ampproject/amp-wp/issues/5826

Viewing 15 replies - 16 through 30 (of 42 total)
  • The topic ‘Clean AMP validation errors’ is closed to new replies.