NO BUG: Regenerate CSS stuck and not working

Browser: Chrome 110
OS: macOS
URL: Is in backend I sent a link to help@bricksbuilder.io and created an account on the site
Video: ClickUp

Important plugins that we are using:

  1. ACSS
  2. WPML

We also tried to disable those plugins, problem still persisting.
Also the problem solves if you set up the CSS loading method to “Inline styles” but we wanted to use external files for better performance.

Thanks a lot

Hi @aryanshirani ,

Thanks for the login details.

The problem is related to your custom code in the entire website.

Once I disable Code execution, the CSS files are generated successfully

This means, you have to review each page with a code element and check if any code generates PHP error that stops the CSS file generation.

You can enable WP_DEBUG to get a clue which code causing the issue.

I noticed that you have many custom codes in the Product Page template, some inside queryEditor, and some in Code elements.

Example:

$product = new WC_Product(get_the_ID());
$attachment_ids = $product->get_gallery_image_ids();
return [
   'post_type'      => 'attachment',
    'post_status'    => 'inherit',
    'posts_per_page' => -1, 
    'post__in'       => $attachment_ids?:[9999999],
];

This code will generate an error if the post is not a WC product. You should add more error handling on your code.

Regards,
Jenn

Thanks a lot for the help, we checked and solved the issue!
Best support team!

I’m having the same issue. I can’t seem to find any error codes and I don’t see any issue when I enable debug. I am running on a Gridpane server if that make any difference.

Maybe it’s just invalid CSS causing the style generation to break @wazime

Debugging steps:

  • switch to inline styles
  • go to the frontend
  • copy the whole <style id="bricks-frontend-inline-css">...</style> element
  • Paste it to a code editor which support CSS linting (such as vsCode)
  • remove the opening and closing style tag, so there’s only the CSS left
  • see in the bottom left for errors