Menu does not display after copying to new server

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Menu does not display after copying to new server

Post by janvl »

Hi,

This is the way it should look
https://kinderzentrum.cms-ms.eu/index.php

The menu is not opened after copying CSS and Templates

https://kinderzentrum-ludwigshafen.de/c ... startseite
{Navigator loadprops=1 template="W3vmenu" collapse=0 start_level="2"}
Now i gave start_level=1 otherwise there is no visible menu. With start_level=2 there is no output of htmlcode for the menu.

Does anyone have an idea where i should look, when just "handmade" the menu like in the example i have here
http://w3webseiten.eu/index.html

I would be grateful for any hint.

Regards,
Jan
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Menu does not display after copying to new server

Post by DIGI3 »

It does looks to be something to do with start_level, so I think the troubleshooting should begin with why start_level=2 doesn't output any pages. If you use one of the default navigator templates does it output the correct pages? What about removing collapse, and/or changing the order of the parameters?

It could be something as simple as a typo in the template, or as complex as a corrupted page structure. Without digging in it's going to be hard to diagnose.
Not getting the answer you need? CMSMS support options
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: Menu does not display after copying to new server

Post by janvl »

Thanks DIGI3

i copied all the templates and CSS, more then once so i hope it is no typo.

I will try with default menu-templates to see what they do, and experiment with collapse.

The problem is that the working version is on my own server where i do the systemmanagement myself.
The customer has it's own server and a (former) serviceguy that build in several "security-features" blocking the
site for several visitors.
I can make a template to see if there is a corrupted pagestructure, listing the node-id's in a kind of sitemap,
i used that when i made this template.

It will be a "working evening" again ;-)

Regards,
Jan
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: Menu does not display after copying to new server

Post by janvl »

Hi,

I have used minimal_menu as template.

As soon as i give start_level="2" then i do not get a menu.

So it is not my template.

I ran the menu with
{$node->menutext} - {$node->id} - {$node->depth}
and there is no obvious reason why it should not work, because all with depth = 2 are the ones i should see.
You can see for your self here https://kinderzentrum-ludwigshafen.de/c ... startseite

I will ask a copy of the database to see if i can find the problem there.

Regards,
Jan
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: Menu does not display after copying to new server

Post by janvl »

Hi

I found the cause.

In the install with the problem the first page has number 2 and the menudepth is also 1 higher.
This way the css for the node->depth is wrong.

I used a copy of the database from a few month ago and i wonder how this can be achieved, in all those years with
CMSMS i have never seen something like this.

Is there a way to correct the problem?
I saw the field hierarchy in content in the database. If there is no crossreference then would it be possible to change that straight in the database?

Regards,
Jan
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Menu does not display after copying to new server

Post by DIGI3 »

You can try to update page hierarchy and routes in System Maintenance, as well as doing a Reorder Content (then drag one page to a new position, move it back later) then finally set a new Default Page, then set it back again. If those steps don't resolve it then yes you might need to do some work in the database, then possibly repeat the steps. That's a bit beyond me though so I don't know how straight forward it will be.
Not getting the answer you need? CMSMS support options
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: Menu does not display after copying to new server

Post by janvl »

Hi,

i already had updated page hierarchy and routes in System Maintenance., with no result.

"Reorder Content" is sonmething i can only do on a new copy of the website, i do not tamper with the production-install
that is still working with the old design.

I had a look at some other installs and the first page is always number 1.
How one gets away the page with number 1 is something i do not really understand, i did test what is happening when i remove the page with number 1 in a new install, that is blocked, you cannot delete it.

I will have to wait for a copy of the database.

Thanks so far, i will inform how i solve this.

Regards,
Jan
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Menu does not display after copying to new server

Post by velden »

"number 1" means "level 1" in your case?
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: Menu does not display after copying to new server

Post by janvl »

Hi Velden,

This is the pagenumber, not the node-id.

I have tested on a new install 2.2.16 and when you you want to delete page "home" you get an error.
None of the CMSMS-installs i service has pagenumber 1 deleted.

The template that i build for the menu depends on a structure where the menu starts with 1.
With DIGI3 i already figured out that the tag to build the menu did not work with startlevel=2.

The template produces the wrong code for the menu when the pagestructure does not start with 1.

Regards,
Jan
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Menu does not display after copying to new server

Post by velden »

Sorry for asking details but I don't recognize the term 'pagenumber'.
I'd like to be sure we're talking about the exact same thing, also for being able to investigate.

So what exactly is not number 1 in this case.
cmsms_img01.png
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: Menu does not display after copying to new server

Post by janvl »

Hi

it is the number before Home, on the left.

I transferred all css and templates to an install from which i had a copy that is a couple of month's old.
Then it did not work out to build the menu.

With the help of DIGI3 i found that the pages in the install, that is now working at the customer, start with 2 and
that the generarted code from the (new) menutemplate uses the wrong level.

I am awaiting a copy of the DB to see what is in there and how i could regain a stable pagestructure.

Regards,
Jan
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Menu does not display after copying to new server

Post by DIGI3 »

Is your home page set to default?
Not getting the answer you need? CMSMS support options
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: Menu does not display after copying to new server

Post by janvl »

Hi,

Pagenumber 2 "Startseite" is now the Standard page.

On the version i had to make the new design it is also "Startseite" but with pagenumber 1.

That is not the cause as far as i can see.

Regards,
Jan
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Menu does not display after copying to new server

Post by DIGI3 »

I think you'll find that reordering the pages (using the drag and drop) might fix this.
Not getting the answer you need? CMSMS support options
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: Menu does not display after copying to new server

Post by janvl »

Hi
DIGI3
that is what i plan to do on a copy - i have received the DB.

Regards,
Jan
Post Reply

Return to “Layout and Design (CSS & HTML)”