0

in admin/stores/configuration/Product View I made changes to the Page Layout and Product Image Size (localhost). However, when pressing "Save Config" I get "Invalid file name" and no changes are saved.

Invalid file name error

I have no idea what file it is talking about - I only changed the settings in the Page Layout and Product Image Size dropdowns. Any ideas?

I tried flushing the cache and a setup:upgrade as part of the usual troubleshooting.

4
  • Try searching the files for the error message "Invalid file name". I tried searching in the core files but I found nothing. I mean I found some occurrences but they look different. Maybe you have a custom module doing this
    – Marius
    Commented Sep 24 at 11:57
  • Check magento log file for this, it will give you detail idea for the error. Commented Sep 24 at 13:25
  • No relevant magento log, unfortunately...
    – Teresa
    Commented Sep 25 at 9:47

1 Answer 1

0

Most likely you don't have the necessary media files (pictures for example). Try to set the debugger break point on vendor/magento/module-config/Model/Config/Backend/File.php line 285 and execute the expression from line 283:

$this->_getUploadDir() . DIRECTORY_SEPARATOR . basename($value)

and you will see the path to the file that causes the error. Example on the screen enter image description here

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.