🇺🇸United States @holljac

Account created on 13 May 2006, almost 19 years ago
#

Recent comments

🇺🇸United States holljac

When I open that file, it lists "core_version_requirement: '>=9.4'". I assume that means tha 11.1 should work.

🇺🇸United States holljac

According to "Upgrade Status" package, the color package is compatible. Is the "Upgrade Status" package incorrect? If so, is it giving other false information? I am using the package "Upgrade Status" to guide me, along with reading some stuff available on the web. As far as this install, it has not been modified except for adding modules. I have heard of pinning, having no idea how to do it. Until today, I had never altered a composer.json. Whatever is in the json was put there by drupal. I have no idea if I need drupal/core-dev or palantirnet/drupal-rector. Again, this is a stock install. Please read this thread from the beginning to understand everything that has happened.

🇺🇸United States holljac

Wow, that looks like starting the learning curve from scratch! For now though, I don't think I'm ready to do that. Thanks for the idea. Maybe in the future.

🇺🇸United States holljac

You were absolutely right about the composer.json having the packages listed that were continually re-installing themselves. Once I removed them from the .json, it stopped. Thank you!

My composer.json is at the bottom. It used to say "10.*", so I modified it by putting in the '^11'.  At the bottom is says "drupal/core-dev": "10.4.1". Is this a problem? I have tried changing it to ^11 but it just throws a different version of errors. When I try to use 'composer update "drupal/core-*" --with-all-dependencies' to upgrade, all I get is an error saying 'Your requirements could not be resolved to an installable set of packages.' and then followed by:

Problem 1
    - Root composer.json requires drupal/core-recommended ^11 -> satisfiable by drupal/core-recommended[11.0.0, ..., 11.1.1].
    - drupal/core-recommended 11.0.0 requires drupal/core 11.0.0 -> found drupal/core[11.0.0] but these were not loaded, likely because it conflicts with another require.
    - drupal/core-recommended 11.0.1 requires drupal/core 11.0.1 -> found drupal/core[11.0.1] but these were not loaded, likely because it conflicts with another require.

And it repeats numerous times just changing the version.

 So I don't feel I've made any progress with this section other than the perpetually installing packages. I did check on cron. It was set to run every three hours. However it had run 36 times already this morning! I changed the frequency to once a week. It made no change in the lag. The reason I mentioned the cacert.pem was because after the install I was getting the guzzletop errors until I modified the php.ini and the phpForApache.ini. Then it went away. Interestingly, I have also installed Joomla and Wordpress. They do not have the long lag issues of Drupal. That leads me to believe it is something with Drupal. The hosts file is correct. I changed the memory limit to 256M from 128M. It made a improvement, but it is still 5-10 seconds to load a page with an occassional "Site cannot be reached. Connection reset" error. Now I am at a loss for what to do next. Any advice on the composer.json or anything else would be appreciated. Every time I make a change to one of the configuration files, I clear all caches in drupal and restart the wamp server from scratch. Just trying to eliminate possible issues. Thank you so much.

{
    "name": "drupal/legacy-project",
    "description": "Project template for Drupal 9 projects with composer following drupal/drupal layout",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": "https://www.drupal.org/project/drupal",
    "support": {
        "docs": "https://www.drupal.org/docs/user_guide/en/index.html",
        "chat": "https://www.drupal.org/node/314178"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ],
    "require": {
        "composer/installers": "^1.9",
        "drupal/admin_toolbar": "3.4.2",
        "drupal/backup_migrate": "5.1",
        "drupal/color": "1.0.*",
        "drupal/colorbox": "2.0.2",
        "drupal/composer_deploy": "1.10",
        "drupal/core-composer-scaffold": "^11",
        "drupal/core-project-message": "^11",
        "drupal/core-recommended": "^11",
        "drupal/core-vendor-hardening": "^9.5",
        "drupal/d8w3css": "2.0",
        "drupal/metatag": "2.1",
        "drupal/schema_metatag": "3.0.1",
        "drupal/token": "1.14",
        "drupal/upgrade_status": "4.3",
        "drush/drush": "^13.3"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "config": {
        "allow-plugins": {
            "composer/installers": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-project-message": true,
            "drupal/core-vendor-hardening": true,
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "phpstan/extension-installer": true,
            "php-http/discovery": true,
            "tbachert/spi": true
        },
        "sort-packages": true
    },
    "extra": {
        "drupal-scaffold": {
            "locations": {
                "web-root": "./"
            }
        },
        "installer-paths": {
            "core": [
                "type:drupal-core"
            ],
            "libraries/{$name}": [
                "type:drupal-library"
            ],
            "modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "drush/Commands/contrib/{$name}": [
                "type:drupal-drush"
            ],
            "modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "profiles/custom/{$name}": [
                "type:drupal-custom-profile"
            ],
            "themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ]
        },
        "drupal-core-project-message": {
            "include-keys": [
                "homepage",
                "support"
            ],
            "post-create-project-cmd-message": [
                "<bg=blue;fg=white>                                                         </>",
                "<bg=blue;fg=white>  Congratulations, you’ve installed the Drupal codebase  </>",
                "<bg=blue;fg=white>  from the drupal/legacy-project template!               </>",
                "<bg=blue;fg=white>                                                         </>",
                "",
                "<bg=yellow;fg=black>Next steps</>:",
                "  * Install the site: https://www.drupal.org/docs/installing-drupal",
                "  * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
                "  * Get support: https://www.drupal.org/support",
                "  * Get involved with the Drupal community:",
                "      https://www.drupal.org/getting-involved",
                "  * Remove the plugin that prints this message:",
                "      composer remove drupal/core-project-message"
            ]
        }
    },
    "require-dev": {
        "drupal/core-dev": "10.4.1",
        "palantirnet/drupal-rector": "^0.20.3"
    }
}
🇺🇸United States holljac

I'm getting the same warning since updating to 10.3.2. I'm using php 8.3.6. My site is hosted on Bluehost. Is there any way to eliminate this warning?

PHP APCu cachingEnabled (32 MB)
Depending on your configuration, Drupal can run with a 32 MB APCu limit. However, a 32 MB APCu limit (the default) or above is recommended, especially if your site uses additional custom or contributed modules.

🇺🇸United States holljac

Installer path is listed as            

"modules/contrib/{$name}": [
                "type:drupal-module"
            ],

in both local and remote.

🇺🇸United States holljac

Could I just copy my local composer.json to the hosted one?

🇺🇸United States holljac

I found that for some reason I have 2 versions of simple_sitemap installed. One is under modules (version 4.1.7) and the other is under contrib/modules (version 4.1.8). According to my composer.json I have 4.1.8 installed. It turns out it is identical on my home version of the site. If I just delete the 4.1.7 folder that's in the modules folder, that's not being reference in the composer.json, my site breaks. If I put it back, all is well. So I uninstalled the module and then deleted the folder under modules. Site is not broken, fully functional. I then deleted  the folder under modules/contrib. No issues. Sweet. So I then us composer require 'drupal/simple_sitemap' and it gets installed, just one copy of 4.1.8, in modules/contrib. The site works perfect. So now I move on to the live site. I duplicated my efforts from home and have successfully updated simple_sitemap (one copy) without borking my site. Thank you all for the help.

🇺🇸United States holljac

When I am logged into my site and look at available updates, it lists all the modules in a row. The ones that need updating are highlighted with a different color. Underneath the module name and version it says recommended version. To the right of that it shows a link to 4.1.8 (2023-Dec-18). When you click on that it takes you to a page for simple sitemap with the install syntax.

🇺🇸United States holljac

 composer update drupal/simple_sitemap --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
90 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
phpstan/extension-installer: Extensions installed
Scaffolding files for drupal/core:
  - Copy [web-root]/.htaccess from assets/scaffold/files/htaccess

In Filesystem.php line 288:

  Could not delete /home3/bpbowsco/public_html/sites/default/default.services
  .yml:

update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...]

🇺🇸United States holljac

I'm including version because that is what is shown on the module and given to you to copy.

Should there be a second example that says "If you are updating use this: composer update drupal/simple_sitemap --with-all-dependencies"?

🇺🇸United States holljac

When I scroll back in my putty history, the last command was: composer update 'drupal/simple_sitemap:^4.1' --with-all-dependencies 

🇺🇸United States holljac

{
    "name": "drupal/legacy-project",
    "description": "Project template for Drupal 9 projects with composer following drupal/drupal layout",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": " https://www.drupal.org/project/drupal ",
    "support": {
        "docs": " https://www.drupal.org/docs/user_guide/en/index.html ",
        "chat": " https://www.drupal.org/node/314178 "
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ],
    "require": {
        "composer/installers": "^1.9",
        "drupal/admin_toolbar": "^3.4",
        "drupal/ckeditor": "^1.0.2",
        "drupal/color": "^1.0.3",
        "drupal/core-composer-scaffold": "^10.1.6",
        "drupal/core-project-message": "^10.1.6",
        "drupal/core-recommended": "^10.1.6",
        "drupal/core-vendor-hardening": "^9.5",
        "drupal/font_resize": "^9.0",
        "drupal/quickedit": "^1.0",
        "drupal/rdf": "^2.0",
        "drupal/seven": "^1.0",
        "drupal/simple_sitemap": "^4.1.8",
        "drush/drush": "*"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "config": {
        "allow-plugins": {
            "composer/installers": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-project-message": true,
            "drupal/core-vendor-hardening": true,
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "phpstan/extension-installer": true,
            "php-http/discovery": true
        },
        "sort-packages": true
    },
    "extra": {
        "drupal-scaffold": {
            "locations": {
                "web-root": "./"
            }
        },
        "installer-paths": {
            "core": [
                "type:drupal-core"
            ],
            "libraries/{$name}": [
                "type:drupal-library"
            ],
            "modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "drush/Commands/contrib/{$name}": [
                "type:drupal-drush"
            ],
            "modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "profiles/custom/{$name}": [
                "type:drupal-custom-profile"
            ],
            "themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ]
        },
        "drupal-core-project-message": {
            "include-keys": [
                "homepage",
                "support"
            ],
            "post-create-project-cmd-message": [
                "<bg=blue;fg=white>                                                         </>",
                "<bg=blue;fg=white>  Congratulations, you’ve installed the Drupal codebase  </>",
                "<bg=blue;fg=white>  from the drupal/legacy-project template!               </>",
                "<bg=blue;fg=white>                                                         </>",
                "",
                "<bg=yellow;fg=black>Next steps</>:",
                "  * Install the site: https://www.drupal.org/docs/installing-drupal ",
                "  * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html ",
                "  * Get support: https://www.drupal.org/support ",
                "  * Get involved with the Drupal community:",
                "       https://www.drupal.org/getting-involved ",
                "  * Remove the plugin that prints this message:",
                "      composer remove drupal/core-project-message"
            ]
        }
    },
    "require-dev": {
        "drupal/core-dev": "^10"
    }
}
 

🇺🇸United States holljac

First I ran composer update to make sure composer was up to date. Next I ran composer update 'drupal/simple_sitemap:^4.1'. Still says nothing to do. So I deleted the composer.lock file. Then reran composer update 'drupal/simple_sitemap:^4.1'. Didn't work.

🇺🇸United States holljac

I followed everything presented by that link. It still responds with nothing to be done. Simple XML Sitemap is still at 4.17 and the recommended version is 4.18. I then ran composer outdated "drupal/*". The reply was "Everything up to date". I also ran drush updatedb and drush cache:rebuild and finally drush config:export --diff. That created a hundred or more files that mean nothing to me. So, I'm still at the same problem of not being able to up the module.

🇺🇸United States holljac

That last link helped a lot. Thanks again, all is well in Montana now. 

🇺🇸United States holljac

I wish to report the live site is alive and well!

The only hitch I had was that drush was installed in vendor/bin so when I called drush updatedb it said drush: command not found. Hmmm. So I tried  composer require drush/drush to see if it had installed or not. I received the reply Nothing to install, update or remove. So now I knew it was here, somewhere. So I went to the drush.org website and gleaned it was in vender/bin. I change to that directory and ran drush updatedb. The reply was drush: command not found. Doing a ls confirmed it was there. Since I knew the server was running linux and that the file was executable, I ran ./drush updatedb. From there every worked perfect. What a relief. Thanks again

🇺🇸United States holljac

Which composer.json are you modifying? There are many of them on my system.

🇺🇸United States holljac

You were right. It's moved. Thanks again for the help. I usually update by using putty. Log into the site and run the composer commands that way. I know what Git is, but have not used it except in Linux once or twice to pull a project. That was a long time ago.

🇺🇸United States holljac

I'd be more than happy to move the post to the composer forum, but I don't know how. Copy the whole thread and put it in a new post on the new forum? I don't really think that is what you want me to do. How should I do it?

🇺🇸United States holljac

The first link you provided to recommended update method fixed my issue. What a f-ing relief. I thought I'd have to start over with copies of the downloaded website.

Here's what I did. Straight from the first link.

PS C:\wamp64\www\bear> composer update "drupal/core-*" drush/drush --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
90 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
phpstan/extension-installer: Extensions installed
Cleaning installed packages.
No security vulnerability advisories found
PS C:\wamp64\www\bear> drush updatedb
 ------------ ---------------------------------- --------------- ------------------------------------------------------
  Module       Update ID                          Type            Description
 ------------ ---------------------------------- --------------- ------------------------------------------------------
  system       10101                              hook_update_n   10101 - Change the {batch} table [bid] field to
                                                                  serial.
  system       10201                              hook_update_n   10201 - Clear left over entries in the revision data
                                                                  table.
  help         10200                              hook_update_n   10200 - Install search index table for help topics.
  big_pipe     html5_placeholders                 post-update     Clear the render cache.
  ckeditor5    list_multiblock                    post-update     Updates Text Editors using CKEditor 5.
  ckeditor5    list_start_reversed                post-update     Updates Text Editors using CKEditor 5 to native List
                                                                  "start" functionality.
  file         add_default_filename_sanitizatio   post-update     Add default filename sanitization configuration.
               n_configuration
  filter       sort_filters                       post-update     Sorts filter format filter configuration.
  help         add_permissions_to_roles           post-update     Grant all admin roles the 'access help pages'
                                                                  permission.
  help         help_topics_search                 post-update     Install or update config for help topics if the
                                                                  search module installed.
  help         help_topics_uninstall              post-update     Uninstall the help_topics module if installed.
  media        set_blank_iframe_domain_to_null    post-update     Updates media.settings:iframe_domain config if it's
                                                                  still at the default.
  path_alias   drop_path_alias_status_index       post-update     Remove the path_alias__status index.
  system       add_description_to_entity_form_m   post-update     Update description for form modes.
               ode
  system       add_description_to_entity_view_m   post-update     Update description for view modes.
               ode
  system       mailer_dsn_settings                post-update     Add new default mail transport dsn.
  system       mailer_structured_dsn_settings     post-update     Add new default mail transport dsn.
  system       remove_asset_entries               post-update     Remove redundant asset state and config.
  system       remove_asset_query_string          post-update     Remove redundant asset query string state.
  system       set_blank_log_url_to_null          post-update     Updates system.theme.global:logo.url config if it's
                                                                  still at the default.
  update       set_blank_fetch_url_to_null        post-update     Updates update.settings:fetch.url config if it's
                                                                  still at the default.
  views        add_missing_labels                 post-update     Add labels to views which don't have one.
  views        remove_default_argument_skip_url   post-update     Remove default_argument_skip_url setting.
  views        remove_skip_cache_setting          post-update     Remove the skip_cache settings.
  views        taxonomy_filter_user_context       post-update     Removes User context from views with taxonomy
                                                                  filters.
 ------------ ---------------------------------- --------------- ------------------------------------------------------

 Do you wish to run the specified pending updates? (yes/no) [yes]:
 >

>  [notice] Update started: system_update_10101
>  [notice] Update completed: system_update_10101
>  [notice] Update started: system_update_10201
>  [notice] Update completed: system_update_10201
>  [notice] Update started: help_update_10200
>  [notice] Update completed: help_update_10200
>  [notice] Update started: big_pipe_post_update_html5_placeholders
>  [notice] Update completed: big_pipe_post_update_html5_placeholders
>  [notice] Update started: ckeditor5_post_update_list_multiblock
>  [notice] Update completed: ckeditor5_post_update_list_multiblock
>  [notice] Update started: ckeditor5_post_update_list_start_reversed
>  [notice] Update completed: ckeditor5_post_update_list_start_reversed
>  [notice] Update started: file_post_update_add_default_filename_sanitization_configuration
>  [notice] Update completed: file_post_update_add_default_filename_sanitization_configuration
>  [notice] Update started: filter_post_update_sort_filters
>  [notice] Update completed: filter_post_update_sort_filters
>  [notice] Update started: help_post_update_add_permissions_to_roles
>  [notice] Update completed: help_post_update_add_permissions_to_roles
>  [notice] Update started: help_post_update_help_topics_search
>  [notice] Update completed: help_post_update_help_topics_search
>  [notice] Update started: help_post_update_help_topics_uninstall
>  [notice] Update completed: help_post_update_help_topics_uninstall
>  [notice] Update started: media_post_update_set_blank_iframe_domain_to_null
>  [notice] Update completed: media_post_update_set_blank_iframe_domain_to_null
>  [notice] Update started: path_alias_post_update_drop_path_alias_status_index
>  [notice] Update completed: path_alias_post_update_drop_path_alias_status_index
>  [notice] Update started: system_post_update_add_description_to_entity_form_mode
>  [notice] Update completed: system_post_update_add_description_to_entity_form_mode
>  [notice] Update started: system_post_update_add_description_to_entity_view_mode
>  [notice] Update completed: system_post_update_add_description_to_entity_view_mode
>  [notice] Update started: system_post_update_mailer_dsn_settings
>  [notice] Update completed: system_post_update_mailer_dsn_settings
>  [notice] Update started: system_post_update_mailer_structured_dsn_settings
>  [notice] Update completed: system_post_update_mailer_structured_dsn_settings
>  [notice] Update started: system_post_update_remove_asset_entries
>  [notice] Update completed: system_post_update_remove_asset_entries
>  [notice] Update started: system_post_update_remove_asset_query_string
>  [notice] Update completed: system_post_update_remove_asset_query_string
>  [notice] Update started: system_post_update_set_blank_log_url_to_null
>  [notice] Update completed: system_post_update_set_blank_log_url_to_null
>  [notice] Update started: update_post_update_set_blank_fetch_url_to_null
>  [notice] Update completed: update_post_update_set_blank_fetch_url_to_null
>  [notice] Update started: views_post_update_add_missing_labels
>  [notice] Update completed: views_post_update_add_missing_labels
>  [notice] Update started: views_post_update_remove_default_argument_skip_url
>  [notice] Update completed: views_post_update_remove_default_argument_skip_url
>  [notice] Batch process has consumed in excess of 60% of available memory. Starting new thread
>  [notice] Update started: views_post_update_remove_skip_cache_setting
>  [notice] Update completed: views_post_update_remove_skip_cache_setting
>  [notice] Update started: views_post_update_taxonomy_filter_user_context
>  [notice] Update completed: views_post_update_taxonomy_filter_user_context
 [success] Finished performing updates.
PS C:\wamp64\www\bear> drush cache:rebuild
 [success] Cache rebuild complete.
 

I can't begin to express my gratitude. Wow.

Production build 0.71.5 2024