Robinhuy Posted July 1, 2021 Share Posted July 1, 2021 Hi, I don't know if this is the right place, but I used a code for a dropdown menu witch works fine on the website (geloven.eu/ABK2021) who uses PHP 7.2.24, but the dropdown does NOT work on another site bijbelkamp.eu/ABK2021 who uses PHP 7.3.28. The index page just includes the menu.php (here menu.txt) and the css file bootstrap21.css (here bootstrap21.txt). Can this be some coding issue or does this have nothing to do with the code? bootstrap21.txt menu.txt Quote Link to comment https://forums.phpfreaks.com/topic/313016-dropdown-menu-works-in-php-7224-not-in-php-7328/ Share on other sites More sharing options...
mac_gyver Posted July 1, 2021 Share Posted July 1, 2021 have you checked the browser's developer console for errors? it looks like the jquery-1.11.2.min.js and bootstrap.js files have been altered and now contain syntax errors. Quote Link to comment https://forums.phpfreaks.com/topic/313016-dropdown-menu-works-in-php-7224-not-in-php-7328/#findComment-1587707 Share on other sites More sharing options...
Robinhuy Posted July 1, 2021 Author Share Posted July 1, 2021 I get SyntaxError: Unexpected token '?' (anonymous function) at query-1.11.2.min.js:2 Unexpected identifier 'alert'. Expected ';' after variable declaration. bootstrap.js:94 The two sites are really copy past. so I guess I need to adjust those 2 errors? Quote Link to comment https://forums.phpfreaks.com/topic/313016-dropdown-menu-works-in-php-7224-not-in-php-7328/#findComment-1587708 Share on other sites More sharing options...
Solution Robinhuy Posted July 1, 2021 Author Solution Share Posted July 1, 2021 Ok, after just updating to bootstrap 4.4.1 and jQuery 3.4.1 it works now! Quote Link to comment https://forums.phpfreaks.com/topic/313016-dropdown-menu-works-in-php-7224-not-in-php-7328/#findComment-1587709 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.