Sporadic CSS page display - HotThemes Forum - Hot Themes

Sporadic CSS page display

  • ckinberg
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
2 years 9 months ago #48891 by ckinberg
We have a new client that is reporting sporadic display issues with their site. At random, instead of displaying the site layout, it instead displays a CSS stylesheet starting with the following:/*
CSS STYLESHEET DYNAMICALLY GENERATED BY SPARKY
*/

/*
GOOGLE FONTS
*/
@import url(//fonts.googleapis.com/css?family=Lato:300,400,700,900,300italic&subset=latin,latin-ext);
@import url(//fonts.googleapis.com/css?family=Just+Me+Again+Down+Here);This has occurred on both the home and internal pages and usually clears up after a couple minutes. Needless to say this has been frustrating to duplicate. The site templates uses a modified version of the Justice template that appears to have been installed back in 2018. I've purchased the latest version of the template and have worked at comparing the two template versions but have only found a difference of the templates naming convention and minor image and CSS differences.

A sitewide search of select CSS styles that is displayed on the broken page (saved coding attached below) does not return any matches. Nor does the database provide any matching styles. Since this block of CSS seems to be dynamically generated I find myself at a loss. I've started to install the new template but given the differences in the layout and template settings I'm concerned about breaking the site layout should I miss anything.

The site is hosted on SiteGround, with: PHP Version 7.4.28, MySQL vr 5.7.32 and is running Joomla 3.9.11.

Has anyone encountered the issue where the web page is replaced with a style sheet and if so, is there any advice they could provide?

Please and Thanks


 
Attachments:

Please Log in to join the conversation.

  • ckinberg
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
2 years 9 months ago #48892 by ckinberg
Replied by ckinberg on topic Sporadic CSS page display
Currently the client is reporting the error appearing at:

bayfoundation.org/what-we-do/our-stories...s/312-burnsfund-blog

The home and most internal pages display properly but not this URL.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
2 years 9 months ago #48893 by milos
Replied by milos on topic Sporadic CSS page display
Hello,

Your link works fine on my computer. I reloaded several times.

Anyway, your website is based on a very old version of our framework. The problem you have occurs on some server configurations. It’s fixed in the Joomla 4 version of this template because it’s completely redeveloped using the new template framework.

I guess you can’t or don’t want to migrate the website to Joomla 4. You can fix this issue if you copy the dynamically generated CSS code from this link:
Code:
https://bayfoundation.org/?css_request=1&diff=1155581968

And paste it to the CSS file template_css.css (on the top of the file), after this line:
Code:
/******* COMMON SPARKY'S TEXT STYLES *******/

Then delete this line from index.php file of the template:
Code:
<link rel="stylesheet" href="<?php echo $css_url; ?>" type="text/css" />

After this change, the changes you make in the template settings won't be visible anymore. Since the website is already established, you probably won't make any changes there. To be able to change the template settings again, you should redo all the changes I mentioned.

Regards,
Milos

Please Log in to join the conversation.

Time to create page: 0.160 seconds
Powered by Kunena Forum