drupal

The mysqli error was: Unknown database

為{幸葍}努か 提交于 2020-01-30 11:32:06
问题 I am importing a mysql database from the webserver to my local system for a migration from drupal 6 to drupal 8. I did an Export with phpmyadmin on the server. Then I created the database locally also with phpmyadmin and imported my dump from the server via phpmyadmin's import function. Then I created the user with the setting of my drupal 6 configuration. I can see the database in phpmyadmin if I connect with my local root user. I cannot connect with the user created from the settings ( lets

How to add a custom paragraph format in CKEditor

↘锁芯ラ 提交于 2020-01-30 04:34:30
问题 In my project I have a requirement to remove the paragraph format like "Address" and "Formatted" from the drop down and to add a new custom format called "Links" which would be Arial, 14px, bold, red. Is it possible to add custom paragraph format in CKEditor? 回答1: Use CKEDITOR.config.formatTags to specify some new formatting: CKEDITOR.replace( 'editor1', { format_tags: 'p;h2;h3;pre;links', // entries is displayed in "Paragraph format" format_links: { name: 'Links', element: 'span', styles: {

Best way to protect integrity of ajax request

五迷三道 提交于 2020-01-29 13:10:10
问题 I am building a Drupal website with a lot of user-specific information that will be posted using jQuery/ajax. The information it self is not very sensitive, it is just important to verify that the form-data has not been tampered with tools like Firebug, as well as ensuring the information is really requested from the specified user. In other words, I am trying to figure out the best way to protect the integrity and authenticity of the data when posting with ajax. Ideally I would like to use

displaying a Drupal view without a page template around it

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-28 13:18:08
问题 I would like to display a Drupal view without the page template that normally surrounds it - I want just the plain HTML content of the view's nodes. This view would be included in another, non-Drupal site. I expect to have to do this with a number of views, so a solution that lets me set these up rapidly and easily would be the best - I'd prefer not to have to create a .tpl.php file every time I need to include a view somewhere. 回答1: I was looking for a way to pull node data via ajax and came

displaying a Drupal view without a page template around it

浪子不回头ぞ 提交于 2020-01-28 13:17:57
问题 I would like to display a Drupal view without the page template that normally surrounds it - I want just the plain HTML content of the view's nodes. This view would be included in another, non-Drupal site. I expect to have to do this with a number of views, so a solution that lets me set these up rapidly and easily would be the best - I'd prefer not to have to create a .tpl.php file every time I need to include a view somewhere. 回答1: I was looking for a way to pull node data via ajax and came

Drupal Curl SSL Certificate Error

自古美人都是妖i 提交于 2020-01-25 23:11:11
问题 We are using a Drupal / Ubercart site, and recently I noticed that payment requests are failing. In the Drupal logs I see an error like so: cURL error: SSL certificate problem: unable to get local issuer certificate I found a number of solutions, and tried implementing them but with no results. Some things I have tried are: Modifying my /etc/php5/fpm/php.ini file to include the line curl.cainfo = /srv/keys/cacert.pem (which is a file I downloaded from http://curl.haxx.se/ca/cacert.pem).

Drupal Curl SSL Certificate Error

蹲街弑〆低调 提交于 2020-01-25 23:11:09
问题 We are using a Drupal / Ubercart site, and recently I noticed that payment requests are failing. In the Drupal logs I see an error like so: cURL error: SSL certificate problem: unable to get local issuer certificate I found a number of solutions, and tried implementing them but with no results. Some things I have tried are: Modifying my /etc/php5/fpm/php.ini file to include the line curl.cainfo = /srv/keys/cacert.pem (which is a file I downloaded from http://curl.haxx.se/ca/cacert.pem).

Drupal Curl SSL Certificate Error

南楼画角 提交于 2020-01-25 23:11:04
问题 We are using a Drupal / Ubercart site, and recently I noticed that payment requests are failing. In the Drupal logs I see an error like so: cURL error: SSL certificate problem: unable to get local issuer certificate I found a number of solutions, and tried implementing them but with no results. Some things I have tried are: Modifying my /etc/php5/fpm/php.ini file to include the line curl.cainfo = /srv/keys/cacert.pem (which is a file I downloaded from http://curl.haxx.se/ca/cacert.pem).

Drupal RPC Fault

◇◆丶佛笑我妖孽 提交于 2020-01-25 21:22:25
问题 Hopefully someone can help me with this problem. I'm starting to work with Drupal Services & Adobe Flex. I created a simple service and installed the AMFPHP module. In Adobe Flex when running the application, I don't seem to have a problem...and everything runs fine showing the data However, after uploading the .html and .swf files to my webserver and going to the site [http://www.bkardi.com/top25/Top25UI.html] I get the following error Authentication Error [RPC Fault faultString="Send failed

How to delete part of the code in TWIG for Drupal?

允我心安 提交于 2020-01-25 08:39:26
问题 I use this code to print the flag in its node : {{ content.flag_like_node }} When I print my flag in the template of my node, the rendering is as follows : <div class="bs-field-like-link"><a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapse1"></a><div class="flag flag-like-store js-flag-like-store-13 action-unflag"><a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapse1"></a><a title="" href="/fr/flag/details/edit/like_store/13