Jump to content

[Solved] Block Delete from RockPageBuilder module settings not working on Windows


Recommended Posts

Posted

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.

  • Thanks 1
  • iank changed the title to [Solved] Block Delete from RockPageBuilder module settings not working on Windows

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...