• Resolved larry long

    (@larry-long)


    Hi,
    I used postie (version 1.7.21) in a bilingual wordpress site. I met some strange problems when using postie.
    1) When postie retrieves email, it creates a page with permlink like
    https://sample.com/?p=1234
    When I goto the admin-> pages, I can not see this page created by postie.

    If I use a script to modify the permlink of the new page to
    https://sample.com/?page_id=1234.

    The page will show normally.

    2) If in the subject line of the email, I have Chinese characters in it, postie will strip the content of the email and only create a page with empty content.

    If I change the subject of the email to English only, postie will create a page with the correct content. Of course, this page will be invisible as explained in 1) Unless I use scrip to convert it to visible.

    I tried the same version postie in a English only wordpress website, everything works fine. I can NOT duplicate those problems. Probably there are some compatibility issues between postie and WPML plugin or Avada.

    https://www.ads-software.com/plugins/postie/

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

    (@wayneallen-1)

    >When postie retrieves email, it creates a page with permlink like

    Postie doesn’t create permalinks, WordPress does that. Where do you see the https://sample.com/?p=1234 link?

    >When I goto the admin-> pages, I can not see this page created by postie

    By default Postie creates Posts not pages. You can change the default post type in the settings. It is possible to change the post type in the message as well. https://postieplugin.com/faq/override-post-type/

    >If in the subject line of the email, I have Chinese characters in it, postie will strip the content of the email and only create a page with empty content.

    Postie has been tested with many character sets including Chinese. To help understand what is happening please send a sample email to [email protected] then leave a note here.

    >I tried the same version postie in a English only wordpress

    So what version/language of WordPress are you using?

    >Probably there are some compatibility issues between postie and WPML plugin or Avada

    You need to add a little code to get WPML to work.
    https://wpml.org/forums/topic/postie-plugin-and-wpml/

    Thread Starter larry long

    (@larry-long)

    I just forwarded a test email to “[email protected]”. In my bilingual wordpress site, postie will retrieve this email and strip the content and only create an empty page.

    The https://sample.com/?p=1234 is in the wordpress admin panel, under “setting”. (sample.com is just an example).

    In the postie setting, I have changed the post type to “page”. However, postie creates a page whose permalink is a post permalink “https://sample.com/?p=1234”. For pages, the permalink should be “https://sample.com/?page_id=1234”.

    I use a Chinese/English bilingual wordpress site. WordPress is version 4.4, Postie version 1.7.21.

    I will check the few links you sent.

    Thanks.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    >I just forwarded a test email to “[email protected]”.

    Thank you.

    >However, postie creates a page whose permalink is a post permalink “https://sample.com/?p=1234”

    Once again, Postie does not create permalinks.

    >The https://sample.com/?p=1234 is in the wordpress admin panel, under “setting”.

    Where are you seeing the incorrect link? The setting admin panel will never have link to a specific post/page, if it does you have a problem.

    When I set my test system to create pages and use the email you sent everything works fine.

    >I use a Chinese/English bilingual wordpress site

    How did you add Chinese?

    Does Postie work correctly if you disable WPML?

    Thread Starter larry long

    (@larry-long)

    Hi,
    I did a few tests to see if WPML causes the problems.
    1) Run postie with WMPL, Email has Both Chinese and English in Subject line
    results: Postie retrieved email, page created was invisible, content is empty

    2) disable WPML, run postie, Email has Both Chinese and English in Subject line
    Results: Postie retrieved email. Page created was VISIBLE, content is empty.

    3) disable WPML, run postie, Email has ONLY English in Subject line
    Results: Postie retrieved email. Page was VISIBLE and content was CORRECT.

    Do you have any other email address? Wayne, I can forward you the output from “Run Postie (Debug)” for tests 2 and 3 above.

    Thanks.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Please send the logs to [email protected] and I’ll take a look.

    Thread Starter larry long

    (@larry-long)

    Thanks wayne,
    The log files are in my office’s computer. I will forward them to you when I get to my office next week.

    Thread Starter larry long

    (@larry-long)

    I just sent you two emails to [email protected]. One email has the two output logs when running the postie in the debug mode.

    The second email is the original email used to do the test.

    Thanks.

    Thread Starter larry long

    (@larry-long)

    Hi, Wayne,
    I just sent you two emails to [email protected]. The two emails have the same content. The difference is that in the Subject line: the first one has Chinese Characters in it. The other one only has English Characters in its Subject line.

    The emails are the same as those that I used to create the debug output I sent to you.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Sorry for the delay, things got a little crazy in the non-Postie part of my life.

    I was able to process both emails without any difficulty. However, these were forwarded emails which tends to alter the email structure.

    Can you send an email to [email protected] as if you were sending it to your site?

    Thread Starter larry long

    (@larry-long)

    Hi, Wayne,
    Actually, the emails that I forwarded to you should be the same way that I sent to an secrete email account for postie to retrieve.

    i.e, Once I receive a notice email, I will forward this email to an secretary gmail account. Postie will connect with that gmail account and retrieve the content.

    The thing that I noticed is that when gmail send email content. The email header has different encoding character set when there Chines character in the Subject line or Only English in the Subject line.

    However, postie works fine in one of my English only wordpress site. It is very difficult to troubleshoot the cause.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Something to test – try switching the theme to twentyfifteen and disabling all plugins besides Postie and see if things work correctly. If so switch the theme back and test again. If still working start enabling plugins one at a time testing each one to see when the symptoms reappear.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘postie creates invisible pages/strips content from emails’ is closed to new replies.