drupal 7 GRA4 install - drupal

i installed drupal 7.0 and module Libraries API after that i try install this module (https://www.drupal.org/project/gra4) but on page where module must be work i see this displays the inscription
"Please make sure the GRA4 library is installed in the libraries directory. GRA4 library can be found here. Place files in sites/all/libraries/gra4/ (or sites/example.com/libraries/gra4 if you have a multi-site installation)."
i try put files in this way sites/all/libraries/gra4/ but after that shows a white screen on the page - what I need to do that would be earned module

Related

No such file or directory in Drupal\Core\Asset\JsCollectionOptimizer (Flexslider) Drupal 8

I have a new Drupal 8 site installed and I'm trying to get the Flex Slider module to work.
After installing it in /admin/reports/status there is the following error:
FlexSlider library not found. Please consult the README.md for installation instructions.
When going to the flexslider example pages, the images show but not in a slider. I get this error:
Warning: file_get_contents(libraries/flexslider/jquery.flexslider-min.js):
failed to open stream: No such file or directory in Drupal\Core\Asset\JsCollectionOptimizer->optimize()
(line 127 of /var/www/html/web/core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php)
I'm still a Drupal beginner and I'm not sure where to go next.
Please make sure you have followed all the steps from the Installation section on the Flex Slider project page. The error indicates that the Flex Slider library is missing from sites/all/libraries.

Modules not getting detected by Drupal

I am currently working on a CMS Website new installation of Drupal. I need to enable Metatagging in my website.
In order to do so I have installed all required modules, but somehow drupal is not detecting the those modules. Please refer below screenshot.
I have used this link of metatag module to download and install : https://www.drupal.org/project/metatag
Following are the version details of various components I am using,
Drupal : 7.35
PHP : 7.2
OS : Ubuntu 18.04 LTS
MySQL : Ver 14.14 Distrib 5.7.24
Please help me with the resolution to this problem. I am open to any other way as well to get metatagging in place.
Thanks already !
As you can see in the screenshot, required dependencies are "missing". Make sure you have downloaded Token, Ctools and Google Analytics modules, for Drupal 7, and extracted them under sites/all/modules folder. Then their flag should be "disabled". After this, you can install your desired modules alongside with their dependencies.
The wonder is that your "system" module is missing too!! its a Drupal core module, perhaps your Drupal installation is corrupted. Try re-extracting and overwriting Drupal core zip file.

How to instal modules with Drupal 8 and Composer?

I installed Drupal 8 via composer with:
composer create-project drupal-composer/drupal-project:8.x-dev my_site --stability dev --no-interaction
This downloaded all the files and run composer install. According to this tutorial - https://www.drupal.org/node/2718229 - doing so this way will also configure composer.json to allow installation of modules, themes etc too via composer. Nice
However, I'm trying to install a new module:
$ composer require drupal/codesnippet
Using version ^1.6 for drupal/codesnippet
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing drupal/codesnippet (1.6.0)
Downloading: 100%
Writing lock file
Generating autoload files
> DrupalProject\composer\ScriptHandler::createRequiredFiles
However, when I go to Admin Bar > Extend > Install new module, I can search for the module and it says it's not installed yet. If I try to enable/install it from there it tells me I need to download and copy to the /libraries directory:
Before you can use the CKEditor CodeSnippet module, you need to download the codesnippet plugin from ckeditor.com and place it in /libraries/codesnippet. Check the README.txt for more information. Get the plugin here. (Currently using CodeSnippet version Plugin not detected)
Are these two completely different methods? How can I complete the installation with composer of this module?
Composer is a dependency manager, and whether or not third-party dependencies are included depends on how the module author managed their dependencies in the first place.
You aren't going to be able to complete the install via Composer alone, if a specific dependency isn't present on the repository that Composer downloads its packages from.
You're going to have to download the CKEditor CodeSnippet module from ckeditor.com. Composer can't manage that dependency for you, because that CKEditor plugin isn't a Composer package.
You can download it here: http://ckeditor.com/addon/codesnippet
Martyn, I guess you are confusing two different things into the same one: the drupal module and the external library required by the module.
The Drupal module codesnippet (https://www.drupal.org/project/codesnippet) is just a drupal integration module for the CKeditor addon with the same name, which you can download it (http://download.ckeditor.com/codesnippet/releases/codesnippet_4.6.2.zip) and place it in the drupal webroot /libraries folder manually (in your case my_site/web/libraries/ to be more specific - you have to create it if does not exist already).
Then you should be able to enable the drupal module.
PS: You could also add the library requirement in the composer.json library manually, which might be just a bit more complicated for beginners, because you also have to manually specify other things like a repository type, url and installer-paths for the extra external library that you need , but might be easier in the long run to deploy new Drupal8 installations with the same requirements just with a proper main composer.json file, without the need to go and manually download external libraries. There is a similar comment of mine(user zet) that you could read on this drupal dropzonejs module issue https://www.drupal.org/node/2853274

Error: Map theme file does not exist... (Qt5 application with third party libraries Marble)

I am trying to deploy a Qt5 application with a Marble plugin using dynamic linking. I have put the Qt5 libs, platform plugins and the marble libmarblewidget-qt5.so.22 with my executable application. The application works from an Ubuntu with marble installed on it. Now I am trying to run the application on an Ubuntu without marble installed. I am using the startup script from http://doc.qt.io/qt-5/linux-deployment.html to start my application. I am working on Ubuntu 16.04 32-bits.
When I run the startup script for the application (from terminal) I get this error message:
Map theme file does not exist: ""
Ignoring to load the following file since it doesn't look like a valid Marble plugin: "/boot/initrd.img-4.4.0-21-generic"
Reason: "'/boot/initrd.img-4.4.0-21-generic' is not an ELF object"
Ignoring to load the following file since it doesn't look like a valid Marble plugin: "/boot/vmlinuz-4.4.0-21-generic"
Reason: "'/boot/vmlinuz-4.4.0-21-generic' is not an ELF object"
Segmentation fault (core dumped)
Am I missing something, should I have something more than just the libmarblewidget-qt5.so.22?
Marble needs more than libmarblewidget-qt5.so to run properly. At least you need data for the map theme you want to show, and usually also some plugins. Have a look at the installation folder (CMAKE_INSTALL_PREFIX) after compiling Marble. You'll find plugins in e.g. lib64/marble/ and data in share/marble/data.
The paths to plugins and data is compiled into libmarblewidget-qt5.so, but can be changed at runtime. To do so, use MarbleDirs::setMarbleDataPath() and MarbleDirs::setMarblePluginPath().
In short, you have to
ship all or some plugins to a folder of your choice
Call MarbleDirs::setMarblePluginPath("/your/plugins/install/folder");
ship all or some data to another folder of your choice
Call MarbleDirs::setMarbleDataPath("/your/data/install/folder");
The output you get (and likely also the segfault) happens because the compiled in plugin path does not exist on the target system, therefore Marble's plugin manager searches in / and tries to load the files it finds there.

Install module "Devel" on Drupal 8

I´m trying to install de Devel module of Drupal 8, I was reading the README.txt of Project/modules of Drupal, I have read this:
Placing downloaded and custom modules in this directory separates downloaded and
custom modules from Drupal core's modules. This allows Drupal core to be updated
without overwriting these files.
I have downloaded from the official website Drupal - Devel the 8.x-1.x-dev version, to Drupal 8, and when I paste the module (after descompressed) in Project/modules, I have cleared the cache and Updates the "Extends" menu, but I can´t find my "Devel" module.
Do I need to install and configuring the FTP server?
just try with drush .
drush en devel -y
If you are using composer try
composer require drupal/devel
Maybe you could try with
/admin/modules/install and let Drupal put it where it should be placed.

Resources