Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

language problem! #274

Open
lancaitou opened this issue Feb 15, 2025 · 8 comments
Open

language problem! #274

lancaitou opened this issue Feb 15, 2025 · 8 comments

Comments

@lancaitou
Copy link

Location of language pack,locale\zh_CN\LC_MESSAGES\vvveb.po

Image

Image

Image

`

General

Vvveb version | 1.0.6 -- | -- /admin/ 8.2.21 \| fpm-fcgi nginx/1.23.1 Linux DSM 4.4.302+ #72806 SMP Thu Sep 5 13:42:01 CST 2024 x86_64 mysqli \| Client library version: mysqlnd 8.2.21 \| Server version: 10.11.6-MariaDB 240 128M 60 32M 32M Core date libxml pcre ctype dom fileinfo filter hash json mbstring pcntl SPL session PDO random readline Reflection standard SimpleXML tokenizer xml xmlreader xmlwriter mysqlnd cgi-fcgi apcu curl gettext mysqli zip Zend OPcache enabled APCu mail request enabled enabled mockup (Imagick or GD not enabled!) disabled disabled
`
@givanz
Copy link
Owner

givanz commented Feb 15, 2025

The 404 not found page is not the standard 404 generated by Vvveb, it looks like the page is generated by the http server and the request does not reach Vvveb's index.php.

Other pages like about /page/about can be loaded or it shows 404 for for all pages except homepage /?

This is probably caused by missing mod rewrite module, or .htaccess not loaded if you are using apache, if you are using nginx you need to use the included nginx.conf to redirect all requests to index.php nginx-nocache.conf
nginx.conf

You can check some solutions from previous similar issues.

#188 (comment)

#206 (comment)

#220 (comment)

#72 (comment)

@lancaitou
Copy link
Author

Great God, I changed nginx as shown in the picture, and after successfully adding the language, it returned a 504. Normal after returning the car. But no matter how I switch languages, there's no Zh_cn, both the front-end and back-end are the same

Image

Image

Image

Image
Image

@givanz
Copy link
Owner

givanz commented Feb 16, 2025

When installing a new language pack the files are downloaded from github, maybe your hosting is blocking access to external sites like github and php timeouts (504 error) trying to download the files.

You can manually download the files from https://github.com/Vvveb/zh_CN and put the files in /locale/zh_CN/LC_MESSAGES/ you might need to manually compile vvveb.po to /locale/zh_CN/LC_MESSAGES/vvveb.mo you can use Poedit or

msgfmt vvveb.po

Sometimes php might cache .mo files and you need to restart php-fpm to reload.

@lancaitou
Copy link
Author

The language is normal and the website error has been resolved. Now there are only a few pages that have problems
synology -web station-php8.2-nginx

Image

Image

Image

Image

@givanz
Copy link
Owner

givanz commented Feb 17, 2025

From the error messages it seems that for nginx tries to open urls like /page/contact as static file, fails and for some reason it doesn't test the following rule from try_files to reach /index.php as it should and just returns 404.

Maybe there is a conflicting rule/configuration somewhere in the current nginx.conf or user.conf, try to temporarily use the included Vvveb nginx.conf and see if it works.

@lancaitou
Copy link
Author

Is Qunhui's nginx a simplified version?
/usr/local/etc/nginx/conf.d-available

The corresponding files in this directory have all been modified, but it still doesn't work

@lancaitou
Copy link
Author

lancaitou commented Feb 18, 2025

Thank you, God. I think I've taken care of it. Can you provide a detailed explanation of PHP's extensibility and directory permissions?
/public/themes/landing//screenshots/blocks/reusable/code-editor-thumb.jpegl,There are no pictures available
[18-Feb-2025 16:33:52 Asia/Shanghai] PHP Warning: Undefined property: Vvveb\Sql\MenuSQL::$error in /volume1/web/two/admin/controller/content/menus.php on line 80
[18-Feb-2025 16:33:52 Asia/Shanghai] PHP Warning: Undefined property: Vvveb\Sql\MenuSQL::$error in /volume1/web/two/admin/controller/content/menus.php on line 81
Two lines of error prompt,I haven't found any other errors yet。

@givanz
Copy link
Owner

givanz commented Feb 22, 2025

The warning generated by admin/controller/content/menus.php is fixed in latest.zip please redownload and update the file.

Directory permissions are standard, files should be owned by nginx user/group which is usually user = www-data
group = www-data.

Folders that need permission are /config for writing db details during install, /storage for cache and compiled templates and public/themes/* to allow theme editing from the page builder.

You can use the docker init script to set permissions https://github.com/Vvveb/docker/blob/main/latest/php8.3/fpm-alpine/init.sh#L18-L23

The system can be extended through plugins, there is an event system that can be used to run code when certain actions are performed to override or extend default functionality.

https://dev.vvveb.com/plugin-introduction

https://dev.vvveb.com/events-introduction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants