@dovid
אשמח לשתף.
זה הפלט, כמה שגיאות שלמיטב ידיעתי לא קשורות ונתוני הטופס:
VM362:8338 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'facebook.json')
at getConfig (<anonymous>:8338:42)
at ClickToLoad.init (<anonymous>:11132:37)
at ClickToLoad.callInit (<anonymous>:3180:18)
at <anonymous>:11424:33
at Array.forEach (<anonymous>)
at Object.init (<anonymous>:11422:26)
getConfig @ VM362:8338
init @ VM362:11132
callInit @ VM362:3180
(anonymous) @ VM362:11424
init @ VM362:11422
await in init (async)
apply @ VM362:11490
(anonymous) @ VM371:3
(anonymous) @ VM371:5
inject @ inject.js:114
(anonymous) @ inject.js:208
Show 2 more frames
Show less
vendor.min.js:24892 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at Object.getRegexMask (vendor.min.js:24892:404)
at l.init (vendor.min.js:24899:27)
at new n (vendor.min.js:24899:418)
at HTMLInputElement.k (vendor.min.js:24901:227)
at Function.each (vendor.min.js:381:19)
at jQuery.fn.init.each (vendor.min.js:203:17)
at a.fn.mask (vendor.min.js:24901:253)
at HTMLInputElement.<anonymous> (app.min.js:1:11969)
at Function.each (vendor.min.js:381:19)
at jQuery.fn.init.each (vendor.min.js:203:17)
getRegexMask @ vendor.min.js:24892
l.init @ vendor.min.js:24899
n @ vendor.min.js:24899
k @ vendor.min.js:24901
each @ vendor.min.js:381
each @ vendor.min.js:203
a.fn.mask @ vendor.min.js:24901
(anonymous) @ app.min.js:1
each @ vendor.min.js:381
each @ vendor.min.js:203
t.initMask @ app.min.js:1
t.init @ app.min.js:1
t.init @ app.min.js:1
(anonymous) @ app.min.js:1
(anonymous) @ app.min.js:1
vendors.js:58 Refused to load the script 'https://js.stripe.com/v3' because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
(anonymous) @ vendors.js:58
(anonymous) @ vendors.js:58
N @ vendors.js:58
(anonymous) @ vendors.js:58
Promise.then (async)
65085 @ vendors.js:58
o @ content-script.js:7411
95133 @ vendors.js:58
o @ content-script.js:7411
86493 @ vendors.js:401
o @ content-script.js:7411
5309 @ content-script.js:1118
o @ content-script.js:7411
(anonymous) @ content-script.js:7411
o.O @ content-script.js:7411
t @ content-script.js:7411
(anonymous) @ vendors.js:2
Show 16 more frames
Show less
vendors.js:58 Error: Failed to load Stripe.js
at HTMLScriptElement.<anonymous> (vendors.js:58:1979)
(anonymous) @ vendors.js:58
Promise.catch (async)
65085 @ vendors.js:58
o @ content-script.js:7411
95133 @ vendors.js:58
o @ content-script.js:7411
86493 @ vendors.js:401
o @ content-script.js:7411
5309 @ content-script.js:1118
o @ content-script.js:7411
(anonymous) @ content-script.js:7411
o.O @ content-script.js:7411
t @ content-script.js:7411
(anonymous) @ vendors.js:2
Show 13 more frames
Show less
null:1
GET https://stockermart.com/GOODIES/null 404 (Not Found)
goodies_enrollment.php:406 Submitting form: first
goodies_enrollment.php:426 Serialized form data: (11) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]0: {name: 'Company_Name', value: '%'}1: {name: 'Company_number', value: '955555555'}2: {name: 'type_business', value: 'חנות קמעונאית'}3: {name: 'City', value: 'לוד'}4: {name: 'Address', value: 'יע'}5: {name: 'Zip', value: '0023453'}6: {name: 'contact', value: 'מורדכי'}7: {name: 'Company_phone', value: '055-555-5555'}8: {name: 'Company_phone2', value: '055-555-5555'}9: {name: 'Company_email', value: 'd@gmail.com'}10: {name: 'business_size', value: '31-100'}length: 11[[Prototype]]: Array(0)
goodies_enrollment.php:406 Submitting form: second
goodies_enrollment.php:426 Serialized form data: [{…}]0: {name: 'biz_type', value: 'מזומן'}length: 1[[Prototype]]: Array(0)
ניתן לראות ששם החברה אינו תקין, כי רשום %, וסקריפט האימות שלו אינו מאפשר את זה:
switch ($form) {
case 'first':
$companyName = test_input($parsedData["Company_Name"] ?? '');
if ($companyName === '') {
$errors['Company_Name'] = "חסר שם חברה";
} elseif (!preg_match("/^[A-Za-zא-ת0-9 ]*$/u", $companyName)) {
$errors['Company_Name'] = "שם החברה יכול להכיל אותיות ומספרים בלבד";
לכן אמורה להתקבל שגיאה.
תודה רבה על העזרה