Include path problem

#1

Help. I’m not sure what happened but my navbar now disappears on my main page

Add a hyperlink to an image
#2

Can you provide a link to the page giving you problems? Or is it just going away in Design View? I find sometimes when I make changes I have to either fresh the view or in some cases close and open the file again.

#3

https://www.pasprintseries.com/

#4

Looking at your source code there is no Navbar on the page. Are you sure you didn’t inadvertently delete it in your design view. Does it show up in your Design View?

#5

shows up in design view. when I hit save it disappears

#6

Then when you re-open the file it is back? This is indeed a strange behaviour. Is your Navbar selected when you save?

#7

image

here it is, I clicked off of it on the menu and it still disappears. Its a php include on line 42

#8

crap, this is happening on any page i save rendering my site useless with no nav

#9

I have a feeling it has to do with the include file. Have you made any changes to it? The include file itself seems to be the common denominator. Just out of curiosity can you create another include file with just some simple text or something on it and place it in the same place as your navbar include?

#10

I did change some stuff but I restored the old include to keep my site running

the other page that lost the menu after save gives this error

SyntaxError: JSON.parse: unexpected character at line 2 column 1 of the JSON data

#11

Ok, I think I know what the problem is. It may be related to the new auto linking in this version. Did you update Wappler today?

Looks like you have some links that are relative and some are site root.

#12

yes i updated

it used to be I had to ad …/ etc

#13

I have a suspicion that is where your problem is. Did you add the …/ to your include file?

#14

within the file itself?

#15

i think i added it in each page depending on the depth of the page in file structure
withing the file itself there is a link that has …/

#16

Try going into your site preferences and change the Links Relative to setting to the opposite of what you have.

I have a feeing that if you look at the code on your index page and a page that is working, your . actual include line will be different.

#17

Or remove the include altogether and re-add it that should work as well.

#18

why is the code view showing up grey?

I’ve tried replacing it already

#19

Hmmm, not sure why it would be greyed out. If you open a page that works (don’t save it) is it greyed out on those too? Is it the same code?

#20

Ok, I logged onto my home pc and restored both files then pushed them up with my un updated version of wappler in case it was the update. I have to leave but something seems screwy