Solved – Magento 2.4.4 Deprecated Functionality: pathinfo(): Passing null to parameter #1

WElcome to this article, I hope this article will resolve your error.

Error: –

Deprecated Functionality: pathinfo(): Passing null to parameter #1 ($path) of type string is deprecated in /vendor/magento/framework/View/Asset/PreProcessor/FileNameResolver.php on line 44

Solution: –Β 

Go to the parent directory of your theme, it must be in vendor/magento/theme-magento-blank or theme-magneto-luma/ then web/images, copy logo.svg and put this in your theme directory app/design/frontend/[vendor]/[theme]/web/images .

The problem was we should put the logo.svg image file in our theme: app/design/frontend/[vendor]/[theme]/web/images/logo.svg

In Magento 2.4.4, Child themes need to have a logo.svg file.

Once you copied logo.svg from parent to your theme. Do the following :

    • Remove the files and folders present inside pub/static/frontend
    • Remove the files and folders present inside var/view_preprocessed/pub/static/frontend
    • Run the deploy commandΒ  – php bin/magento se:s:d -f

That’it !

Do comment below, giving your feedback.