Override CSS Fix for 8.4 +

Permalink Browser Info Environment
It appears that the overrides css is being sent back to the browser with a content type of text/html which is then being ignored by some browsers. To fix this I have changed the following in packages/theme_supermint/elements/override.css.php

comment out or remove line 32:
//header("Content-Type: text/css");


comment out or remove lines 37 & 38
//echo $style;
//echo '/* Generated Time ' . $info . ' : ' . $time . ' ms ' . "*/ \n\n";


add at the end of the render method:
\Response::create($style, 200, ['Content-Type' => 'text/css'])->send();


hopefully this can help others in the same situation

Type: Discussion
Status: In Progress
triplei
View Replies:
binoy replied on at Permalink Reply
binoy
Hi,
I could not find out the mentioned codes and the lines in the file.
What might have happened? Would you please see the latest copy of supermint?
I am not able to use the latest form of c5. It turns out in an ugly way and; form submissions are not reported in the dashboard.
I installed addon recaptcha from marketplace. it is not working.
any idea for solution?
Thanks in advance.
Binoy John
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
I have three versions of my site, one local, and two at two different hosts. The local one and one of the webhosts work, but the one I am transferring to does not. I cannot for the life of me figure out why. Any thoughts? The above solution is the same for my as for binoy, those lines don't exist anymore.
baysmedia replied on at Permalink Reply
baysmedia
Thanks for sharing - this fixed Google Fonts.

For info, you've cited the wrong override_css.php file in your instructions though. The path to the correct file to change is:

/packages/theme_supermint/controllers/tools/override_css.php

Then your instructions work a treat!

Thanks again!
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
Magnifique! Works for me now as well. Thanks baysmedia!
plschneide replied on at Permalink Reply
plschneide
Thanks this fixed a problem with fonts/css (and the overrride) where it worked fine in PHP 7.2 but didn't in 7.3
baysmedia replied on at Permalink Reply
baysmedia
More fixes for C5 8.5.1:

Edit packages/theme_supermint/src/Models/ThemeSupermintOptions.php with:
Line 7:
use \Concrete\Core\Foundation\ConcreteObject;

Line 25: Change to
class ThemeSupermintOptions extends ConcreteObject


And also edit packages/theme_supermint/blocks/autonav/templates/supermint_dropdown.php with:
Line 92:
if($ni->cObj->getAttribute('display_multi_columns_drop')         || $displayOrder) :


There will almost certainly be other issues - but these are the issues I've found in the Supermint theme & custom templates in my website thus far.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000

# concrete5 Packages
Asset Injection (1.0.2), Basic Accordion (1.0.0), ExchangeCore reCAPTCHA (1.1.1), Fileset plus (1.0.0), Nested Content (2.0.11), ProEvents (2.8.4), Supermint Theme (3.4.1.3), Twitter Feed Block Components (1.0.1)

# concrete5 Overrides
blocks/content/templates/event_post/view.css, blocks/content/templates/event_post/view.php, blocks/content/templates/event_post, blocks/content/templates, blocks/content, blocks/pro_event_list/templates/list_metro/images/stop_watch_icon&32.png, blocks/pro_event_list/templates/list_metro/images/user_icon&32.png, blocks/pro_event_list/templates/list_metro/images/pin_map_icon&32.png, blocks/pro_event_list/templates/list_metro/images/chat_bubble_message_square_icon&32.png, blocks/pro_event_list/templates/list_metro/images/tag_icon&32.png, blocks/pro_event_list/templates/list_metro/images, blocks/pro_event_list/templates/list_metro/view.css, blocks/pro_event_list/templates/list_metro/view.php, blocks/pro_event_list/templates/list_metro, blocks/pro_event_list/templates/calendar_responsive/view.css, blocks/pro_event_list/templates/calendar_responsive/view.php, blocks/pro_event_list/templates/calendar_responsive, blocks/pro_event_list/templates, blocks/pro_event_list, blocks/date_navigation/templates/simple_listing.php, blocks/date_navigation/templates, blocks/date_navigation, blocks/image/view.php, blocks/image, blocks/search/view.php, blocks/search/controller.php, blocks/search, blocks/fileset_plus/view.php, blocks/fileset_plus, blocks/feature/templates/supermint_box.php, blocks/feature/templates, blocks/feature, elements/category_filter.php, views/ajax/pro_event_list/calendar_responsive.php, views/ajax/pro_event_list, views/ajax, src/triplei_asset_inject/js/scripts.js, src/triplei_asset_inject/js, src/triplei_asset_inject/css/main.less, src/triplei_asset_inject/css/main.css, src/triplei_asset_inject/css, src/triplei_asset_inject

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.7

# Server API
cgi-fcgi

# PHP Version
5.5.9-1ubuntu4.26

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, json, libxml, mbstring, mhash, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, ssh2, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 38M
sql.safe_mode - Off
upload_max_filesize - 32M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.