• Resolved torstensbuechereckede

    (@torstensbuechereckede)


    Hi,

    I’m using redirect since a while now and I would like to change from post id to post name URLs. If I understand this right I have to switch on URL Monitoring before that change and after that I can change from ID to name. Afterwards all changed posts should show up in redirect.

    I tried to activate the options “track changes for post and pages” (hope this is the original translation – I’m using the German version). And then I used the refresh button. Although there is a message “settings saved” in the lower right corner the option changes are not saved. I have also checked the entry on database and I think in the area which is named monitor_post or monitor_types there should be a change. But there is no change.

    redirect_options:
    a:27:{s:7:”support”;b:0;s:5:”token”;s:32:”removed_for_this_post”;s:12:”monitor_post”;i:0;s:13:”monitor_types”;a:0:{}s:19:”associated_redirect”;s:0:””;s:11:”auto_target”;s:0:””;s:15:”expire_redirect”;i:7;s:10:”expire_404″;i:7;s:7:”modules”;a:1:{i:2;a:1:{s:8:”location”;s:0:””;}}s:10:”newsletter”;b:0;s:14:”redirect_cache”;i:0;s:10:”ip_logging”;i:2;s:13:”last_group_id”;i:1;s:8:”rest_api”;i:0;s:5:”https”;b:0;s:8:”database”;s:3:”4.2″;s:10:”flag_query”;s:5:”exact”;s:9:”flag_case”;b:0;s:13:”flag_trailing”;b:0;s:10:”flag_regex”;b:0;s:12:”log_external”;b:0;s:10:”log_header”;b:0;s:10:”track_hits”;b:1;s:7:”headers”;a:0:{}s:8:”relocate”;s:0:””;s:16:”preferred_domain”;s:0:””;s:7:”aliases”;a:0:{}}

    To be sure I deactivated the cache addon and cleared the cache. But this does not seems to be the reason.

    When adding new redirect entries the behaviour is the same. It looks like the entry is saved in DB but it’s not. Settings from other plugins do work. So it seems not to be an issue of DB rights.

    If I take a look on the support area everything is green ‘OK’.

    Redirect Logentries are written to the log database tables.

    How can I debug this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    This is almost certainly a cache issue of some kind. The plugin saves data through your REST API, which other plugins likely do not. I have seen problems in the past where the database was cached, and updates weren’t appearing.

    Thread Starter torstensbuechereckede

    (@torstensbuechereckede)

    Hello John, thanks for the reply.

    I figured out what caused the problem but not why it is a problem. This seems to be only affecting redirect although there are other plungins which are using rest.

    I’m using Nginx as a reverse Proxy for Apache. This seems to be not working with redirect. Basically Nginx pushes everything to Apache which is not static content like jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm

    If I try to open Redirect options and database entries directly via URL and Port (Apache is listening on Port 8082) I’m getting CORS errors. Maybe this is the problem I’m not sure. When I switch the whole WordPress URLs to the Apache URL + Port then the CORS errors are gone and redirect is doing database upgrades and showing the right entries in tables. All other plugins are working well with the setup.

    Plugin Author John Godley

    (@johnny5)

    Ok, if you are using a reverse proxy then you will need to pass the appropriate headers

    https://stackoverflow.com/questions/45986631/how-to-enable-cors-in-nginx-proxy-server

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Save options does not work’ is closed to new replies.