iank Posted November 14, 2023 Share Posted November 14, 2023 Hey @bernhard, Not urgent, but I discovered a slight glitch when trying to delete a block from the dropdown on the module config page, which appears to be down to the backslash notation in Windows (I develop locally on Windows). The getFiles() method of Block.php doesn't find any matching files on a Windows setup. The path returned by the dirname($file) call is returning something like this: 'D:\laragon\www\sitename\site\templates\RockPageBuilder\blocks_general\IanTest/IanTest' whereas the wire->files->find->($dir) returns file paths corrected for backslashes like this: 'D:/laragon/www/sitename/site/templates/RockPageBuilder/blocks_general/IanTest/IanTest.view.php' If I correct the backslashes as follows on line 340, it works just fine: $dir = str_replace("\\", "/", dirname($file)); No rush - deleting the block files manually and doing a modules refresh works in the meantime. Cheers, Ian. 1 Link to comment Share on other sites More sharing options...
bernhard Posted November 14, 2023 Share Posted November 14, 2023 Thx for the report @iank I've just pushed a fix for this in v4.7.3 - could you please check if that works for you? Thx ? Link to comment Share on other sites More sharing options...
iank Posted November 15, 2023 Author Share Posted November 15, 2023 Hi @bernhard, Yes, I can confirm that fixes the issue. Thanks! Ian. 1 Link to comment Share on other sites More sharing options...
bernhard Posted November 15, 2023 Share Posted November 15, 2023 Great! ? Thx for the report and for pointing me to the right spot for the solution ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now