Notice: Undefined index: src in /vendor/magento/framework/View/Page/Config/Generator/Head.php on line 125

How to fix it. please reply.


  • Did you enable developer mode before upgrading? Commented Mar 7, 2018 at 9:30

1 Answer 1


Put your store in developer mode php bin/magento deploy:mode:set developer and make sure you have cleared the following directories:

rm -rf var/cache/*
rm -rf var/page_cache/*
rm -rf var/generation/*

It could be a third-party extension issue too.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.