• Resolved KlokanSoft

    (@klokansoft)


    Hi, the last month has 3 sites reporting incorrect news feeds to me. These are summary weekly e-mails, where only 5, 3, posts are sent out of ten, then it is cut off and there is no ending. I do not know where to look for a bug I checked the content of the posts, checked the template and still does not send all the posts. Thank you for the advice. I am sorry for my English

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • @klokansoft

    What version of Subscribe2 are you using and when did you first notice this happening?

    Thread Starter KlokanSoft

    (@klokansoft)

    Aktual
    Core WP 5.1.1
    Subscribe2 10.27
    I think there are problems since the last update ?? I tried to uninstall the plugin, remove the subscribers to set everything again, and the second week still a bug.
    Nothing else essential has changed on the web, no additions of plugins, no configuration change, no settings.

    Furthermore, I have these versions available, but the issues are not reported, but the WP kernel is not updated either
    Ver: 10.22.1
    Ver: 10.26.1
    has not yet reported an error
    THNX

    @klokansoft

    I think I may have found an issue in the digest post email function. If you are happy amending code please try the following:

    In the classes/class-s2-core.php file you should find a little bit of code that looks like this around line 1527:

    foreach ( explode( ',', $this->subscribe2_options['exclude'] ) as $cat ) {
    	if ( in_array( $cat, $post_cats, true ) ) {
    		$check = true;
    	}
    }

    Change that to the following – not the addition of (int) on the second line:

    foreach ( explode( ',', $this->subscribe2_options['exclude'] ) as $cat ) {
    	if ( in_array( (int) $cat, $post_cats, true ) ) {
    		$check = true;
    	}
    }
    Thread Starter KlokanSoft

    (@klokansoft)

    Hello, I applied the change, preview tests were ok.
    Thank you.
    I cannot submit a report for posts, there is already a record that they have been submitted.
    Is it possible to do some reset (set a value in the database) and resubmit?
    Thank you
    sharp test up to a week :-/ I’ll watch

    @klokansoft

    You can resend last weeks digest, including the missed posts I think, by using the ‘Resend Digest’ button on the Subscribe2 > Settings page.

    Please let me know if it all works normally next week.

    Thread Starter KlokanSoft

    (@klokansoft)

    Hello, Thank you for your information, yes I know this method, but I don’t have enough posts on the test environment and I don’t want to disturb the user on the live site. I’ll wait until next shipment.
    Thank you for your cooperation.

    @klokansoft

    The fix for this should be in version 10.28 as recently released.

    Thread Starter KlokanSoft

    (@klokansoft)

    Hello,
    I have the first result. The customer today started shipping and everything went well.
    So far, only with code editing. New update not yet done, but it will probably be fine. I will make updates over time and still inform.
    Thank you very much for the fix!

    Thread Starter KlokanSoft

    (@klokansoft)

    I confirm other tests, everything is fine.
    Thank you !!

    Thread Starter KlokanSoft

    (@klokansoft)

    Hello,
    I’ve already found a mistake. Update done OK.
    I have edited the “s2_excerpt_length ‘, 55” parameter to 35 and the Nesw Email is not closed again, the footer is missing.
    It is likely that if there were more posts, the others are cut off. Please simulate and check.
    Thank you very much!!

    @klokansoft

    How did you change the 2_excerpt_length? Did you use the filer or edit the plugin code directly?

    Thread Starter KlokanSoft

    (@klokansoft)

    Hello, I don’t know how to set up in the filter, I edited line 1787 class-s2-core.php in code

    @klokansoft

    To use the filter you create your own plugin or add to your themes functions.php file. Editing the code directly and to some extent using the themes functions.php file means you lose your changes with any update to plugin or themes.

    add_filter( '2_excerpt_length', 'my_excerpt_length' );
    function my_excerpt_length() {
    	return 35;
    }

    I’m not sure if your direct edit would have changed anything else but we should exclude it as a cause.

    Thread Starter KlokanSoft

    (@klokansoft)

    Hello, I’ve tried it repeatedly. I set it right in code 35, 25, it was a mistake. I came back to 55 all right.
    I only tried it on preview email. I repeatedly tried to change it and repeatedly encountered an error while changing the s2_excerpt_length parameter.
    Never mind it’s important, I keep the core values and that’s fine.
    Thank you for your cooperation.
    It is possible to close this thread

    @klokansoft

    Threads done close as such so we can just leave it. If you need assistance in the future please open a new thread.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Does not send a complete list of posts’ is closed to new replies.