• Resolved mgurney

    (@mgurney)


    Hi,

    I have used Postie before on another site.
    I am setting up a new website on a sub-domain – church.mgurney.co.uk – and have installed Postie. I updated the settings to include mail server, user, password etc. but when I save those settings they aren’t saved but a ‘Page Not Found’ error is displayed.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Postie uses the standard WordPress page for saving options. The same one as for example Setting: General. Can you save changes on that page?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Also try accessing wp-admin/options.php on your site. It should show a list of all options.

    Thread Starter mgurney

    (@mgurney)

    Hi Wayne,

    thank you for replying.

    I have tried your suggestions :
    – saving settings on the General page (or elsewhere) works fine
    – saving settings on the Postie plugin takes me to the wp-admin/options.php url but indicates a 404 error
    – accessing wp-admin/options.php does show me the options
    – updating options on wp-admin/options.php returns a 404 error on saving

    • This reply was modified 4 years, 8 months ago by mgurney.
    Plugin Author Wayne Allen

    (@wayneallen-1)

    >updating options on wp-admin/options.php returns a 404 error on saving

    This would indicate that something is broken on the web hosting side of things.

    There are various places that indicate that your .htaccess file may be incorrect which can cause this issue.

    You may need to discuss this with your hosting provider.

    Having the same issue as described here. All other WP Settings & Plugin Settings pages save, but the Postie settings page seems to post back to a page that results in a 404 (handled by WP).

    There’s no special .htaccess settings on this site.

    I noticed on a couple other plugin settings pages that they don’t specify an action url/destination in their config page’s form tag, while Postie does.

    Any help possible would be appreciated.

    Update: It MIGHT be a 403 error related to path security with ModSecurityinstalled on the Apache server.

    Snippet of error log:

    [Fri Sep 25 20:22:28.132499 2020] [:error] [pid 32542] [client nn.nn.nn.nn:nnn] [client nn.nn.nn.nn] ModSecurity: Warning. Match of “pmFromFile path_excludes” against “REQUEST_FILENAME” required. [file “/etc/apache2/conf.d/modsec_vendor_configs/imunify360-full-apache/004_i360_4_custom.conf”] [line “911”] [id “77140992”] [msg “IM360 WAF: Suspicious access attempt (WP folders)!||SC:/home/xxxxxx/public_html/wp-admin/options.php||T:APACHE||REQUEST_URI:/wp-admin/options.php||PC:731||”] [severity “NOTICE”] [tag “service_i360custom”] [tag “noshow”] [hostname “xxxxxxx”] [uri “/wp-admin/options.php”] [unique_id “abcxyz123”], referer: https://xxxxxxx/wp-admin/admin.php?page=postie-settings

    It triggers a 403 error – which mod_rewrite in the .htaccess picks up and tries to redirect to a WP page – which doesn’t exist, resulting in the apparent 404.

    Finally tracked it down while searching for “wordpress settings post 404” results on Google and found someone else point to – and solve – the problem by getting their host to tweak their ModSecurity setup.

    I commented out my .htaccess url rewrite settings for a few tests and hit upon the 403.

    Confirmed. Found I could temporarily disable ModSecurity in CPanel for the site and the error/redirect problem went away while saving settings.

    Thread Starter mgurney

    (@mgurney)

    Hi,

    so using the above trick discovered by jpbroome (thank you), I managed to get the settings save to at least not throw a 403/404 error. However, when I update the settings and save it doesn’t actually seem to save the mailserver. I’ve checked the record in the database and it clearly shows the new value, but the screen shows the old and when I try to test the connection it uses the old value. I’ve tried uninstalling and deleting the postie settings record on the options database and the reinstalling (it manages to find the same settings), I’ve tried disabling cache and optimization plugins but nothing works.
    Any ideas? I’ve used Postie before on other sites and not had any issues.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Sorry, seems like this is specific to how you have your infrastructure set up.

    I would start turning things off until Postie starts working then enabling one thing at a time to see if you can figure out what is getting in the way.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Postie Settings not saving’ is closed to new replies.