After checking all possible reasons, I found that all my URLs on Facebook were causing too many redirects.
If I flush the cache, some URLs work for a few minutes, but then the redirect loop happens again.
After disabling the LiteSpeed plugin, everything works as expected.
–
After some test, I can confirm redirect loop with recommended preset. Work again with essential or basic (I maintain this atm).
—
edit, again crash also with basic. Now with essential.
–
also with essential crash after some time.
disabled again.
]]>I have added the $page = get_queried_object()
to my page.php template file and dumped the output using var_dump( $page )
. The WP_Post object is displaying the correct page object data for each page visited on the multisite. It looks like the data can be retrieve, but something in the loop is not working for some reason.
I have included the var_dump( $page )
below for reference.
object(WP_Post)#1531 (24) {
["ID"]=> int(157)
["post_author"]=> string(1) "8"
["post_date"]=> string(19) "2024-08-21 10:49:40"
["post_date_gmt"]=> string(19) "2024-08-21 16:49:40"
["post_content"]=> string(155) "This page will act as the primary landing page for various content that belongs in the contact section."
["post_title"]=> string(7) "Contact"
["post_excerpt"]=> string(0) ""
["post_status"]=> string(7) "publish"
["comment_status"]=> string(6) "closed"
["ping_status"]=> string(6) "closed"
["post_password"]=> string(0) ""
["post_name"]=> string(7) "contact"
["to_ping"]=> string(0) ""
["pinged"]=> string(0) ""
["post_modified"]=> string(19) "2024-10-15 12:36:20"
["post_modified_gmt"]=> string(19) "2024-10-15 18:36:20"
["post_content_filtered"]=> string(0) ""
["post_parent"]=> int(0)
["guid"]=> string(50) "https://beta.domain.com/child-site/?page_id=157"
["menu_order"]=> int(0)
["post_type"]=> string(4) "page"
["post_mime_type"]=> string(0) ""
["comment_count"]=> string(1) "0"
["filter"]=> string(3) "raw"
}
Error
Warning: Undefined array key 0 in /var/www/domain.com/wp-includes/class-wp-query.php on line 3671
and Warning: Undefined array key 0 in /var/www/domain.com/wp-includes/class-wp-query.php on line 3766
Affected Functions from class-wp-query.php
public function next_post() {
++$this->current_post;
/** @var WP_Post */
$this->post = $this->posts[ $this->current_post ];
return $this->post;
}
public function rewind_posts() {
$this->current_post = -1;
if ( $this->post_count > 0 ) {
$this->post = $this->posts[0];
}
}
Var dump
if ( have_posts() ) :
while ( have_posts() ) :
var_dump( the_post() );
get_template_part( 'template-parts/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile;
endif;
The returned output of var_dump( the_post() );
is NULL.
Content Page template partial
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
There are two custom post types and taxonomies registered. They have been disabled for testing and do not have an effect on the errors.
I have commented out various functions in my theme’s functions.php file for testing purposes. None of the testing has yielded a successful result. None of the functions utilize the the_content()
function.
I have changed to the twentytwentyfour theme for testing and the pages and posts do load correctly. After re-enabling my custom theme, I disabled all plugins individually including Advanced Custom Fields Pro with no success.
I am at a loss on why this is occurring. I manage other multisites with none of these issues.
]]>people on mobile can not make order because in url is showing : ?scfm-mobile=1
and according the logs it put in loop and woocommerce can not proceed via payment methods
]]>Problem disappear if I deactivate Imagify or set Infinite Loop to OFF.
What can I change in plugin code to set first image correctly
]]>The main problem is that when the carousel contains only one item, it stretches that item to fill the entire width, which is not what the client wants. I’m looking for a way to enforce a fixed size for the carousel items, regardless of how many are displayed at a time.
Is there a solution to prevent the carousel from automatically resizing items and keep them at a consistent, fixed size?
]]>Any Idea?
]]>we′re facing an issue where the Plugin breaks the site layout if there are Dynamic Conditions within a loop. I had to replace all Conditions with Elementors (nowadays) built in Conditions.
For me there is no need to reply since we deactivated the plugin and removed it completely but I wanted to report this issue.
Steps to reproduce:
1.) Post with Custom Field Content
2.) Create a Loop-Template and set Conditions to Display anything if Custom Field Content = XY
3.) Load the site where the loop is placed
When I flush cache, things are back to normal, until the issue starts again.
What can I check or reset to try and prevent this from occurring?
]]>There wont be much problem if they expired every day or that, but they are getting stucked in the database. We got one of them that, it went over 2 million rows of transients, and the DB got to 1GB.
Is there a way to stop those transient of being created every few seconds, or something to fix this? We got a transient cleaner plugin, but we have to go every day to press the clean all transients, bcs it only deletes auto daily the expired ones, and those doesnt seem to expire soon.