Comments (6)
Either the Aimoes setup failed or you've removed the default
site or renamed the default
site without configuring the new site name with should be used by default.
Did you get any errors during setup?
from aimeos.
no, setup smoothly. I successfully logged in admin and familiarized with aimeos for a while. and changed home page colors.
front pages look good and impressive.
a couple of days ago I installed extensions "aimeos/ai-cms-grapesjs", "aimeos/ai-cache", "aimeos/ai-catsuggest", and "aimeos/ai-filesystem"
Today, I wanted to log in admin and do something cms contents. But either admin or front has the same exception error.
@aimeos The issue indicated the related file app/Http/Middleware/SetLocale.php
Does this involve a recent php 8.2.4 update?
root@instance-3:~# locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
root@instance-3:~# locale -a
C
C.UTF-8
POSIX
wenbo@instance-3:~$ locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
wenbo@instance-3:~$ locale -a
C
C.UTF-8
POSIX
wenbo@instance-3:~/wenbo/public$ locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
wenbo@instance-3:~/wenbo/public$ locale -a
C
C.UTF-8
POSIX
According to php manual setlocalce:
locales
If locales is the empty string "", the locale names will be set from the values of environment variables with the same names as the above categories, or from "LANG". If locales is "0", the locale setting is not affected, only the current setting is returned. If locales is followed by additional parameters then each parameter is tried to be set as new locale until success. This is useful if a locale is known under different names on different systems or for providing a fallback for a possibly not available locale.
locale_array
Each array element is tried to be set as new locale until success. This is useful if a locale is known under different names on different systems or for providing a fallback for a possibly not available locale.
from aimeos.
The SetLocale
middleware is only the first one which fetches the default
site item. Check the rows in the mshop_locale_site
table what is available there and post it's contents, please.
from aimeos.
The
SetLocale
middleware is only the first one which fetches thedefault
site item. Check the rows in themshop_locale_site
table what is available there and post it's contents, please.
There is 1 row:
`mshop_locale_site` (`id`, `parentid`, `siteid`, `code`, `label`, `icon`, `logo`, `config`, `refid`, `theme`, `level`, `rating`, `ratings`, `invoiceno`, `nleft`, `nright`, `status`, `mtime`, `ctime`, `editor`) VALUES
(1, 0, '1.', 'wenbo.world', 'Wenbo', '1.d/icon.png', '{\"1\":\"1.d\\/logo.png\"}', '{\"resource\":{\"email\":{\"from-email\":\"[email protected]\",\"from-name\":\"Wenbo\"}},\"theme\":{\"default\":{\"--ai-product-image-ratio\":\"3\\/4\",\"--ai-bg\":\"#ffffff\",\"--ai-bg-alt\":\"#ffffcc\",\"--ai-primary\":\"#669933\",\"--ai-primary-alt\":\"#99cc33\",\"--ai-secondary\":\"#99cc66\",\"--ai-secondary-alt\":\"#7d7d2d\",\"--ai-tertiary\":\"#f7a586\",\"--ai-tertiary-alt\":\"#f6f6f6\",\"--ai-danger\":\"#a00000\",\"--ai-success\":\"#006000\",\"--ai-warning\":\"#ffa500\",\"--ai-radius\":\"0\"}}}', '', 'default', 0, '0.00', 0, 1, 1, 2, 1, '2023-03-18 20:12:16', '2023-03-12 16:28:20', '[email protected]');
from aimeos.
You've renamed the site code from default
to wenbo.world
. This is only OK if you configure:
- domain based routing (https://aimeos.org/docs/latest/laravel/customize/#adapt-the-routing)
- new default site (https://github.com/aimeos/aimeos/blob/master/config/shop.php#L208)
from aimeos.
@aimeos Thank you very much! aimeos does a wonderful job. I prefer aimeos to typo3.
from aimeos.
Related Issues (20)
- laminas/laminas-diactoros on clean Laravel 10 HOT 2
- How should I solve such a mistake? HOT 2
- Unable to customize the error messages? HOT 7
- Need to create new route in jqadmin HOT 3
- .jpg files are not get uploaded , showing image type is not supported by GDlib HOT 1
- HTML style attributes not get saved HOT 1
- How can save site details when editing customer detail? HOT 1
- Product detail not reflecting HOT 1
- Shipping Charge HOT 1
- Sorting for sites HOT 1
- No user detail page in subuser login HOT 1
- No item found for conditions: Array ( [locale.site.code] => shop ) HOT 2
- 502 Error when Enabling SHOP_MULTILOCALE and custom domain HOT 13
- Server Error HOT 2
- Error Encountered When Creating a New Account HOT 4
- Delivery Provider is Untriggered Functions HOT 2
- Replace old twitter icon with new icon
- mshop_group tables do not exist HOT 2
- SQLSTATE[42S02]: Base table or view not found: 1146 Table 'aimeos.mshop_index_attribute' doesn't exist HOT 1
- Mysql CA problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aimeos.