Menu suddenly disappears (v2020)

Hi, Im testing 2020 to upgrade, the first issue I encountered is that sometimes in page changes the menu options on the left disappears and the spinner that is in the top middle of the page keeps spinning, sometimes I hit reload and the menu appearsthis happens on mobile browser and desktopthis is so far what I have seen with my tests.thanks

You probably have JavaScript error before the menu is rendered (also by JavaScript). If you have your own JavaScript code in the project, you need to migrate it first, see Migrating to v2020: https://phpmaker.dev/doc/migrate2020.htm.Press F12 in your browser and go to Console to check the JavaScript errors.

Hello, thanks for the reply, this is a brand new project in 2020 used for testing 2020 features.I did these 4 steps

  1. install phpm2020
  2. connect to a db
  3. generate some tables
  4. test

I have not added any custom JS code, and the issue happens randomly

no errors reported in the javascript console eitherthanks

Make sure you use supported browser: https://phpmaker.dev/download.php, i.e. Chrome/Edge/Firefox/Safari/Opera (latest), IE 10+.If you are a registered user you can also send your project to support for testing: https://phpmaker.dev/support.php.

Actually in the 2nd click of the demo app published in hkvstore.com/phpdemo2020 even some times appear later not always easy but keeps happening randomly.the issue was reproductible at http://hkvstore.com/phpdemo2020/productslist.php?cmd=resetallI went over to the link and then choose another menu option and this happened again now in http: // hkvstore.com/phpdemo2020/categorieslist.phpUncaught TypeError: Cannot read property ‘appendChild’ of null
at Object.ew.addSpinner (ewcfg.js:105)
at ew.js:25
at ew.js:5002
categorieslist.php:343 Uncaught TypeError: ew.Form is not a constructor
at categorieslist.php:343
at l (loadjs.min.js:1)
at loadjs.min.js:1
at n (loadjs.min.js:1)
at loadjs.min.js:1
at Function.t.ready (loadjs.min.js:1)
at categorieslist.php:339

Cannot reproduce with Chrome or Firefox.Which browser are you using? Clear temp files in your browser and try again, or test with another browser.

Hi, sorry but still have the issue with my project, no custom js no custom code just mysql connection and generationTested on chrome on Mac latest version incognito mode no cache. It seems the is empty.

this error also happens in the demo site:
hkvstore.com/phpdemo2020/alphabetical_list_of_productssmry.php

ewcfg.js:105 Uncaught TypeError: Cannot read property ‘appendChild’ of null
at Object.ew.addSpinner (ewcfg.js:105)
at ew.js:25
at ew.js:5002

I tried the demo site but I cannot reproduce the error.

You said:
Tested on chrome on Mac latest version…Did it happen with Safari on Mac too?You may also try to download Firefox for Mac to test.If you have some Chrome extensions enabled, you may try to disable them and then try again.

Hi,

I use phpmaker 2020 for many project and this issue appears for all projects at all browser at windows and mac

it is too rare to show in local test but at production server it is shows more often.

no js error / no custom code at all

when I trace issue : simply jsreder for menu doesn’t fire sometime why? I don’t know

my solve is : I built my custom code using menu item data in page and and appended it asid_menu and nav_menu .

is it a perfect solution? No it is not.

but unfortunately no other choice .

Hi, this is still an issue for me, but seems not only on Mac, I am using a chrome and still happens, ani solution or way to track this ?

thanks

I have phpm19 and phpm20, in 19 no problems, on 20 menu randomly does not render rsometimes it takes 2 or 3 interactions to be shown, refresh and show but this is odd for app and user. there is no js console error or whatever. Anyone here can tell me what could be or where to look for ?

No custom code or templates or css etc, just plain new phpm20 project, happens with menu style (lateral menu) or putting all as navbar

thanks for any help

This has happened to me on our live site. Login in an no menu at times, press f5 and it would appear, then after some use, it would disappear at times.

This issue was apparently isolated to my system, as no one else was.experiencing it. On my dev system it didn’t happen only the live system which also 50x faster performance than my dev.

Not sure what I did - cleaned out cache completely, history, etc but it eventually stepped and displayed normally. Tey a few ctrl-f5 as well

As for mac, i have a mac desktop with ff, edge, chrome and haven’t encountered any odd behavior.

Hi, I still have this issues, new projects, same behaviour, tested and happens using regular menu or as navBar so seems nothing related to the machine itself.After some f5’s the menu appears. @tekhost could you explain better what you did as custom code.I will like to preserve, use PHPM at the most, to use the security features to access options.thanks