Menus

If you aren't speaking german, you can ask for support or post your request here.
Antworten
spadco
Beiträge: 13
Registriert: 3. Jun 2024, 07:29

Menus

Beitrag von spadco »

Menus move up/down is broken - displays popup text box with some page's code with

<title>mysitename - note</title>
Screen Shot 2024-06-05 at 8.40.10 am.png
Screen Shot 2024-06-05 at 8.40.10 am.png (48.65 KiB) 14677 mal betrachtet
spadco
Beiträge: 13
Registriert: 3. Jun 2024, 07:29

Re: Menus

Beitrag von spadco »

error log:

Fatal error: Uncaught TypeError: MainMenu::getAllMenuItems(): Return value must be of type array, null returned

~/adm_program/system/classes/MainMenu.php:86

Is that due to trying to change the menu order?
Benutzeravatar
fasse
Administrator
Beiträge: 6170
Registriert: 12. Nov 2005, 16:06

Re: Menus

Beitrag von fasse »

I think you missed the update of the theme.
spadco
Beiträge: 13
Registriert: 3. Jun 2024, 07:29

Re: Menus

Beitrag von spadco »

No. I replaced adm_themes folder along with adm_program and adm_plugins and the file index.php
Benutzeravatar
fasse
Administrator
Beiträge: 6170
Registriert: 12. Nov 2005, 16:06

Re: Menus

Beitrag von fasse »

Strange, because the error points to a function of the theme of 4.2.

Could you please delete the folder adm_my_files/Template and retry.
spadco
Beiträge: 13
Registriert: 3. Jun 2024, 07:29

Re: Menus

Beitrag von spadco »

That's fixed it! Thanks.

I'm enjoying this app. It has saved me a lot of time and given the organisation a very useful tool.

It'd be handy if there was a list that permitted check box changes rather than select/edit/.
Benutzeravatar
fasse
Administrator
Beiträge: 6170
Registriert: 12. Nov 2005, 16:06

Re: Menus

Beitrag von fasse »

Thats also strange. Within the update script we delete that folder. But this was not happen in your case.

Did the update script run successfully? Were all update steps done? preferences -> admidio -> update step
spadco
Beiträge: 13
Registriert: 3. Jun 2024, 07:29

Re: Menus

Beitrag von spadco »

Preferences - Admidio update:

Admidio version
4.3.8 Check for update
Last step of update
1150 / 1150

The error has recurred!

adm_my_file/templates is not present.
spadco
Beiträge: 13
Registriert: 3. Jun 2024, 07:29

Re: Menus

Beitrag von spadco »

I removed adm_my_file/templates

When I logged out and it came back.
I closed the window.

I removed adm_my_file/templates again.

As soon as I just visit the site, even without signing in, adm_my_file/templates is restored!

It contains a 'compile' folder with 12 php files with names like
e5c9fae1ca49b5256d51131ac529a192932e2ebc_0.file.js_css_files.tpl.php

Visiting https://members.spadco.community/manage ... update.php shows

Update to version 4.3.8
Note
Admidio’s database is up to date.
It is not necessary to update the database.
spadco
Beiträge: 13
Registriert: 3. Jun 2024, 07:29

Re: Menus

Beitrag von spadco »

Menu move up/down has come good!
Benutzeravatar
fasse
Administrator
Beiträge: 6170
Registriert: 12. Nov 2005, 16:06

Re: Menus

Beitrag von fasse »

Ok, could you then please describe whats not doing will in your environment?
spadco
Beiträge: 13
Registriert: 3. Jun 2024, 07:29

Re: Menus

Beitrag von spadco »

I don't know why the menu error arose after updating to 4.3.8
It was resolved briefly when I followed your advice to delete ~/adm_my_files/templates but the error recurred next day. I deleted ~/adm_my_files/templates several times but it reappeared as soon as the site was visited, even without logging in!
I removed ~/adm_program/installation because other scripts I've installed always did that and ~/adm_my_files/templates was always recreated with a 'compile' folder which suggested an artefact of installation.
Doing that doesn't seem to have made a difference. The ~/adm_my_files/templates/compile now has 26 .tpl.php files
deleted ~/adm_my_files/templates also has an HTML directory with one .ser file

The menu error stopped occurring after a day of no activity. Again, I don't know why.

Now everything seems stable and is working as it should at https://members.spadco.community/manager/

I'm very pleased with it and I will persist with engaging the client's managers.

Their request was for mailing lists. I started with mailman but admidio gives that and more.
Benutzeravatar
fasse
Administrator
Beiträge: 6170
Registriert: 12. Nov 2005, 16:06

Re: Menus

Beitrag von fasse »

The template folder in adm_my_files must be there. As you have seen it will automatically be created. The problem was, that after your update the template folder has the templates of your last version 4.2 and not the new version 4.3 . Therefore the folder must be deleted after update once. This will normally done within the update script. But for some reason that doesn't happen in your environment.

So now all works fine. Thats good.
Antworten