Collapsible Forum Categories

Updating to v2.0.0 seems to require ACP->Purge cache - Collapsible Forum Categories

Updating to v2.0.0 seems to require ACP->Purge cache

by P_I » Thu Oct 03, 2019 3:28 pm

Per the Contribution Details page, under Installation: https://www.phpbb.com/extensions/installing/ I followed the steps to update the extension.
Updating an Extension
Updating an extension is a simple process that can be completed in a few simple steps with minimal disruption to your board. The following steps assume you have already downloaded and un-zipped a new version of an existing extension running on your board.

1. Disable
Disabling an extension will effectively turn it off, removing it from your board. If the extension is critical to your board's functionality, it would be safest to disable your board before performing this update process.

2. Delete extension files
Using your FTP program delete the extension's files from the filesystem. In most cases you can simply delete the extension's entire directory, which will remove all of its files from your filesystem.

3. Upload new extension files
Using your FTP program upload the new extension files (or the entire extension directory) to the correct location.

4. Enable
Once the extension has been uploaded, navigate in the board's ACP to Customise -> Manage extensions. You should see your recently uploaded extension listed under "Disabled Extensions". Simply click its "Enable" button and the update is complete!
This method has always served me well in the past, but not this time.

My board wasn't functional at this point, generating HTTP 500 errors. Examining the error_log I found

Code: Select all

PHP Fatal error:  Uncaught Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate
 a URL for the named route "phpbb_collapsiblecategories_main_controller" as such route does not exist. in [docroot]/forum/cache/production/url_generator.php:42
 Stack trace:
#0 [docroot]/forum/phpbb/routing/router.php(168): phpbb_url_generator->generate('phpbb_collapsib...', Array, 1)
#1 [docroot]/forum/phpbb/routing/helper.php(148): phpbb\routing\router->generate('phpbb_collapsib...', Array, 1)
#2 [docroot]/forum/phpbb/controller/helper.php(114): phpbb\routing\helper->route('phpbb_collapsib...', Array, true
                , false, 1)
#3 [docroot]/forum/ext/phpbb/collapsiblecategories/operator/operator.php(80): phpbb\controller\helper->route('phpb
                b_collapsib...', Array)
#4 [docroot]/forum/ext/phpbb/collapsiblecategories/event/listener.php(86): phpbb\collapsiblecategories\operator\operator->get_collapsible_link('fid_22')
#5 [docroot] in [docroot]/forum/cache/production/url_generator.php on line 42
I resolved the problem via ACP->Purge cache.

Is the requirement to Purge cache missing from the Extension update page or is this a specific problem to updating this extension from v1.0.x to v2.0.0?
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
P_I
Registered User
Posts: 957
Joined: Tue Mar 01, 2011 8:35 pm
Location: Calgary
Contact: