data-history-node-id after updating Drupal 8 - drupal

I've updated an older version of Drupal 8 to Drupal 8.3.1 on a localhost. And since then, the body content doesn't appear. Instead, there is only an HTML tag like this:
<data-history-node-id="8" data-quickedit-entity-id="node/8" class="contextual-region ds-1col clearfix">
It is the same on every node of the site. This kind of line appear like this in the source code. Editing the node, the normal text is editable in the form.
I can imagine it has something to do with quickedit!?!
But how can I fix it?
Thank you

The problem should certainly come from display suite module.
If you are using Drupal 8.3, then you have to upload display suite to his 8.3 version.
Have a look on ds description :
https://www.drupal.org/project/ds

Related

How can I manually clean Drupalgeddon malware?

In one of my elder Drupal 7 installations I found this js reference in my pages source code.
<script type="text/javascript" src="//upgraderservices.cf/drupal.js"></script>
According to my google search this could be caused by drupalgeddon malware. I have read some hints how to clean the system, but most of them recommend to restore the server from a previous backup. However, I do not want to loose current comments and would like to make a manual cleanup.
Where and how is this script added? I thought it might be included with drupal blocks. But when I disabled all blocks the script remains.
I think it must be somewhere in the drupal bootstrap procedure. Any ideas where to start and in which file (php?) additional drupal.js is added ?
In my case (drupal 7) the hack was inserted in the html source of all blocks with only an image. About 10 instances in my case. I deleted them by editing the content of the blocks in the user interface in 'source-mode'.

How to adapt jssor slider code to a Drupal 7 node

I have a paid account with you and I tried recently to export a jssor slideshow in order to put it in a Drupal 7 block.
I exported it according to the different possible ways :
download standard code
download jquery code
download minimized code
and I have always the same problem : the left and right arrow do not work and each time I edit the code in the node copied from the html page inside the zipped file the following syntax is never present :
Finally I chose the minimized code as I found it was better in order to avoid conflicts with other active js scripts in Drupal.
I pasted the js script is in the Drupal template "html.tpl.php" and the slideshow works automatically with the autoplay function but when I click the left and right arrows, the slides do not change.
Could you tell me however how to display the arrows vertically centered and to make them turn the slides as they supposed to do when clicked ?
Is there a known bug with Drupal 7 or a special way to adapt the code to the CMS ?
Thanking you in advance,
Best regards,
Corinne

Visual Composer not parsing

I just installed a theme I bought for wordpress and I installed dummy data.
The istructions said I should install the visual composer plugin so I am assuming that is was built that way.
But when I open pages that it came with, it doesn't parse nicely.
i have 1 page, that when I open it in visual composer the entire page shows up in 1 box that says raw html data.
But when i try to view it in classic mode, all I saw is gibberish letters and numbers
There is another page, that looks like the rows are split properly. But all the boxes say 'text box' instead it should be a bannervideo editing box.
when I view it in classic mode , it looks more like visual composer code
[vc_row][vc_column][bannervideo title="Atena Excellence in teaching" desc="College / University / Campus"
text1="Take a tour" link1="#" text2="View courses" link2="#"
play="Play video" image="184" link="https://vimeo.com/20370747" linkmp4="/intro.mp4" linkogv="huploads/2016/01/intro.ogv"]
[/vc_column][/vc_row]
Did I do something wrong when importing dummy data, or is it a problem with my visual composer?
or am I supposed to be using a different rendering plugin
Because your theme miss map for 'bannervideo' shortcode. You should contact to theme author to fix that or provide plugin define the map for that element.
Other option for page builder is King Composer. It is works well with any website https://wordpress.org/plugins/kingcomposer/

Why are the text-align buttons not appearing in my CK Editor in Drupal 7?

Essentially, I've been back and forth through settings and configuration for using the CK Editor as well as re-installing it but for whatever reason the text-align buttons for this WYSIWYG editor are not showing up despite the fact they appear to be configured to do so.
I'm using Drupal 7.19 and CK Editor 7.x-1.12. For clarification, this is the CK Editor as stand-alone project, not a part of the WYSIWYG project.
Also to be clear, this is not a problem of the buttons not working or text-align properties being stripped out, the buttons are simply not there. Which is a problem for ease of use for my end-users.
Why would this be happening?
Most likely you have downloaded a standard package which does not include justify plugin. Download the full package or add this plugin using online builder.
This is due to the "Limit allowed HTML tags and correct faulty HTML" filter settings. As outlined in this issue, you must explicitly allow those classes on the p tag https://www.drupal.org/node/2649546
<p class="text-align-left text-align-center text-align-right text-align-justify">
Also this is for Drupal 8

Drupal 7 Template Suggestions

I think in Drupal 6- I needed to add the suggestion of 'node-NID' to the list of template files that were candidates for a node with an nid of 10. Supposedly this is already done in Drupal 7 and indeed I see 'node__10' in my node's theme_hook_suggestions. This should translate to 'node--10.tpl.php', but with that file in place (/sites/all/themes/mytheme/templates/node--10.tpl.php) I don't see the content in that file.
I've also tried node-10.tpl.php, page-node-10.tpl.php with varying numbers of hyphens to no avail.
What am I doing wrong?
Try putting node--10.tpl.php in /sites/all/themes/mytheme instead of in the templates folder and be sure to clear the cache (admin/settings/performance) to allow Drupal to see the template override.

Resources