Vvveb icon indicating copy to clipboard operation
Vvveb copied to clipboard

language problem!

Open lancaitou opened this issue 1 year ago • 8 comments

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

Image

Image

Image

`

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
`

lancaitou avatar Feb 15 '25 08:02 lancaitou

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.

https://github.com/givanz/Vvveb/discussions/188#discussioncomment-10664584

https://github.com/givanz/Vvveb/issues/206#issuecomment-2454354098

https://github.com/givanz/Vvveb/issues/220#issuecomment-2477153390

https://github.com/givanz/Vvveb/issues/72#issuecomment-1913584911

givanz avatar Feb 15 '25 13:02 givanz

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

lancaitou avatar Feb 16 '25 01:02 lancaitou

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.

givanz avatar Feb 16 '25 14:02 givanz

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

lancaitou avatar Feb 17 '25 14:02 lancaitou

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.

givanz avatar Feb 17 '25 16:02 givanz

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 avatar Feb 18 '25 05:02 lancaitou

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。

lancaitou avatar Feb 18 '25 08:02 lancaitou

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

givanz avatar Feb 22 '25 18:02 givanz