Sulu: how to properly rename / remove a webspace - sulu

it looks that the case to this issue has it's origin in a renamed webspace. We had one for a while, where we changed the key at some point.
What is the correct way in sulu to savely delete or rename a webspace?
Thx a lot!

As pointed out by #Alex in this issue, the solution is something like:
bin/adminconsole doctrine:phpcr:node:remove /cmf/oldwebspacekey
bin/websiteconsole doctrine:phpcr:node:remove /cmf/oldwebspacekey
A backup before running this commands is recommended, but it seems to work rather stable.

Related

How to clear or change a message in Redis using powershell?

I am using powershell that is hooked up to jupyter redis rediscommander retwis
I am creating codes like hset snap:msg:4 to "che" from "Dax" text "Is this thing on?"
I made a mistake and msg:3 is meant to be msg:4. Is there any way to clear or edit this message?
Thanks
I have tried lpop but I am new to this and do not understand all the words and what they do yet.
Welcome to StackOverflow!
I made a mistake and msg:3 is meant to be msg:4. Is there any way to clear or edit this message?
You want to rename that key using the RENAME command:
RENAME snap:msg:3 snap:msg:4
How do I just clear everything?
If you wish to remove all the keys in the selected Redis database (caution!) you can do that with the FLUSHDB command. Alternatively, the FLUSHALL command removes all the keys from all the Redis databases (even more caution!).

How to repair Unity registry on Windows 10?

I use PlayerPrefs to save some user data. I know that on Windows the data is actually saved in the registry under the \HKEY_CURRENT_USER\SOFTWARE\Unity\companyname key.
It used to be like this:
Unity
|--BugReporterV2
|--UnityEditor
|--companyname
|--some other things that I don't remember, maybe the project name then some detailed values
|--WebPlayer
I was intended to set all PlayerPrefs to default, so I deleted the whole key of companyname - stupidly without backup. Then in testing, I found that when calling
PlayerPrefs.SetString("testKey", "test");
it raised an exception
PlayerPrefsException: Could not store preference value
How can I repair the structure of the registry?
Can someone show me how the registry saved data with PlayerPrefs looks like under the "Unity" key with each keys and values please? Maybe I could fixed it manually.
Thank you!
I tried reinstall unity, and the registry is fixed. The origininal clean registry looks like this:
Unity
|--BugReporterV2
|--UnityEditor
|--WebPlayer
|--companyname
|--Project Name with Space
|--unity.cloud_userid_xxxxxx // value is quite complicated
|--UnityGraphicsQuality_xxxxxx // value is 5
The xxxxxx is something special for windows 10 that I'm not familiar with. Seems each key is followed by such a string that looks random to me. For anyone encountered similar issue, I think you can try creat the companyname and project name key. If the other keys are not created automatically after you run the project, then you could try reinstall unity.

Pymongo3.6 check_keys not doing it's job

I need dots in my keys in mongo. So, while inserting I am sending 'check_keys = False'. This was working fine for pymongo3.4. But I recently updated to pymongo3.6 and I am getting the InvalidDocument Error even when I am sending check_keys=False. Is there any way around this problem?
db['test'].insert([{'a.b': 'asd'}], check_keys=False}
Please try this out using both Pymongo3.6 and Pymongo3.4
Use insert_one method instead as insert is deprecated, and supply bypass_document_validation=True parameter.
I'm having a similar issue, and I found that update_one seems to not care about the dot (.), so I'm considering to create an empty object first, with insert_one, then add the contents to it later using update_one, that way bypassing that limitation. Not the cleanest solution, but could do the trick.

Why would LayoutObjectNames return an empty string in FileMaker 14?

I'm seeing some very strange behavior with FileMaker 14. I'm using LayoutObjectNames for some required functionality. On the development system it's working fine. It returns the list of named objects on the layout.
I close the file, zip it up and send it to the client, and that required functionality isn't working. He sends the file back and I open it and get a data viewer up. The function returns nothing. I go into layout mode and confirm that there are named objects on the layout.
The first time this happened and I tried recovering the file. In the recovered file it worked, so I assumed some corruption had happened on his end. I told him to trash the file I had given him and work with a new version I supplied. The problem came up again.
This morning he sent me the oldest version that the problem manifested in. I confirmed the problem, tried recovering it again, but this time it didn't fix the problem.
I'm at a loss. It works in the version I send him, doesn't on his system. We're both using FileMaker 14, although I'm using Advanced. My next step will be to work from a served file instead of a local one, but I have never seen this type of behavior in FileMaker. Has anyone seen anything similar? Any ideas on a fix? I'm almost ready to just scrap the file and build it again from scratch since we're not too far into the project.
Thanks, Chuck
There is a known issue with the Get (FileName) function when the file name contains dots (other that the one before the extension). I will amend my answer later with more details and a possible solution (I have to look it up).
Here's a quote from 2008:
This is a known issue. It affects not only the ValueListItems()
function, but any function that requires the file name. The solution
is to include the file extension explicitly in the file name. This
works even if you use Get (FileName) to return the file name
dynamically:
ValueListItems ( Get ( FileName ) & ".fp7" ; "MyValueList" )
Of course, this is not required if you take care not to use period
when naming your files.
http://fmforums.com/forums/topic/60368-fm-bug-with-valuelistitems-function/?do=findComment&comment=285448
Apparently the issue is still with us - I wonder if the solution is still the same (I cannot test this at the moment).

typo3: issue with changing file:ext_tables_static+adt.sql

In file: ext/quick/ext_tables_static+adt.sql
...
INSERT INTO `tx_quick_string` (`name`, `vlaue`) VALUES
('catalog', 'this is group one');
...
I want to change the value to 'this is group 1'. This is what I did:
a.changed it in this file:ext/quick/ext_tables_static+adt.sql
b.changed it in typo3/phpmyadmin->table tx_quick_string
It seems work. But I have some questions:
1.Does this file ext_tables_static+adt.sql only take effect when install/uninstall extension?
2.Is there anything else I need to do after I changed the value in ext_tables_static+adt.sql and typo3/phpmyadmin->table tx_quick_string? Do I need to update the extension in EM?
Yes, only when you install the extension.
No, if you already did the db update manually, there is nothing more to do.
If the extension you mentioned is not maintained by you, the files may get reverted during the next update of this extension, keep that in mind!
Apart from the things you asked I strongly advise you to NOT use the phpmyadmin extension of TYPO3. It has security problems on a kind of regular basis. So the better and more secure solution is to either use the db management tool your hosting company provides (they will keep it running and updated) or to put a separate tool somewhere else and secure it with a password (like htaccess restriction or something).