Forum Replies Created

Viewing 15 replies - 31 through 45 (of 124 total)
  • Thread Starter bigflannel

    (@bigflannel)

    Hi @bcworkz

    I am still drawing a blank with where I have gone wrong here. Any advice or insights would be greatly apprecaited.

    Thank you!

    Regards
    Mike

    Thread Starter bigflannel

    (@bigflannel)

    Happy and safe travels and thank you!

    Thread Starter bigflannel

    (@bigflannel)

    I uploaded the code to github:

    https://github.com/bigflannel/bigflannel-html5

    If you download it, let me know, I think I will delete it once you have it.

    Once again, thank you.

    Regards
    Mike

    Thread Starter bigflannel

    (@bigflannel)

    Thank you.

    I installed the Query Monitor plugin. On either a category page, or a single page or post, the query looks correct, the_content looks correct and includes the query block. All as expected I think.

    On both the category and single pages, the loop omits any post with a query block in it WP6.2. So my query includes the content I would expect then:

    <?php while ( have_posts() ) : the_post(); ?>
    
    <?php get_template_part( 'template-parts/content', 'archive' ); ?>
    
    <?php endwhile; ?>

    on the category page just omits the post with a query loop block in it.

    <?php while ( have_posts() ) : the_post(); ?>
    
    <?php get_template_part( 'template-parts/content', 'page' ); ?>
    
    <?php
    
    if ( comments_open() || get_comments_number() ) :
    
    comments_template();
    
    endif;
    
    ?>
    
    <?php endwhile; ?>

    on a single (page.php) returns nothing even though the query in query monitor looks correct.

    Why would:

    <?php while ( have_posts() ) : the_post(); ?>
    
    

    omit a row?

    More stumped and thanks for any help.

    Regards
    Mike

    • This reply was modified 3 years, 5 months ago by bigflannel.
    • This reply was modified 3 years, 5 months ago by bigflannel.
    Thread Starter bigflannel

    (@bigflannel)

    Oooh. And quickly. No partial post content is returned.

    It having a query block is coincidental makes total sense. But I can repeat the behavior using the query block across multiple posts and pages. Is it something associated with the query block?

    Obviously it is something in my custom theme. 🤔

    Once again. Thank you.

    Thread Starter bigflannel

    (@bigflannel)

    @bcworkz thank you! You are my support hero – you’ve helped me several times over the years. It is so appreciated.

    Essentially, with my theme, a fresh wordpress install and no plugins, a post or a page with the query block in it shows correctly in admin, but the single page for that post or page returns no posts on the front end, and a category page including a post with a query block returns all posts except those with a query block in it. The posts and pages display correctly in singles and category pages with Twenty Twenty-one and Twenty Twenty-Three. If I remove the query block from the post or page, the single page for that post or page returns the post (as expected, rather than no posts) with my custom theme. My custom theme works as expected in 6.1.1.

    I have define( ‘WP_DEBUG’, true ); in my config, I see no errors from WordPress, no php errors, no apache errors. I just get no posts found on singles, and missing posts in category pages.

    My custom theme has one loop on the single and category pages. On a category page such as the index, the_widget( ‘WP_Widget_Recent_Posts’ ); returns linked post titles of posts with query blocks in them, but the default loop on the page omits posts with query blocks in them. 😱 The linked singles in the recent posts widget return no posts. 😕

    I have definitely added items over the years to my functions.php to tailor it to me, but nothing that amends queries especially that I can work out. I’ve tried commenting out most of it to see if there is something I am missing.

    Currently the theme and example is running locally, but I can upload it later today. I can share it, whatever is needed.

    I am wondering if I am missing something regards the block editor, some setup, or something regards theming with the site editor being default in WordPress (like theme.json – which I am just beginning to learn about). I’ve picked at it for a few hours, it happens in multiple installations (some with plugins galore), it is repeatable and predictable (it seems). It’s really bugging me!

    I love the block functionality. I can build a dynamic site more quickly and freely. I haven’t quite got my head around block themes, and whether I really need to go full block, but it is all really exciting.

    Thank you once again for any help.

    Regards
    Mike

    Thread Starter bigflannel

    (@bigflannel)

    Hmm.

    while ( have_posts() ) : the_post(); in my theme does not return a post with a query block in it, even in a list of posts, it’s not there. It is there in the wordpress widget recent posts in my theme: the_widget( ‘WP_Widget_Recent_Posts’ );

    I am truly stumped.

    Thread Starter bigflannel

    (@bigflannel)

    Hi Again

    I realize this ball is really in my court, but I am failing to understand how my issue is even happening. Any suggestions greatly appreciated.

    If I check ‘Send an email notification that a signup has occurred.’ in the plugin settings, I get an email every 5 minutes or so regards a signup, they are all previously registered and approved people.

    I tried clearing crons from the database:

    UPDATE wp_options SET option_value = '' WHERE option_name = 'cron';

    I tried FFF Cron, WP Cron Cleaner, and WP Crontrol. Only WP Crontrol shows these crons, the other 2 plugins do not, I am not able to delete them with any plugin:

    wp_pdb_dynamic_value_update_string-combine_cron_interval
    wp_pdb_dynamic_value_update_numeric-calc_cron_interval
    wp_pdb_dynamic_value_update_date-calc_cron_interval
    wp_pdb_import_cron_interval

    I tried code in my functions.php file:

    add_action("init", "clear_crons_left");
    function clear_crons_left() {
    wp_clear_scheduled_hook("wp_pdb_dynamic_value_update_date-calc_cron_interval");
    }

    I couldn’t clear the schedule using the above code.

    I cleared all transients in the site using the plugin Transients Manager. I searched all plugin and theme code for the cron jobs I list, and part of their names, and cannot find them in the code or the database.

    I am really stuck, I can’t figure out where they might exist. As I said any thoughts greatly appreciated and thank you.

    Regards
    Mike

    Thread Starter bigflannel

    (@bigflannel)

    Hi

    I tried to clear the crons, but WP-Crontrol says they belong to another plugin and it can’t cancel them.

    Do you have any idea why that might be?

    Thank you!

    Regards
    Mike

    Thread Starter bigflannel

    (@bigflannel)

    Hi

    Switching off the caching seems to have greatly reduced the load from the site. So that’s both WP Super Cache and NGINX caching switched off.

    I switched notification emails on. I am getting a notification about every 5 minutes, which is the same time the cron interval is for:

    wp_pdb_dynamic_value_update_string-combine_cron_interval
    wp_pdb_dynamic_value_update_numeric-calc_cron_interval
    wp_pdb_dynamic_value_update_date-calc_cron_interval
    wp_pdb_import_cron_interval

    All these cron events remain after clearing the cache. The email is a notification of a new signup, but that person is already in the database.

    I did move the site to a new host. I transferred the database. I am wondering if I have lost some data regards person subscribed and notifications sent?

    Once again any pointers greatly received. As far as I am aware I am not running an object cache. I don’t really know what one is however.

    Thank you for any pointers.

    Regards
    Mike

    Thread Starter bigflannel

    (@bigflannel)

    Hi

    Really appreciate your thoughts. I design and develop and manage a server to support that. I don’t think it is running object caching, but I have WP Super Cache running as a plugin and NGINX caching running on the server configured via PLESK (the PLESK UI suggests it’s a good thing). I cleared both and the site seems much happier. I will keep monitoring it. I’ve also switched my admin email notifications back on so I will see if it starts looping again. So far so good. I really appreciate your thoughts and responses, it seems like my setup is the issue.

    Thank you!

    Regards
    Mike

    Thread Starter bigflannel

    (@bigflannel)

    Hi

    Thank you for getting back to me.

    I agree I am fumbling in the dark a little here. Using TOP in the terminal, I can see the server is occupied running PHP for this site (more than any other wordpress site I host). The traffic on the site is low. So I wondered what was happening. I looked at the cron jobs, these are all running every 5 minutes and are scheduled for every 5 minutes:

    wp_pdb_dynamic_value_update_string-combine_cron_interval
    wp_pdb_dynamic_value_update_numeric-calc_cron_interval
    wp_pdb_dynamic_value_update_date-calc_cron_interval
    wp_pdb_import_cron_interval

    What might I have done to make these constantly run? There is very little manual activity such as new submissions, updated records etc.

    There are no other non core cron jobs.

    When I mentioned multiple emails. Essentially as I took over administering the site, I was getting sign up emails (4 a day) for each and every one in the database, repeats as it were, of everyone in the list. I think I unchecked both of these in settings / signup form settings:

    Send Signup Response Email
    Send Signup Notification Email

    which stopped it, but it seems like the the whole list is constantly being processed.

    I noticed today because another site on my server has a traffic spike, and as I was monitoring stuff on the server to see if I needed to upgrade, I noticed the issue with this site using PHP.

    Once again, any suggestions warmly received.

    Thank you.

    Regards
    Mike

    Thread Starter bigflannel

    (@bigflannel)

    Thanks @threadi

    I tried the stackflow solution and it seemed to bring in the inline css, but did not result in the content being parsed again by javascript.

    I’ll keep searching for an answer.

    Regards
    Mike

    Thread Starter bigflannel

    (@bigflannel)

    Hi Steve

    Thank you!

    I reviewed the github pages, I think they want me to post development questions to the WordPress StackExchange. I posted here:

    https://wordpress.stackexchange.com/questions/398064/including-users-in-insert-link-internal-link-search-in-gutenberg

    Regards
    Mike

    Amending the site address to be www worked for me (with a few broken gateways etc. but eventually Jetpack was connected and working).

    https://bigflannel.com

    Brilliant!

    Thank you posters and solvers.

Viewing 15 replies - 31 through 45 (of 124 total)