Expert Mode Admin Page is Blank
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 4
- Joined: 05 Feb 2016, 23:02
Expert Mode Admin Page is Blank
After carefully following the procedure for installing Aimeos for Laravel 5.2, the /list and /admin routes work fine. However, after clicking on the 'Expert mode' link on the admin page (http://localhost:8080/jqadm/search/product), the resulting page (http://localhost:8080/extadm) is completely blank. I cannot find any related errors in any of the logs. There is apparently nothing about this issue in the documentation or online. Ideas?
Windows 10, XAMPP, Laravel 5.2, Aimeos 2016.01
Page with issue: http://localhost:8080/extadm
Logged in as Admin: Yes
Windows 10, XAMPP, Laravel 5.2, Aimeos 2016.01
Page with issue: http://localhost:8080/extadm
Logged in as Admin: Yes
Re: Expert Mode Admin Page is Blank
Can you please open the inspector of your browser and find out if there are any Javascript errors printed to the JS console during page load?randal_carr wrote:However, after clicking on the 'Expert mode' link on the admin page (http://localhost:8080/jqadm/search/product), the resulting page (http://localhost:8080/extadm) is completely blank. I cannot find any related errors in any of the logs.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 4
- Joined: 05 Feb 2016, 23:02
Re: Expert Mode Admin Page is Blank
The JS Console errors are:
TypeError: this.services[method].parameters is undefined file:53657:17
Ext.Error: Schema Locale_Site is not registered file23
Ext.Error: Schema Locale_Language is not registered file23
Ext.Error: Schema Locale_Currency is not registered file23
Browsers:
Firefox v44.0
Microsoft Edge 20.10240.16384.0
Opera 35.0
Environment:
Windows 10.0 (Build 10240)
Apache 2.4.17 (Win32)
MySQL 10.1.9-MariaDB
PHP 5.6.15
Thank you for your assistance.
TypeError: this.services[method].parameters is undefined file:53657:17
Ext.Error: Schema Locale_Site is not registered file23
Ext.Error: Schema Locale_Language is not registered file23
Ext.Error: Schema Locale_Currency is not registered file23
Browsers:
Firefox v44.0
Microsoft Edge 20.10240.16384.0
Opera 35.0
Environment:
Windows 10.0 (Build 10240)
Apache 2.4.17 (Win32)
MySQL 10.1.9-MariaDB
PHP 5.6.15
Thank you for your assistance.
Re: Expert Mode Admin Page is Blank
Can you please post the source code of the "/extadm/" URL? You should cut all lines that are longer than 200 chars to reduce its size.randal_carr wrote:The JS Console errors are:
TypeError: this.services[method].parameters is undefined file:53657:17
Ext.Error: Schema Locale_Site is not registered file23
Ext.Error: Schema Locale_Language is not registered file23
Ext.Error: Schema Locale_Currency is not registered file23
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 4
- Joined: 05 Feb 2016, 23:02
Re: Expert Mode Admin Page is Blank
Here is the source code for the generated page:
http://localhost:8080/extadm?site=default&lang=en
http://localhost:8080/extadm?site=default&lang=en
Code: Select all
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Aimeos admin interface</title>
<link rel="icon" type="image/x-icon" href="http://localhost:8080/favicon.ico" />
<link rel="stylesheet" href="http://localhost:8080/packages/aimeos/shop/admin/extjs/lib/extjs/resources/css/ext-all.css?v=1454732751" />
<link rel="stylesheet" href="http://localhost:8080/packages/aimeos/shop/admin/extjs/lib/extjs/resources/css/xtheme-gray.css?v=1454732751" />
<link rel="stylesheet" href="http://localhost:8080/packages/aimeos/shop/admin/extjs/resources/css/main.css?v=1454732753" />
<link rel="stylesheet" href="http://localhost:8080/packages/aimeos/shop/admin/extjs/lib/ext.ux/AdvancedSearch/resources/css/advandedsearch.css?v=1454732751" />
<link rel="stylesheet" href="http://localhost:8080/packages/aimeos/shop/admin/extjs/lib/ext.ux/Portal/resources/css/Portal.css?v=1454732751" />
<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_CN","label":"zh_CN"}] },
config: {
site: {"locale.site.id":"1","locale.site.siteid":1,"locale.site.ctime":"2016-02-06 04:34:50","locale.site.mtime":"2016-02-06 04:34:50","locale.site.editor":"core:setup","locale.site.code":"default","locale.site.label":"Default","locale.site.config":[],"locale.site.status":1},
data: {"admin":{"extjs":{"url":{"target":"aimeos_shop_extadm"}}}},
smd: {"transport":"POST","envelope":"JSON-RPC-2.0","contentType":"application\/json","SMDVersion":"2.0","target":"http:\/\/localhost:8080\/extadm\/do?site=default&_token=sPPIv7RNqm0KwGl4TtO42sPHLkxiNOzIBjS3rFSA","services":[]},
itemschema: [],
searchschema: [],
urlTemplate: 'http://localhost:8080/extadm?site={site}&lang={lang}&tab={tab}',
jqadmurl: 'http://localhost:8080/jqadm/search/product?site=default',
activeTab: 0,
baseurl: {
content: 'http://localhost:8080/'
},
update: {
type: 'Laravel',
version: '2016.01.2'
}
}
}
</script>
<script type="text/javascript" src="http://localhost:8080/extadm/file?site=default"></script>
</head>
<body>
<noscript><p>You need to enable javascript!</p></noscript>
</body>
</html>
Re: Expert Mode Admin Page is Blank
Thank you, this confirmed my first guess: The ExtJS controller files are not found in your WAMP environment.
I've modified the code accordingly and hope it works now. Can you please change the "aimeos-laravel" version in your composer.json to "dev-master" and copy the view files as described in the upgrade guide https://aimeos.org/docs/Laravel/Upgrade
If it still doesn't work, could you please add a few debug statements after these lines in the Aimeos core to find out why the paths are wrong?
- https://github.com/aimeos/aimeos-core/b ... c.php#L335
- https://github.com/aimeos/aimeos-core/b ... c.php#L370
- https://github.com/aimeos/aimeos-core/b ... c.php#L375
Thanks for your help
I've modified the code accordingly and hope it works now. Can you please change the "aimeos-laravel" version in your composer.json to "dev-master" and copy the view files as described in the upgrade guide https://aimeos.org/docs/Laravel/Upgrade
If it still doesn't work, could you please add a few debug statements after these lines in the Aimeos core to find out why the paths are wrong?
- https://github.com/aimeos/aimeos-core/b ... c.php#L335
- https://github.com/aimeos/aimeos-core/b ... c.php#L370
- https://github.com/aimeos/aimeos-core/b ... c.php#L375
Thanks for your help
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 4
- Joined: 05 Feb 2016, 23:02
Re: Expert Mode Admin Page is Blank
Your changes worked great. The expert mode admin panel came right up.
Thank you very much.
Thank you very much.