Extadm: (index):24 SyntaxError: Unexpected token default
Posted: 25 Jul 2016, 06:46
I tried moving my server to php 7 and everything went fine. Now I changed a couple things in nginx config and prepared some files... i still have no clue where this error is coming from, the frontend seems to work fine, i have this only in the backend.
when accessing (ffix.local points to my localhost) http://ffix.local/extadm/ in my browser
note:
I ran
and
and
**EDIT**
this happens on php 5.6 and php 7
when accessing /admin or http://ffix.local/jqadm/search/dashboar ... lt&lang=en i get:
when accessing (ffix.local points to my localhost) http://ffix.local/extadm/ in my browser
note:
Code: Select all
update: {
type: 'Laravel',
version: '2016.07.2'
}
Code: Select all
(index):24 Uncaught SyntaxError: Unexpected token default
file?site=default:363 Uncaught TypeError: Cannot read property 'data' of undefined
Code: Select all
<!DOCTYPE html>
<html>
<head>
<title>Aimeos administration Interface</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link type="text/css" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/extjs/3.4.1-1/resources/css/ext-all.css" />
<link type="text/css" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/extjs/3.4.1-1/resources/css/xtheme-gray.css" />
<link rel="stylesheet" href="http://ffix.local/packages/aimeos/shop/admin/extjs/resources/css/main.css?v=1469427914" />
<link rel="stylesheet" href="http://ffix.local/packages/aimeos/shop/admin/extjs/lib/ext.ux/AdvancedSearch/resources/css/advandedsearch.css?v=1469427914" />
<link rel="stylesheet" href="http://ffix.local/packages/aimeos/shop/admin/extjs/lib/ext.ux/Portal/resources/css/Portal.css?v=1469427914" />
<script type="text/javascript">
window.MShop = {
i18n: {
lang: 'en',
content: {"admin":{"Costs per item":"Costs per item","Product supplier (optional)":"Product supplier (optional)","Product tag: {0} ({1})":"Product tag: {0} ({1})","pay:authorized":"authorized","pay:canceled":"canceled","pay:deleted":"deleted","pay:pending":"pending","pay:received":"received","pay:refund":"refund","pay:refused":"refused","pay:unfinished":"unfinished","stat:deleted":"deleted","stat:delivered":"delivered","stat:dispatched":"dispatched","stat:lost":"lost","stat:pending":"pending","stat:progress":"progress","stat:refused":"refused","stat:returned":"returned","stat:unfinished":"unfinished","status:archive":"archive","status:disabled":"disabled","status:enabled":"enabled","status:review":"review"},"admin\/ext":{"!=":"not equals","<":"before","<=":"before (incl.)","==":"equals","=~":"starts with",">":"after",">=":"after (incl.)","~=":"contains"}},
available: [{"id":"bg","label":"bg"},{"id":"cs","label":"cs"},{"id":"de","label":"de"},{"id":"en","label":"en"},{"id":"es","label":"es"},{"id":"fa","label":"fa"},{"id":"fr","label":"fr"},{"id":"it","label":"it"},{"id":"nl","label":"nl"},{"id":"no","label":"no"},{"id":"pl","label":"pl"},{"id":"ru","label":"ru"},{"id":"sk","label":"sk"},{"id":"sr","label":"sr"},{"id":"tr","label":"tr"},{"id":"uk","label":"uk"},{"id":"vi","label":"vi"},{"id":"zh","label":"zh"},{"id":"zh_CN","label":"zh_CN"}] },
config: {
site: default,
data: {"admin":{"extjs":{"url":{"target":"aimeos_shop_extadm"}}}},
smd: {"transport":"POST","envelope":"JSON-RPC-2.0","contentType":"application\/json","SMDVersion":"2.0","target":"http:\/\/ffix.local\/extadm\/do?site=default&_token=Pg93SbVymruKyAtn6gBiag2TTkjcmZCL85Jkm8lP","services":{"Admin_Job.init":{"parameters":[{"type":"string","name":"site","optional":false},
.....
editor","optional":false,"type":"string"}}}},
urlTemplate: 'http://ffix.local/extadm?site={site}&lang={lang}&tab={tab}',
jqadmurl: 'http://ffix.local/jqadm/search/product?site=default',
activeTab: 0,
baseurl: {
content: 'http://ffix.local/'
},
update: {
type: 'Laravel',
version: '2016.07.2'
}
}
}
</script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/extjs/3.4.1-1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/extjs/3.4.1-1/ext-all.js"></script>
<script type="text/javascript" src="http://ffix.local/extadm/file?site=default"></script>
</head>
<body>
<noscript><p>You need to enable javascript!</p></noscript>
</body>
</html>
Code: Select all
php artisan cache:clear
Code: Select all
php artisan aimeos:cache
Code: Select all
php artisan aimeos:setup
**EDIT**
this happens on php 5.6 and php 7
when accessing /admin or http://ffix.local/jqadm/search/dashboar ... lt&lang=en i get:
Code: Select all
js?site=default:1228 Uncaught ReferenceError: d3 is not definedAimeos.Dashboard.Order.chartDay @ js?site=default:1228Aimeos.Dashboard.Order.init @ js?site=default:1213(anonymous function) @ js?site=default:1684j @ jquery.js:3099k.fireWith @ jquery.js:3211n.extend.ready @ jquery.js:3417I @ jquery.js:3433
js?site=default:1450 Uncaught ReferenceError: d3 is not defined(anonymous function) @ js?site=default:1450(anonymous function) @ jquery.js:3256j @ jquery.js:3099k.fireWith @ jquery.js:3211e.(anonymous function) @ jquery.js:3301j @ jquery.js:3099k.fireWith @ jquery.js:3211x @ jquery.js:8264(anonymous function) @ jquery.js:8605
js?site=default:1372 Uncaught ReferenceError: d3 is not defined(anonymous function) @ js?site=default:1372(anonymous function) @ jquery.js:3256j @ jquery.js:3099k.fireWith @ jquery.js:3211e.(anonymous function) @ jquery.js:3301j @ jquery.js:3099k.fireWith @ jquery.js:3211x @ jquery.js:8264(anonymous function) @ jquery.js:8605
2js?site=default:1610 Uncaught ReferenceError: d3 is not defined