Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Michael Travan

    (@michael-travan)

    Hello @annaam,

    do you have a live url I can check? I wasn’t able to replicate this behaviour.

    Michael

    Thread Starter annaam

    (@annaam)

    Do you have an email I can send the link to? I cannot share the site url publicly.

    Plugin Support Michael Travan

    (@michael-travan)

    Yes sure,

    michael at thenewsletterplugin.com

    Thread Starter annaam

    (@annaam)

    Sent, thank you.

    Thread Starter annaam

    (@annaam)

    Continuing the conversation here so others with the same issue have all the information.

    You emailed back: “I took a look at your website and it looks like you put the archive shortcode in the same page as the main Newsletter shortcode. This can cause the page title error you’re getting. Please, try to create a dedicated newsletter archive page with the shortcode, and check if the error persists.”

    My director does not want me to split up the newsletter and subscription; they much prefer the look of them both on the same page. So, not trying to go against your continued recommendation, I just need to adhere to what is asked of me and cannot change it unless actually functionally necessary.

    I split them up on a testing website, and the issue persisted. Through my own testing, it appears that when we have the archive setting “Showing the newsletter” set to “Embedded on the same page”, the issue occurs, regardless of whether we split it up. When we set it to either of the other 2 options, the issue is immediately resolved, as it uses the na=view, not na=archive. This seems like a bug in the newsletter plugin on the na=archive page, not an issue due to us using it on the same page.

    The reason I even noticed this issue in the first place is because we are doing testing to maybe swap our search engine from relevanssi to google search. In google search, results with newsletters were showing the {email_subject} as the title of the newsletter. This is still happening, even after changing the archive settings, as it still is using the na=archive…

    So the “View online” issue was resolved by changing the archive setting “Showing the newsletter” to “open in a new tab”. But, the search engine issue remains. It seems our site just isn’t working well with na=archive. I can’t understand how splitting would potentially fix that, and it didn’t on our testing website. We aren’t doing anything crazy with newsletter, just sending one out every other month… sigh. Not sure what is happening.

    • This reply was modified 2 months, 2 weeks ago by annaam. Reason: clarity
    Plugin Support Michael Travan

    (@michael-travan)

    Hello @annaam,

    I think I somehow misunderstood your email in the first place. If you click the “view online” link inside a newsletter opened in the archive, it fails to dynamically render the email subject because you’re trying to open a web version of a newsletter that is already online. What I don’t understand (or didn’t understand when I read your first message, which I apologize for) is if this behaviour happens also when clicking the view online links from inside an email client, when you actually received the newsletter (the link should be different though).

    A quick note on why it’s a bad idea to have the archive shortcode on the same page as the newsletter main shortcode: that shortcode isn’t used just for the subscription form, but it shows all the service messages like confirmations etc. It won’t cause big issues, but it’s always better to have the newsletter main shortcode alone. You can create as many subscription forms as you need by using our dedicated shortcodes (and with those, you can use the archive shortcode with no issues at all).

    Let me know, thanks

    Michael

    Thread Starter annaam

    (@annaam)

    The issue doesn’t happen on emails because emails are using the na=view. “View online” works with na=view, it is na=archive that causes the {subject_title} issue. This affects google search results, revealing the {subject_title} as the title of the newsletter, because google search links to the na=archive version of the newsletter.

    Something with na=archive not showing the subject title correctly, seemingly.

    In response to the note of splitting, for confirmations and such we actually do have a separate, “non public” facing page, newsletter-2, that only has the newsletter shortcode. This is what users are routed to when clicking their activation links. This is what page we have set in settings as the newsletter page. All of that works great.

    Plugin Support Michael Travan

    (@michael-travan)

    Hello @annaam,

    please try to update Archive addon to last version and let me know if that solves the issue.

    Thanks,

    Michael

    Thread Starter annaam

    (@annaam)

    Confirmed, issue resolved.

    I appreciate the time you took to help resolve this visual issue, I know it’s not the most pressing matter, but fixing all warnings and issues is always best practice. I’m glad we were able to discover it was indeed a bug in the archive code, and not us doing something super odd.

    Thanks.

    Thread Starter annaam

    (@annaam)

    Well I spoke a bit too soon, one warning appeared with this new update in our debug log:

    [03-Mar-2026 19:30:18 UTC] PHP Warning: Undefined property: stdClass::$send_on in /sites/website/files/wp-content/plugins/newsletter-archive/plugin.php on line 180

    ip address – standard [03/Mar/2026:13:30:18 -0600] “GET /?na=archive&email_id=47 HTTP/2.0” 200 14865 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36”

    It is consistently reproducible.

    Plugin Support Michael Travan

    (@michael-travan)

    Hello @annaam,

    many thanks for your feedback, we will look into this as well.

    Michael

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.