Admin dashboard broken

Help for integrating the Laravel package
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!
DavidSlash
Posts: 5
Joined: 10 Apr 2025, 13:39

Admin dashboard broken

Post by DavidSlash » 10 Apr 2025, 13:47

I installed Aimeos on my local, the front end looks good, but when I want to use the admin dashboard:

1) The main dashboard item it doesn't show total orders, completed orders, etc, nor graphics, I only get the spinning wheel on the graphic parts.

2) Clicking options Sales, Catalog, Users, Marketing, Setup, Locales, Languages, does nothing. Not a failed network call, not an error in the console. Nothing.

3) Clicking CMS gives me a Laravel error "No translation directory for domain "admin/ext" available".

The only thing I see on the browser's console is this error:
Uncaught ReferenceError: Aimeos is not defined at en:29:2
Could not establish connection. Receiving end does not exist.

So may be I missed something? This should work right out of the box, right?

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Admin dashboard broken

Post by aimeos » 10 Apr 2025, 14:07

Which Aimeos version do you use?
We've released a brand new major release but in our test environment, the admin backend is working like expected.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

DavidSlash
Posts: 5
Joined: 10 Apr 2025, 13:39

Re: Admin dashboard broken

Post by DavidSlash » 10 Apr 2025, 14:13

I installed yesterday through github, and this is the composer.json line: "aimeos/aimeos-laravel": "2025.04.*"
Clicking the Aimeos logo on admin I see this on the url: version=2025.04.1

Note: I run Aimeos by doing php artisan serve, may be I need to do it under a docker container?

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Admin dashboard broken

Post by aimeos » 10 Apr 2025, 14:24

No need for Docker, "artisan serve" should be sufficient.
The CMS issue should be already fixed, can you please run "composer up"?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

DavidSlash
Posts: 5
Joined: 10 Apr 2025, 13:39

Re: Admin dashboard broken

Post by DavidSlash » 10 Apr 2025, 20:13

yes! CMS link is already fixed. Yet, other options in dashboard are inaccesible. I add a video for reference: https://drive.google.com/file/d/1T4xbuu ... sp=sharing

Im running a Mac M1 in case that helps.

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Admin dashboard broken

Post by aimeos » 11 Apr 2025, 07:25

Can you click on the "Uncaught ReferenceError" link and post a screenshot where it occurs?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

DavidSlash
Posts: 5
Joined: 10 Apr 2025, 13:39

Re: Admin dashboard broken

Post by DavidSlash » 11 Apr 2025, 14:34

Sure! Here you got!

Code: Select all

//Light by default (based on View used) - checks for Dark preference (by browser, or cookie)
if (prefersDark.matches && !isLight) {
    ['light', 'dark'].map(cl => document.body.classList.toggle(cl));
    Aimeos.theme(document.body.classList.contains("dark") ? "dark" : "light") <----- THIS LINE!
}

document.querySelectorAll(".btn-theme").forEach(item => {
    item.addEventListener("click", function() {
        ['light', 'dark'].map(cl => document.body.classList.toggle(cl));
        Aimeos.theme(document.body.classList.contains("dark") ? "dark" : "light")
    });
}

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Admin dashboard broken

Post by aimeos » 11 Apr 2025, 16:11

Ok, the problem was that you use the dark mode by default.
This is now fixed and a new version tagged. Please run "composer up" again.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

DavidSlash
Posts: 5
Joined: 10 Apr 2025, 13:39

Re: Admin dashboard broken

Post by DavidSlash » 11 Apr 2025, 20:24

Perfect! Now it works! I wonder if I got the right Aimeos version... is this version capable of having different vendors each one with a store?

Also, is quite perfect. When I switch to darkmode, it doesn't stick to other sections. But that's just a minor thing.

https://drive.google.com/file/d/1xtgCQU ... sp=sharing

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Admin dashboard broken

Post by aimeos » 12 Apr 2025, 07:57

Thanks, that problem has been fixed now too and it will be part of the next release.
In the meantime, you can test yourself after executing "composer req aimeos/ai-admin-jqadm:2025.04.x-dev"

For SaaS-like setups, please have a look here:
https://github.com/aimeos#multi-vendor
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply