Fix Missing module Drupal 9 warning - drupal-9

When I do an upgrade from D8 to D9, I get the missing module message like:
The following modules are marked as installed in the core.extension configuration, but they are missing:
config_split_manager
scroll_to_top
splashify
theme_change
So I try various methods:
install and use the module_missing_message_fixer
do an sql request via drush: sql-query "DELETE FROM key_value WHERE collection='system.schema' AND name='config_split_manager';"
do a custom module inspired by https://www.drupal.org/node/2487215
Result is:
for MMF :
[warning] The following module is missing from the file system: scroll_to_top bootstrap.inc:222
[warning] The following module is missing from the file system: splashify bootstrap.inc:222
[warning] The following module is missing from the file system: theme_change bootstrap.inc:222
Don't forget to export your config
Don't forget to export your config
Don't forget to export your config
[warning] A non-numeric value encountered Output.php:145
[warning] A non-numeric value encountered Output.php:148
All missing references have been removed.
nothing for both of 2 others ways.
In the DB records, references are still there..what can I do more to delete these of the DB ?
Thanks

Had a similar issue some time ago when trying to install a few modules on my site, the following cmd did the trick in my case:
drush config:delete core.extension module.MYMODULE
More on drush config:delete checkout:
https://www.drush.org/latest/commands/config_delete/
https://drushcommands.com/drush-9x/config/config:delete/

Related

Karaf: Missing Constraint in bundle

I am trying to wrap dnsjava as a bundle in Karaf. When I try to start the bundle I get a "Missing Constraint" error. I looked in the dnsjava code and found that the only place android is referenced is in a Class.forName. So I am wondering what causes this problem and how can I get around it. I am pretty certain that the class is not referenced in the code anywhere.
Here is the exception:
opendaylight-user#root>bundle:start 288
Error executing command: Error executing command on bundles:
Unable to execute command on bundle 288: The bundle "dnsjava_2.1.8 [288]" could not be resolved. Reason: Missing Constraint: Import-Package: android.os; version="0.0.0"
I believe I found the answer. There is an Import in the MANIFEST.MF that requires android.os.

Azure Machine Learning Studio Custom Module Upload Error 0114 : An item with the same key has already been added

When trying to upload a custom R module to Azure Machine Learning Studio what causes the following error.
[ModuleOutput]
"ErrorId":"BuildCustomModuleFailed","ErrorCode":"0114","ExceptionType":"ModuleException","Message":"Error 0114: Custom module build failed with error(s): An item with the same key has already been added."}} [ModuleOutput] Error: Error 0114: Custom module build failed with error(s): An item with the same key has already been added.
I have tried renaming the module so a name that does not exists.
The duplicate key exception is a red herring. Build error 0114 is a general error that occurs if there is a system exception while building the custom module. The real issue my module was compressed using the built in compress folder option in the Mac Finder. To fix this compress the file using the command line interface for zip in Terminal in the following very specific manner.
The following example:
cd ScoredDatasetMetadata/
zip ScoredDatasetMetadata *
mv ScoredDatasetMetadata.zip ../
Builds a zip file with the correct file structure.

Symfony project Installation

I am trying to install Symfony inside my project folder by using this command: composer create-project symfony/framework-standard-edition path/ "2.5.*".
During the set up I get prompted with a question if I want to install Aceme demo bundle which I reply to with yes, the installation continues but I get prompted again with these questions "look at the image":
As you can see I filled in all the details but this throws set of errors:
[Symfony\Component\Debug\Exception\ContextErrorException]
Warning: date_default_timezone_get(): It is not safe to rely on the system's
timezone settings. You are *required* to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those methods
and you are still getting this warning, you most likely misspelled the timezone
identifier. We selected the timezone 'UTC' for now, but please set date.timezone
to select your timezone. in
/Applications/MAMP/htdocs/Symfony/Project1/vendor/monolog/monolog/src/Monolog/Logger.php line 233
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command. `
What am I doing wrong here?
Perhaps a downside of using composer to create the project, you don't have a chance to go through the "Checking your System Configuration" section of the installation and fix errors before proceeding.
https://github.com/symfony/symfony-standard/tree/2.5#2-checking-your-system-configuration
If you run php app/check.php you'll see that you haven't met one of the mandatory requirements, which is to explicitly setting the date.timezone value in your system's php.ini
I found the problem why the error was thrown xD
It was due to my php version I had installed on my mac (5.3)
Symfony requiers 5.5
Since I updated my version I dont see this error any more.
Thanks for yours help guys :)

Missing resource bundle com.adobe.flex.framework:playerglobal:rb.swc:ko_KR:4.5.1.21328

facing a issue while creating locale file with maven build for Korean locale.
rest of language resource bundle get created properly only Korean locale giving problem.
the following error occur.
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:compile-swf (default-compile-swf) on project
---: Execution default-compile-swf of goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:compile-swf failed: Missing
resource bundle 'com.adobe.flex.framework:flash-integration:rb.swc:ko_KR:4.5.1.21328
For this I have bundled required swc in my package and called same from maven build.

Error Running Mixed SQL and Java Migrations - Error executing statement at line 1: package db.migration

I'm trying to run a mixture of SQL and Java migrations via Maven based on the example from Axel Fontaine here: http://www.methodsandtools.com/tools/flyway.php
Basically I am trying to execute several SQL migrations, followed by a java migration (to load BLOBS into a table), then followed by another SQL migration.
The first set of SQL migrations run fine. If I specify a file extension of .java for the Java migration, it gets ignored. If I specify a file extension of .sql for the Java migration, it gets run in the correct sequence, but I get the following error:
[ERROR] com.googlecode.flyway.core.api.FlywayException: Error
executing statement at line 1: package db.migration [ERROR] Caused by
org.postgresql.util.PSQLException: ERROR: syntax error at or near
"package" Position: 1 [ERROR]
com.googlecode.flyway.core.api.FlywayException: Migration of schema
"test" to version 1.0.0106 failed! Changes successfully rolled back.
Here is the head of my Java migration file:
package db.migration;
import com.googlecode.flyway.core.api.migration.jdbc.JdbcMigration;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.io.File;
Any ideas as to what I'm doing wrong?
Okay, I finally figured out what was going on. While Flyway allows version numbers that contain "." in the name (ex. V1.0.0000_filename), apparently it is not supported for Java migration class names. I changed the class name to use "" instead of "." (V1_0_1000_filename) and that allowed me to get past the original error.

Resources