Blog

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.

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

  1. Thank you so much for all of the knowledge and guidance that you have so generously shared through all of these articles.
    All articles are very helpful to solve errors, and the way u explained step by step so its easy ….You’re genuinely a phenomenal teacher.

Leave a Reply

Your email address will not be published. Required fields are marked *