Designer content locking down content blocks

Permalink 1 user found helpful
This may be filed under stupid questions but while using the 'Designer content' add-on, it adds folders to the 'Blocks' folder within your directory.

I now want to delete these or amend the files but cannot using ftp or my Plesk server login. I can't change the permissions as these are now set to Apache instead of my usual User ID.

Is there something within Concrete5.5 that alters the permission when these files are written by the block. Hope that makes sense I'm not technical. Thanks in advance

dhdesign
 
julehti replied on at Permalink Reply
julehti
I have the very same issue. My site has Concrete 5.5.2.1 and Designer Content 3.1. When I try to create a new block on any page, I get a message:
"Fatal error: Cannot redeclare class xxxxyyyyzzzzBlockController in /var/www/vhosts/xxx.xxx/httpdocs/blocks/xxxxyyyyzzzz/controller.php on line 38"
This block xxxxyyyyzzzz is a brand new block created with Designer Content. Actually there is no line 38 in controller.php.
I tried to delete this block using both ftp and Plesk, but all blocks are locked. So I can't add any new blocks, only edit the existing ones.
I have also added to the config/site.php the line "define('DESIGNER_CONTENT_FILE_CHMOD', 0666);" , as adviced on Designer Content documentation. But this has not helped.
julehti replied on at Permalink Reply
julehti
This is solved. The problem was caused by a new block, which name was almost similar with an existing block, just with an extra underscore.

I couldn't delete with ftp or Plesk the misbehaving block. So I created on my local machine a folder, where I copied all sound blocks in site's block folders. After that I renamed the my site's block folder to "blocks_deleted" and created a new empty "blocks" folder. Then I copied all sound blocks from my local machine to this site's new folder with ftp program.

So, be careful when naming blocks!