<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jerome Esperanza on Medium]]></title>
        <description><![CDATA[Stories by Jerome Esperanza on Medium]]></description>
        <link>https://medium.com/@jaesperanza?source=rss-bd7f235278bb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*6C3XuxwYB0dJ_cfo</url>
            <title>Stories by Jerome Esperanza on Medium</title>
            <link>https://medium.com/@jaesperanza?source=rss-bd7f235278bb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:41:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jaesperanza/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Dealing with Drupal 9 errors: Symfony\ Component\ DependencyInjection\ Exception\ Service Not Found…]]></title>
            <link>https://medium.com/@jaesperanza/dealing-with-drupal-9-errors-b6d7db1b568a?source=rss-bd7f235278bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6d7db1b568a</guid>
            <category><![CDATA[drupal-development]]></category>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[error-handling]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[drupal-9]]></category>
            <dc:creator><![CDATA[Jerome Esperanza]]></dc:creator>
            <pubDate>Thu, 22 Sep 2022 11:19:36 GMT</pubDate>
            <atom:updated>2024-06-12T06:33:58.002Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dealing with Drupal 9 errors: Symfony\ Component\ DependencyInjection\ Exception\ Service Not Found Exception: The service “pathauto.generator” has a dependent service “token.entity_mapper</h3><p>A couple of times with websites running on Drupal Version 9.x when I got stuck with below and similar errors:</p><p><strong>Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service “pathauto.generator” has a dependen<br>service “token.entity_mapper”… in /vendor/symfony/dependency-injection/Compiler/</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*tq2YeySOG1aKTglxdtP7wg.jpeg" /></figure><p>All was running well, until I installed a contributed module Taxonomy Views Integrator (TVI) using composer require, ran <strong>drush updb</strong>, and <strong>drush cache:rebuild</strong>, when boom! The error…</p><p><strong>Here some quick fixes:</strong></p><ol><li><strong>Update Drupal core to the latest</strong>, if not done yet (make sure you have a good backup of both the website files and database which you can restore if anything goes wrong).<br>composer update &quot;drupal/*&quot; --with-all-dependencies<br>drush updatedb<br>drush cache:rebuild</li><li><strong>Check your PHP versions</strong> if inadvertently or previously set lower than PHP version 8.0<br>I had one in instance where my PHP version had been unintentionally set to 7.x. Changing PHP version to 8.x made the error go away.</li><li><strong>Update your contributed modules</strong> to the latest versions; if necessary, to the dev versions of modules that may be causing the error.<br>In another case which I experienced, since the error seems to point to instances within pathauto and token modules, I had to re-install both by running composer require commands for the stable versions as recommended by the project module pages.<br>In my case:<br>composer require ‘drupal/pathauto:^1.11’<br>composer require ‘drupal/token:^1.11’<br>drush updb<br>drush cache:rebuild</li></ol><p><strong>Side notes</strong>:</p><p>While updating contributed modules using composer, another error may appear which seems to prevent the re-installation of the modules:</p><p><strong>Installation failed, reverting ./composer.json and ./composer.lock to their original content.<br>Could not delete …/sites/default/default.settings.php:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*LV9UngXx-0oJNvN386Ysdw.jpeg" /></figure><p>To fix the above, run below Linux command (this will temporarily allow the necessary permissions for the D9 modules installation):<br><strong>chmod u+w sites/default</strong></p><p>Then proceed with the re-installation of the modules.</p><p>This article and similar troubleshooting articles are also found in <a href="https://knowledgebase.ibuild.ph/"><strong>iBuild.PH Knowledgebase for Drupal</strong></a> and other CMS <a href="https://knowledgebase.ibuild.ph/">https://knowledgebase.ibuild.ph/</a>.</p><p>For full <a href="https://www.ibuild.ph/services/web-design-development/drupal"><strong>Drupal support and managed services</strong></a> in web design and development, you may also reach out to us through our Drupal web development services page at <a href="https://www.ibuild.ph/drupal">www.ibuild.ph/drupal</a>.</p><p>I hope this helps!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6d7db1b568a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>