New answers tagged

1

Following command will help you for sure. chmod -R 777 var pub generated php bin/magento setup:upgrade && php bin/magento setup:static-content:deploy en_US -f If this helps you then hit like and accept as answer. Thank you, Hiren Patel


1

In most cases this happens due to empty less/css files. Check if the file style.css or style.less located in the frontend directory of Mymodule_Base module is not empty. Add some css there. Then run rm -rf var/view_preprocessed rm -rf pub/static/frontend and then run static content deployment again.


1

these 2 lines may help: find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + assuming www-data is your server group chown -R :www-data . references: https://devdocs.magento.com/guides/v2.4/install-gde/prereq/file-system-perms.html#perms-set-two-users


0

I don't believe you can do this with XML, if you look at the block XML instructions on the dev docs you'll see there is no method for adding CSS classes. This means it would only be possible if the PHP class contains the functionality, from a quick search through the PHP this is not the case. You will need to either wrap your block in a container element ...


-1

Did you mean this? I've given css in xml header for my custom modules. <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <css src=&...


0

you can add your custom class for your custom link like this <referenceContainer name="header.panel"> <block class="Magento\Framework\View\Element\Html\Links" name="b2blinks" before="top.links"> <arguments> <argument name="class" xsi:type="string">header ...


0

Try this <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.overview" template="Magento_Catalog::product/view/attribute.phtml" group="detailed_info" after="product.info.extrahint"> <arguments> <argument name="at_call" ...


0

You can find the .htaccess file from below path : https://github.com/magento/magento2/tree/2.4-develop/pub/static Hope it may help you!


0

Stylesm.less should be Styles-m.less. So you may search for a reason why this string stylesm comes up. Search for this string is the first step, let us know once you have found it.


0

Another solution: My PHP version: 7.2.32 composer require pelago/emogrifier:2.0.0 It was not working with pelago/emogrifier:2.2.0 Thanks,


0

Make sure the lib folder is created properly (should be automatically created when composer installs magento/magento2-base) as that's where the css/source/lib/_lib.less file comes from.


0

I downloaded the above code by Kishan, (I can't reply yet as I just registered to magento stackexchange) It's working as expected on Magento 2.4! But wondering if there's a way to show the profile picture to the admin panel? I used it as a way to "Upload valid ID" so the admin needs to verify the ID as well. Cheers


0

Please check your pub/static folder. Maybe the www-data group doesn't have a write permision to create _cache folder. I've deleted static folder manually in command line. Therefore it can not create _cache folder. Take a look at var/log/exceptions.log: tail -f var/log/exception.log In my case: [2020-09-26 12:28:24] main.CRITICAL: Le répertoire "/data/...


0

Please check your pub/static folder. Maybe the www-data group doesn't have a write permision to create _cache folder. I've deleted static folder manually in command line. Therefore it can not create _cache folder. Take a look at var/log/exceptions.log: tail -f var/log/exception.log In my case: [2020-09-26 12:28:24] main.CRITICAL: Le répertoire "/data/...


Top 50 recent answers are included