Map with zone not showing when having more than x seats

ok i found something in enqueue_public.php, line 89:

if i comment out (as shown below) the SeatregLayoutService::hideSensitiveData() and it’s working again (i have a password set for the first week allowing people living in the street to book early). If it helps to understant what’s going on 🙂

        $inlineScript .= 'var dataReg = jQuery.parseJSON(' . wp_json_encode(/*SeatregLayoutService::hideSensitiveData*/($data->registration_layout)) . ');';
  • This reply was modified 2 hours, 6 minutes ago by xtrabet.

After few more tests i thought it was due to jQuery.parseJSON with a special character or something. it’s definitly around this line.

the hideSensitiveData method let me gain some seats but after the problem was still here.

I’m doing some extra tests to solve this…

  • This reply was modified 56 minutes ago by xtrabet.

Do you have any errors in Browser console? Also do you have access to server error logs?

sure : console

342-2/:199 Unrecognized feature: 'web-share'.
autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:12 JQMIGRATE: Migrate is installed with logging active, version 3.4.1
148Third-party cookie will be blocked in future Chrome versions as part of Privacy Sandbox.
VM1235 autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js:12 JQMIGRATE: Migrate is installed with logging active, version 3.4.1
seatreg?seatreg=registration&c=8c93f340fe&page_id=seatreg:27 Uncaught ReferenceError: jQuery is not defined
at showErrorView (seatreg?seatreg=registration&c=8c93f340fe&page_id=seatreg:27:109815)
at seatreg?seatreg=registration&c=8c93f340fe&page_id=seatreg:27:109722
showErrorView @ seatreg?seatreg=registration&c=8c93f340fe&page_id=seatreg:27
(anonyme) @ seatreg?seatreg=registration&c=8c93f340fe&page_id=seatreg:27
autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:12 JQMIGRATE: Migrate is installed with logging active, version 3.4.1
data:text/javascript;base64,CgkJCShmdW5jdGlvbigpIHsKCQkJCXZhciBmaWxlICAgICA9IFsiaHR0cHM6XC9cL3NvdWRlc2Vjb2xlc3NhdmlnbmV1eC5jb21cL3dwLWNvbnRlbnRcL2V0LWNhY2hlXC9ub3Rmb3VuZFwvZXQtZGl2aS1keW5hbW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NzJyk7CgkJCQl2YXIgbG9jYXRpb24gPSBoYW5kbGUucGFyZW50Tm9kZTsKCgkJCQlpZiAoMD09PWRvY3VtZW50LnF1ZXJ5U2VsZWN0b3JBbGwoJ2xpbmtbaHJlZj0iJyArIGZpbGUgKyAnIl0nKS5sZW5ndGgpIHsKCQkJCQl2YXIgbGluayAgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdsaW5rJyk7CgkJCQkJbGluay5yZWwgID0gJ3N0eWxlc2hlZXQnOwoJCQkJCWxpbmsuaWQgICA9ICdldC1keW5hbWljLWxhdGUtY3NzJzsKCQkJCQlsaW5rLmhyZWYgPSBmaWxlOwoKCQkJCQlsb2NhdGlvbi5pbnNlcnRCZWZvcmUobGluaywgaGFuZGxlLm5leHRTaWJsaW5nKTsKCQkJCX0KCQkJfSkoKTsKCQk=:15
autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:14 JQMIGRATE: jQuery.fn.keydown() event shorthand is deprecated
migrateWarn @ autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:14
obj. @ autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:16
(anonyme) @ autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:7
(anonyme) @ autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:122
autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:14 console.trace
migrateWarn @ autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:14
obj. @ autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:16
(anonyme) @ autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:7
(anonyme) @ autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:122
autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:14 JQMIGRATE: jQuery.fn.keyup() event shorthand is deprecated
migrateWarn @ autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:14
obj. @ autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:16
(anonyme) @ autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:7
(anonyme) @ autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:122
autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:14 console.trace
migrateWarn @ autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:14
obj. @ autoptimize_single_e2620f2ae61d84e5edef5a0b7b95cf96.js?ver=3.4.1:16
(anonyme) @ autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:7
(anonyme) @ autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:122
autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:7 Uncaught TypeError: Cannot read properties of undefined (reading 'roomData')
at new SeatReg (autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:7:218)
at autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:77:174
at autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:122:180
SeatReg @ autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:7
(anonyme) @ autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:77
(anonyme) @ autoptimize_single_d7cb064cfff4eeeb2a5fc176668f1fb0.js?ver=1.23.1:122

Do you have some sort of cache enabled on your site?

I activated logs in wordpress but i do not have errors except when i did some tests. But no error for now

I disabled “optimize javascript” in AutoOptimize plugin and now it’s working perfectly !

Thank you for this insight! 🙂

  • This reply was modified 7 seconds ago by xtrabet.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer