# Custom siteInfoMoreMenu stopped working after new update

**URL:** <https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914>\
**Category:** Local Add-ons\
**Created:** [March 15, 2024, 8:20pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914 "2024-03-15T20:20:45Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzoniis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dzoniis/32/21244_2.png) [@dzoniis](https://community.localwp.com/u/dzoniis)\
**Post date:** [March 15, 2024, 8:20pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/1 "2024-03-15T20:20:45Z")

</div>

In the latest version of Local (Version 8.3.1+6650) custom more menu item is not rendering or doing anything.

I have tried downgrading, works. Documentation has no changes ?

It has been working so far thru out all the updates

You can try it out with simple:

```auto
// Add a new route
	hooks.addContent('routes[site-info]', () => {
		return (
			<Route
				key="myRoute"
				path="/main/site-info/:siteID/myRoute"
				render={(props) => <div>My Route</div>}
			/>
		);
	});

// Add a new menu item that navigates to the new route
	hooks.addFilter('siteInfoMoreMenu', function (menu, site) {
		menu.push({
			label: 'Go to My Route',
			enabled: true,
			click: () => {
				context.events.send('goToRoute', `/main/site-info/${site.id}/myRoute`);
			},
		});

		return menu;
	});

```

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [March 16, 2024, 1:14pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/2 "2024-03-16T13:14:22Z")

</div>

Hi @dzoniis

Does it work again if you downgrade your Local version?

> **[Downgrade Local Version](https://localwp.com/help-docs/troubleshooting/downgrade-local-version/)**
>
> Downgrading Local may be used to troubleshoot issues presented with a newer version or other various reasons. We recommend running Local on the latest version available when possible.

---

<div class="post-metadata">

**Author:** ![dzoniis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dzoniis/32/21244_2.png) [@dzoniis](https://community.localwp.com/u/dzoniis)\
**Post date:** [March 16, 2024, 1:26pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/3 "2024-03-16T13:26:22Z")

</div>

Did you even read the whole question?

_ **I have tried downgrading, works. Documentation has no changes ?** _

---

<div class="post-metadata">

**Author:** ![dzoniis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dzoniis/32/21244_2.png) [@dzoniis](https://community.localwp.com/u/dzoniis)\
**Post date:** [March 16, 2024, 1:36pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/4 "2024-03-16T13:36:59Z")

</div>

It did work with previous version if local, downgrading works again

I have multiple sites on local, on none does it work  
Every site is on: nginx, php@7.4/8.1, mysql both versions, tho tried with every possible viable combination, still not working

Tried boilerplater addon, MoreMenu doesn’t work at all, tools does

Nothing else changed exept for the local version, env etc is the same as it was

@Nick-B

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [March 16, 2024, 1:45pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/5 "2024-03-16T13:45:57Z")

</div>

Apologies for missing your troubleshooting notes there @dzoniis!

I’ll attempt to replicate and share this with the team. I’ve seen one other user who has run into this on the latest version as well.

---

<div class="post-metadata">

**Author:** ![dzoniis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dzoniis/32/21244_2.png) [@dzoniis](https://community.localwp.com/u/dzoniis)\
**Post date:** [March 16, 2024, 1:46pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/6 "2024-03-16T13:46:43Z")

</div>

Grazie, also is there a way to get proper up to date documentation for addon creation? @Nick-B

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [March 16, 2024, 3:08pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/7 "2024-03-16T15:08:36Z")

</div>

We don’t have anything available other than what you currently see. I know it’s not up to date but the team has been having conversations lately around our approach to add ons so that’s something that is still in flux. More to come there!

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [March 19, 2024, 7:56pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/9 "2024-03-19T19:56:46Z")

</div>

Hey @dzoniis Thanks for letting us know about this regression and sorry about the out-of-date documentation for Addons.

Can you give us a little more info about the error you are seeing as well as what version of Local you downgraded to?

I’ll be honest in saying that it’s been a while since I’ve created a new addon from scratch and when I use the code you provide within a newly created addon using `npx create-local-addon` it doesn’t work. That being said, that same addon/code combination doesn’t work for any version of Local that I’ve tried going back to 7.2.

My gut tells me that there’s likely some breaking and/or deprecated package dependencies out there causing issues, especially as they relate to Typescript and React versions.

If you have the Addon that you’re using available, I’d love to take a peek and see if there is anything that stands out to me.

---

<div class="post-metadata">

**Author:** ![kimmenbert](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kimmenbert/32/8842_2.png) [@kimmenbert](https://community.localwp.com/u/kimmenbert)\
**Post date:** [March 5, 2024, 8:31pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/10 "2024-03-05T20:31:13Z")

</div>

In the latest version of Local (Version 8.3.1+6650) my custom addon menu item no longer works. What changes have been done here?

In multiple years it has been working fine with this:

```auto
hooks.addFilter('siteInfoMoreMenu', (menu, site) => {
	menu.push(
		{
			label: 'Some label',
			enabled: true,
			click: () => {
				context.events.send(
					'goToRoute',
					`/main/site-info/${site.id}/some-slug`,
				);
			},
		},
	);

	return menu;
});

```

---

<div class="post-metadata">

**Author:** ![kimmenbert](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kimmenbert/32/8842_2.png) [@kimmenbert](https://community.localwp.com/u/kimmenbert)\
**Post date:** [March 7, 2024, 11:47am UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/11 "2024-03-07T11:47:56Z")

</div>

Have not tried downgrading yet, but to replicate, I think you can do:

```auto
export default function (context) {
	const { React, hooks } = context;
	const { Route } = context.ReactRouter;

	hooks.addContent('routes[site-info]', () => {
		return (
			<Route
				key="some-slug"
				path="/main/site-info/:siteID/some-slug"
				render={(props) => <h1>Simplest component</h1>}
				notifier={context.notifier}
			/>
		);
	});

	/**
	 * Adding new menu item for this plugin
	 */
	hooks.addFilter('siteInfoMoreMenu', (menu, site) => {
		menu.push(
			{
				label: 'Some label',
				enabled: true,
				click: () => {
					context.events.send(
						'goToRoute',
						`/main/site-info/${site.id}/some-slug`,
					);
				},
			},
		);

		return menu;
	});
}

```

In renderer.tsx

---

<div class="post-metadata">

**Author:** ![dzoniis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dzoniis/32/21244_2.png) [@dzoniis](https://community.localwp.com/u/dzoniis)\
**Post date:** [March 19, 2024, 8:12pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/12 "2024-03-19T20:12:33Z")

</div>

Hello @ben.turner,  
I am currently using “Version 8.2.1+6583”, and it’s working fine as it should  
Tho there is no error in the console or anywhere.  
Just use simple renderer.tsx

```auto
export default function (context) {
	const { React, hooks } = context;
	const { Route } = context.ReactRouter;

	hooks.addContent('routes[site-info]', () => {
		return (
			<Route
				key="some-slug"
				path="/main/site-info/:siteID/some-slug"
				render={(props) => <h1>Simplest component</h1>}
				notifier={context.notifier}
			/>
		);
	});

	/**
	 * Adding new menu item for this plugin
	 */
	hooks.addFilter('siteInfoMoreMenu', (menu, site) => {
		menu.push(
			{
				label: 'Some label',
				enabled: true,
				click: () => {
					context.events.send(
						'goToRoute',
						`/main/site-info/${site.id}/some-slug`,
					);
				},
			},
		);

		return menu;
	});
}

```

That would suffice to verify if the filter for siteInfoMoreMenu is working or not.  
On the latest version it’s defaulting back to Overview tab, tho the click event is triggered but i get no rendered content of the tab itself.  
You could use boilerplate coming from the npx, just add this into renderer and it should work on previously mentioned downgraded version

i could provide you with zipped version of the basic addon using this code which is working as it should if that’s okay?

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [March 19, 2024, 8:14pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/13 "2024-03-19T20:14:11Z")

</div>

Thank you @dzoniis for the follow-up! @kimmenbert I merged the highlights from your thread into here as well since you were running into the same issue. Could you check out Ben’s comment above and provide any further context that might be helpful?

> [@Custom siteInfoMoreMenu stopped working after new update](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/9):
>
> Hey @dzoniis Thanks for letting us know about this regression and sorry about the out-of-date documentation for Addons. Can you give us a little more info about the error you are seeing as well as what version of Local you downgraded to? I’ll be honest in saying that it’s been a while since I’ve created a new addon from scratch and when I use the code you provide within a newly created addon using npx create-local-addon it doesn’t work. That being said, that same addon/code combination doesn’t…

---

<div class="post-metadata">

**Author:** ![dzoniis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dzoniis/32/21244_2.png) [@dzoniis](https://community.localwp.com/u/dzoniis)\
**Post date:** [March 21, 2024, 7:57pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/14 "2024-03-21T19:57:49Z")

</div>

@ben.turner Any luck on figuring what’s going on ?

---

<div class="post-metadata">

**Author:** ![nickc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nickc/32/21209_2.png) [@nickc](https://community.localwp.com/u/nickc)\
**Post date:** [March 25, 2024, 7:25am UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/15 "2024-03-25T07:25:07Z")

</div>

@dzoniis I don’t have a timeline yet, but a fix for this should appear in the next beta and main releases (might not be the upcoming 9.0.0, but likely the one after that). Thanks for your patience.

---

<div class="post-metadata">

**Author:** ![dzoniis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/dzoniis/32/21244_2.png) [@dzoniis](https://community.localwp.com/u/dzoniis)\
**Post date:** [March 26, 2024, 6:37pm UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/16 "2024-03-26T18:37:10Z")

</div>

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [March 28, 2024, 6:37am UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/17 "2024-03-28T06:37:45Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![nickc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nickc/32/21209_2.png) [@nickc](https://community.localwp.com/u/nickc)\
**Post date:** [April 8, 2024, 8:33am UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/20 "2024-04-08T08:33:50Z")

</div>



---

<div class="post-metadata">

**Author:** ![nickc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nickc/32/21209_2.png) [@nickc](https://community.localwp.com/u/nickc)\
**Post date:** [April 8, 2024, 8:34am UTC](https://community.localwp.com/t/custom-siteinfomoremenu-stopped-working-after-new-update/41914/21 "2024-04-08T08:34:39Z")

</div>

A fix for this is expected in Local 9.0.1, currently available in beta.

We normally roll beta releases into production within a week or so.

> [@Local Beta 9.0.1](https://community.localwp.com/t/local-beta-9-0-1/42273):
>
> [Download Local 9.0.1 (Beta) for Intel MacOS](https://cdn.localwp.com/releases-beta/9.0.1+local-beta-6672/local-beta-9.0.1-b6672-mac.dmg) SHA1: a2cfbfae6e30a7a4492e70c8828a6722bf017d06 [Download Local 9.0.1 (Beta) for Apple Silicon MacOS](https://cdn.localwp.com/releases-beta/9.0.1+local-beta-6672/local-beta-9.0.1-b6672-mac-arm64.dmg) SHA1: de1d331dc4a436f8b478d8e5817a0f917ccc74b3 [Download Local 9.0.1 (Beta) for Windows](https://cdn.localwp.com/releases-beta/9.0.1+local-beta-6672/local-beta-9.0.1-b6672-windows.exe) SHA1: 9027459074bb43c993138524c79f6a4a3cd18a16 [Download Local 9.0.1 (Beta) as Linux deb (Ubuntu, Debian, Mint)](https://cdn.localwp.com/releases-beta/9.0.1+local-beta-6672/local-beta-9.0.1-b6672-linux.deb) SHA1: cc1804f7bf51fa3d6ef938792643fb956d83cf30 [Download Local 9.0.1 (Beta) as Linux rpm (Fedora, Red Hat Linux, CentOS)](https://cdn.localwp.com/releases-beta/9.0.1+local-beta-6672/local-beta-9.0.1-b6672-linux.rpm) SHA1: f4da59c8e81b836e55f…
