This topic has 12 replies, 3 voices, and was last updated 4 years, 6 months ago ago by Olga Barlow
I have a problem with (Products) which I use on the front page. I use 2 types of Products, the first module is all products with grid and second module is SALE with slider option. Every 24h this module makes glitch, and I’m losing a whole home page, to return it back all that I need to do is just change product data from the sale to random and save and after that my home page comes back again and after that, I change it back to the sale and it’s working but on the other day, I’m facing the same issue again. What could be the main reason?
I’m using WPBaker plugin
Hello,
Enable WP debug mode https://wordpress.org/support/article/debugging-in-wordpress/ to find out what error appears on your site, it will point you in the right direction what needs to be fixed.
Regards
Ok, thanks.. Have you done anything cuz it’s working today, and if yes, may I know what have you changed?
Thank you, Rose.
We did nothing, just checked how it looks.
Regards
Alright,
well, I did enabled debug and will monitor if the issue will pop up again I’ll post output here..
Ok. Feel free to contact us.
Regards
I’m getting this error message 🙁
Warning: count(): Parameter must be an array or an object that implements Countable in /home/admin/web/zapatero.ge/public_html/wp-includes/formatting.php on line 3345
Notice: Trying to access array offset on value of type bool in /home/admin/web/zapatero.ge/public_html/wp-includes/formatting.php on line 3352
Hello,
When do you get this message? Seems that it’s related to WP Convert emoticons options of the WP not to our theme.
Regards
Every day, it happens when I’m not connected to admin panel. Also, I’m not using WP Convert emoticons options and it’s disabled everywhere where I just could find.
Any hints?
Hello,
Try to disable jetpack plugin and check because we found report about similar issue https://github.com/Automattic/jetpack/issues/8420
Regards
Unfortunately, I’m getting same error 🙁
This is the code which gives error :
function convert_smilies( $text ) {
global $wp_smiliessearch;
$output = '';
if ( get_option( 'use_smilies' ) && ! empty( $wp_smiliessearch ) ) {
// HTML loop taken from texturize function, could possible be consolidated.
$textarr = preg_split( '/(<.*>)/U', $text, -1, PREG_SPLIT_DELIM_CAPTURE ); // Capture the tags as well as in between.
$stop = count( $textarr ); // Loop stuff.
// Ignore proessing of specific tags.
$tags_to_ignore = 'code|pre|style|script|textarea';
$ignore_block_element = '';
for ( $i = 0; $i < $stop; $i++ ) {
$content = $textarr[ $i ];
// If we're in an ignore block, wait until we find its closing tag.
if ( '' == $ignore_block_element && preg_match( '/^<(' . $tags_to_ignore . ')[^>]*>/', $content, $matches ) ) {
$ignore_block_element = $matches[1];
}
// If it's not a tag and not in ignore block.
if ( '' == $ignore_block_element && strlen( $content ) > 0 && '<' != $content[0] ) {
$content = preg_replace_callback( $wp_smiliessearch, 'translate_smiley', $content );
}
// Did we exit ignore block?
if ( '' != $ignore_block_element && '</' . $ignore_block_element . '>' == $content ) {
$ignore_block_element = '';
}
$output .= $content;
}
} else {
// Return default text.
$output = $text;
}
return $output;
}
Hello,
It’s not our function, this is WP core function. Submit topic on the WP support forum.
We can help only if the error comes from our theme files or functions.
Regards
You must be logged in to reply to this topic.Log in/Sign up