3

I'm trying to install Porto theme on Magento 2.4.8

After uploading, I used setup:upgrade and setup:static-content:deploy -f And on content deploy I have this error:

Compilation from source: K:/Xampp/htdocs/vendor/magento/theme-frontend-blank/web/css/styles-l.less error evaluating function `ceil` math functions take numbers as parameters index: 28611 in _extends.less on line 1286, column 21 1284| .page-title-wrapper { 1285| .order-date { 1286| @order-date-indent: ceil(@h1__margin-bottom/1.5); 1287| margin: -@order-date-indent 0 18px; 1288| } 1289| } in _responsive.less 

Error happened during deploy process:

>Compilation from source: K:/Xampp/htdocs/vendor/magento/theme-frontend-blank/web/css/styles-l.less error evaluating function `ceil` math functions take numbers as parameters index: 28611 in _extends.less on line 1286, column 21 1284| .page-title-wrapper { 1285| .order-date { 1286| @order-date-indent: ceil(@h1__margin-bottom/1.5); 1287| margin: -@order-date-indent 0 18px; 1288| } 1289| } in _responsive.less 
0

1 Answer 1

7

I have same issue when setup Porto in Magento 2.4.8 and I have resolve this issue using below changes:

Open files _extends.less

app\design\frontend\Smartwave\porto_rtl\web\css\source\_extends.less

app\design\frontend\Smartwave\porto\web\css\source\_extends.less

find below code from this file

@order-status-indent: ceil(@h1__margin-bottom/2); //line no : 1273 @order-date-indent: ceil(@h1__margin-bottom/1.5); // line no : 1286 

replace with

@order-status-indent: ceil((@h1__margin-bottom/2)); @order-date-indent: ceil((@h1__margin-bottom/1.5)); 

let me know if it's working fine

6
  • 1
    run s:up after this changes and then deploy, working fine thank you @Viral Patel Commented May 7 at 6:04
  • It worked. Thank you very much! Commented May 7 at 15:13
  • One more question please. I have a problem when importing static blocks in porto settings panel. Pages are imported but static locs gives me this error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null, query was: INSERT INTO cms_block (block_id, title, identifier, content, is_active) VALUES (?, ?, ?, ?, ?) Commented May 7 at 17:31
  • You have to select first demo version before import block and save after that you have to import block then it's working fine. ex. select demo 4 and save configuration after that import block Commented May 8 at 7:10
  • That is worked. Thank you so much!!! Demo is installed and looks correct but only issue I have is slider banners carousel is not working. :( Commented May 8 at 17:18

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.