Code Monkey home page Code Monkey logo

Comments (6)

aimeos avatar aimeos commented on June 2, 2024

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.

cgcmart avatar cgcmart commented on June 2, 2024

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.

aimeos avatar aimeos commented on June 2, 2024

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.

cgcmart avatar cgcmart commented on June 2, 2024

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.

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.

aimeos avatar aimeos commented on June 2, 2024

You've renamed the site code from default to wenbo.world. This is only OK if you configure:

from aimeos.

cgcmart avatar cgcmart commented on June 2, 2024

@aimeos Thank you very much! aimeos does a wonderful job. I prefer aimeos to typo3.

from aimeos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.