Jump to content
TNG Community
marcirish

TNG 13 Upgrade -- Lost Drop Down Menus

Recommended Posts

marcirish

I just upgraded to TNG 13 and everything seemed to go smoothly.  However, when I accessed my website: https://marcirish.us  the drop down menus no longer work.  I also have lost all the icons that used to show up when I went to the Admin page.

Any thoughts?

 

Thanks.

Marc Irish

Share this post


Link to post
Share on other sites
Rob Severijns

Marc,

 

Just to be sure.

Did you do a full install or partial upgrade from a previous version.

I also see you use the new template. Is the same problem occuring when you use an older TNG template?

 

Rob

Share this post


Link to post
Share on other sites
theKiwi
1 hour ago, marcirish said:

I just upgraded to TNG 13 and everything seemed to go smoothly.  However, when I accessed my website: https://marcirish.us  the drop down menus no longer work.  I also have lost all the icons that used to show up when I went to the Admin page.

The menus are actually there, but they are empty - there's no text string or icon with them.

image.png

Perhaps one or more files didn't upload correctly - I'd try copying all of the files from the upgrade package to the site again and see if that fixes it.

Roger

Share this post


Link to post
Share on other sites
marcirish

Thanks Roger!  I reloaded all the update files and I still get the same result.  Any other ideas?

 

Thanks

Share this post


Link to post
Share on other sites
marcirish

One further note: I tried using different templates and they all react the same way in terms of handling the drop down menus.

 

Marc

Share this post


Link to post
Share on other sites
marcirish
2 hours ago, Rob Severijns said:

Marc,

 

Just to be sure.

Did you do a full install or partial upgrade from a previous version.

I also see you use the new template. Is the same problem occuring when you use an older TNG template?

 

Rob

I did the upgrade install rather than a new install.  All of the templates have the same issue: the drop down doesn't bring up the menu of items available under that menu heading.

 

Marc

 

Share this post


Link to post
Share on other sites
Brett
15 hours ago, marcirish said:

the drop down menus no longer work

Marc

They work for me. While you have said they do not work on several templates, have you cleared the cache.

Or has this been resolved?

Share this post


Link to post
Share on other sites
Ken Roy

TNG v13 is a major upgrade that changes CSS and JS files, therefore you need to do forced reloads on screens to bypass cache or you need to clear your cache

Share this post


Link to post
Share on other sites
marcirish

I did clear my cache.  I did the reinstall again and it cleared everything up.  Not sure what happened on the first install.  Thanks for suggestions.

 

Marc

Share this post


Link to post
Share on other sites
Ken Roy

Marc,

Most likely a timing issue.   I do not clear cache but do forced reloads on the screens that do not display correctly.   Since I also have more than one language in my language pull down list, I found that switching languages often causes the necessary reloads

Share this post


Link to post
Share on other sites
Martin Kilkie

 until I read this thread I didn't notice that I have a variant. In my template13 I get all the drop downs except "info". I have cleared all caches and screens.

Share this post


Link to post
Share on other sites
Michel KIRSCH

Edit your config.php file and verify that your line

$tngconfig['menu'] = "0";

is well set to "0", and not to "2"

Michel

Share this post


Link to post
Share on other sites
Martin Kilkie

$tngconfig['menu'] does = 0

another symptom I discovered by accident is that the info menu appears when not logged in (on the login page) but not on any page when logged in, no matter who the login is.

Martin

Share this post


Link to post
Share on other sites
Michel KIRSCH

Just for info: when I upgrade for the first time,

I have many little problems. Disabling my adBlocker on my site

solves all the problems.

Michel

Share this post


Link to post
Share on other sites
Martin Kilkie

I found like theKiwi that the sourccode for a page does include the info drop down menu but not the lines inside it. The guide to the construction of a tng page says the dropdown menus come from genlib.php but I cannot see why they don't show (tried all the cache deleting, reloading etc). Remember a clue must be that the drop down shows when you click on it before logging in but not after.

here is the code from the login page which shows the drop down:

/ul>
  </li>
  <li><a href="#" class="menulink">Info</a>
  <ul class="last">
  <li><a href="whatsnew.php"><span class="menu-icon" id="whatsnew-icon"></span> <span class="menu-label">What's New</span></a></li>
  <li><a href="mostwanted.php"><span class="menu-icon" id="mw-icon"></span> <span class="menu-label">Most Wanted</span></a></li>
  <li><a href="reports.php"><span class="menu-icon" id="reports-icon"></span> <span class="menu-label">Reports</span></a></li>
  <li><a href="statistics.php"><span class="menu-icon" id="stats-icon"></span> <span class="menu-label">Statistics</span></a></li>
  <li><a href="browsetrees.php"><span class="menu-icon" id="trees-icon"></span> <span class="menu-label">Trees</span></a></li>
  <li><a href="browsebranches.php"><span class="menu-icon" id="branches-icon"></span> <span class="menu-label">Branches</span></a></li>
  <li><a href="browsenotes.php"><span class="menu-icon" id="notes-icon"></span> <span class="menu-label">Notes</span></a></li>
  <li><a href="browsesources.php"><span class="menu-icon" id="sources-icon"></span> <span class="menu-label">Sources</span></a></li>
  <li><a href="browserepos.php"><span class="menu-icon" id="repos-icon"></span> <span class="menu-label">Repositories</span></a></li>
  <li><a href="suggest.php?page=Login"><span class="menu-icon" id="contact-icon"></span> <span class="menu-label">Contact Us</span></a></li>
  </ul>
  </li>
  </ul>
  </div>
 

</div>

and here is the same code from the page after login

 

 
/ul>
  </li>
  <li><a href="#" class="menulink">Info</a>
  <ul class="last">
  </ul>
  </li>
  </ul>
  </div>
  </div>
  <div id="searchdrop" class="slidedown" style="display:none;"><a href="#" onclick="jQuery('#searchdrop').slideUp(200);return false;" style="float:right"><img src="img/tng_close.gif" alt=""/></a><span class="subhead"><strong>Search</strong> | <a href="searchform.php">Advanced Search</a> | <a href="famsearchform.php">Search Families</a> | <a href="searchsite.php">Search Site</a></span><br/><br/><form action="search.php" method="get">
 

 

as theKiwi says the drop down list is not populated? 

 

Can anyone narrow down the PHP which creates this HTML, perhaps some switch is causing the non inclusion?

 

Martin

Share this post


Link to post
Share on other sites
Ken Roy

Martin,

Do you have the latest patch file installed?

Share this post


Link to post
Share on other sites
Martin Kilkie

HI Ken, what patch? Ive read an email somewhere from Darrin which mentioned one but the download page still just has 13.0

 

Martin

 

Share this post


Link to post
Share on other sites
theKiwi
3 minutes ago, Martin Kilkie said:

HI Ken, what patch? Ive read an email somewhere from Darrin which mentioned one but the download page still just has 13.0

The patch that is listed here on the TNG 13 Downloads page

image.png

Roger

Share this post


Link to post
Share on other sites
Martin Kilkie

they sneakily hid the patch in full sight 😅 

Got it now. Off to do the unpacking and uploading.

Share this post


Link to post
Share on other sites
Martin Kilkie

I was so excited that the annoying bug was going that I uploaded the patch without a backup. Now when I have another error. 

Fatal error: Uncaught Error: Call to undefined function getLangPart2() in /homepages/16/d387908500/htdocs/KILKIEFHS3/tng/getperson.php:86 Stack trace: #0 {main} thrown in /homepages/16/d387908500/htdocs/KILKIEFHS3/tng/getperson.php on line 86

The error is only shown when I call getperson.php from anywhere in the application. To my knowledge I have not modified getperson.php and I have uploaded the latest version in 13.0

it never rains but it pours!

Martin

PS the patch does cure the undocumented function in the drop down menus.

Share this post


Link to post
Share on other sites
Martin Kilkie

I uploaded getperson.php from the full version 13 and the error has gone. Must have been an old 12.3 version left around.

Would it help if the PHP files had version numbers in them?

Share this post


Link to post
Share on other sites
tngrlkrz
Just now, Martin Kilkie said:

I uploaded getperson.php from the full version 13 and the error has gone. Must have been an old 12.3 version left around.

You likely have other TNG13 files you didn't copy...very unlikely just one  file wasn't copied.  I would be wary that there might be others not upgraded as well.  If it were me, I would uninstall all mods and refresh all the files from the upgrade. As to version numbers...I would be afraid to even ask Darrin to manage the filenaming involved in that.    

Share this post


Link to post
Share on other sites
Martin Kilkie

thanks for the suggestion.

 

sorry for not replying quicker.. I did copy all files again when I noticed one was missing - All from the full upgrade solved it.

 

martin 

Share this post


Link to post
Share on other sites
KB71

I ran into a similar issue, the info menu would not open when I was logged in. I found the culprit it was the "open my page mod". When i uninstalled it worked fine.

So if you have mods installed that might be the reason.

On 10/8/2020 at 1:31 AM, Martin Kilkie said:

$tngconfig['menu'] does = 0

another symptom I discovered by accident is that the info menu appears when not logged in (on the login page) but not on any page when logged in, no matter who the login is.

Martin

 

Share this post


Link to post
Share on other sites
Kingsland

Thank you KB71, I had the problem of the dropdown menu. Removing "open my page mod" did the trick.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×