How can I use a content type field on the body of the e-mail message template on the Webform module (Drupal 8)?

For usability matters, I would like to let the editor create his own confirmation message on my Event content type. So I create a field for that. I also have another field to select which webform is going to be used as a reference (I am doing that the same way that was done on the Event Demo that comes on the module).

Is there a way to use this content type field on the e-mail handler on the webform as a token or something like that?

MSSQL – Linked server returns message: “Query timeout expired.”

We have two separate sql servers. On one server we have a datawarehouse DWH, on the other we have sales information.

Now on the DWH server there is an ETL job that collects the information from the sales server. The job runs daily after midnight. The DWH collects the information via linked server from the sales database.

Now, the most time the ETL job runs without any problems. But sometimes it failes because of query timeout. We have found out, that there is a specific pattern: The failure happens every 11th day. So on the 11th day the ETL job fails to collect information.

We have searched everthing and could not found out what this issue causes. Also we know that the amout of data is everytime, almost the same. The next approach is to turn off the anti virus programm on the sales server.

Does anyone have a clue or any idea, where i can search for such a problem?

SQL Server – SQLNCLI11 for linked server returned message “Query timeout expired”

We have two separate sql servers. On one server we have a datawarehouse DWH, on the other we have sales information.

Now on the DWH server there is an ETL job that collects the information from the sales server. The job runs daily after midnight. The DWH collects the information via linked server from the sales database.

Now, the most time the ETL job runs without any problems. But sometimes it failes because of query timeout. We have found out, that there is a specific pattern: The failure happens every 11th day. So on the 11th day the ETL job fails to collect information.

We have searched everthing and could not found out what this issue causes. Also we know that the amout of data is everytime, almost the same.

Does anyone have a clue or any idea, where i can search for such a problem?

Thanks for every help

sudo mysql_secure_installation, error message appears for the first time

For the first time I ran the command sudo apt-get install mysql-server it ran its course, then I ran sudo mysql_secure_installation it then prompted

Securing the MySQL server deployment.  Enter password for user root: Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) 

I am using Ubuntu 18.04 for the first time; I entered my computer password for the user root password but it doesn’t work. Is there a way I could find out the password to it? Actually is there a reason why it does not tell me to create a password since this is my first time setting this up? Please advise.

Post MicroBlog message which includes Hashtags – InsufficientPermissions Error

I have a webpart in the master page which uses a jscript file to perform microblogging operations. This webpart has similar features like OOB NewsFeed part. There is no problem if I create a post which includes Mention, Url SocialData items, but if the message contains a Hashtag, the following exception is occured.

Microsoft.Office.Server.Social.SPSocialFeedManager.CreatePost: Microsoft.Office.Server.Microfeed.MicrofeedException: InsufficientPermissions : ( Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) ) The current user is not authorized to perform the operation.

I tried the code example which is found in MSDN and got same exception.

// Ensure that the SP.UserProfiles.js file is loaded before the custom code runs. SP.SOD.executeOrDelayUntilScriptLoaded(PublishPost, 'SP.UserProfiles.js');  // Declare global variables. var clientContext; var feedManager; var resultThread;  function PublishPost() {      // Initialize the current client context and the SocialFeedManager instance.     clientContext = SP.ClientContext.get_current();     feedManager = new SP.Social.SocialFeedManager(clientContext);      var socialDataItem = new SP.Social.SocialDataItem();     socialDataItem.set_itemType(SP.Social.SocialDataItemType.tag);     socialDataItem.set_text('#hashTag');         var socialDataItems = [ socialDataItem ];      // Create the post content.     var postCreationData = new SP.Social.SocialPostCreationData();     postCreationData.set_contentText('The text for the post, which contains a {0}.');     postCreationData.set_contentItems(socialDataItems);      // Publish the post. Pass null for the "targetId" parameter because this is a root post.     feedManager.createPost(null, postCreationData);     clientContext.executeQueryAsync(PostSucceeded, PostFailed); }     function PostSucceeded(sender, args) {     $  get("spanMessage").innerText = 'The post and reply were published.'; } function PostFailed(sender, args) {     $  get("spanMessage").innerText = 'Request failed: ' + args.get_message(); } 

It works if I use this code in “MySite” collection.

What should I configure to send messages including hashtags in other site collections?

Generic Message Queue Interface

I’m trying to implement an Interface for a Message Queue. This interface should allow different implementations of queues to be implemented etc AWS SQS, Azure Queue Service.

So lets say that I have an interface for the Message Queue:

type Queue interface {    AddMessageToQueue(msg QueueMessage) } 

I also have an interface for the message:

type QueueMessage interface {    ToSQSFormat() ...    ToAzureFormat() ...    ... } 

The QueueMessage interface will allow the implementation of the Queue to convert it into the required format.

Is this the proper way to achieve this? Is the QueueMessage interface violating interface segregation principle as the queue implementation will have access to all the “To…Format” methods in addition to the one it requires?

Invalid response line returned from server: HTTP/2 200 – message after update to 2.1.7

I seem to be getting this message after i updated to Magento 2.1.7 – it only displays on the contact page when someone submits the form.

Invalid response line returned from server: HTTP/2 200

I see this in the magento log file:

main.CRITICAL: Notice: Array to string conversion in /home/xxx/public_html/vendor/magento/module-catalog/Block/Product/View/Attributes.php on line 83 [] []