-
AuthorPosts
-
July 9, 2021 at 3:41 am #1309316
Dear Enfold,
every time a site of mine build with enfold things get wonky when it reaches 4k+ pages.
((i cant select the homepage in the settings anymore, or i can’t adjust/edit h1, h2’s on pages etc)Im on vps so there’s enough memory etc.
Anyway, after debug is set to true this is what im getting:
—
Notice: Undefined index: post_status in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1139Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1400
The site is working fine, but at the backend im very very restricted.
Please help me out with this guys!(ive tried everything and anything…100x over)
July 9, 2021 at 5:02 pm #1309419ive found this on line 1531,
/**
* If too many entries limit output and only show non hierarchical
*
* @since 4.2.7
*/
$limit = apply_filters( ‘avf_dropdown_post_number’, 4000, $post_type, $element, ‘avia_fw_select_hierarchical’ );
$count = wp_count_posts( $post_type );
if( ! isset( $count->publish ) || ( $count->publish > $limit ) )
{
return false;
}That’s exactly the treshold number i was talking about! (can i yp that number to lets say 40k?
July 9, 2021 at 6:00 pm #1309426So basically the problem is that i can only select my homepage in Enfold if there’s less then 4k pages.
After that the selectbox shows up empty.
Can i adjust the $limit myself?Notice: Undefined index: post_status in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1139
Notice: Undefined index: post_status in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1139
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1400
Notice: Undefined index: post_status in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1139
Notice: Undefined index: post_status in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1139
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1400
Notice: Undefined index: post_status in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1139
Notice: Undefined index: post_status in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1139
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1400
Notice: Undefined index: post_status in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1139
Notice: Undefined index: post_status in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1139
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mysite.com/httpdocs/wp-content/themes/enfold/framework/php/class-htmlhelper.php on line 1400
Please advice me what to do!?
July 13, 2021 at 8:36 am #1309891Hi,
sorry for the late reply.
As a first step you can try to modify the value of 4000 and increase it.
If this works you can add the following filter to your functions.php of your child theme (or parent theme) to be safe on upgrades:
function custom_avf_dropdown_post_number( $limit, $post_type, $element, $context ) { $limit = 9999; // set to your desired value return $limit; } add_filter( 'avf_dropdown_post_number', 'custom_avf_dropdown_post_number', 10, 4 );
Best regards,
Günter -
AuthorPosts
- You must be logged in to reply to this topic.