General > Support
error
edgi:
I changed the config file here that he wrote:
# Plugins
plugins:
"Mibew: emoji":
then immediately got an error when entering the admin panel:
Fatal error: Uncaught exception 'Symfony\Component\Yaml\Exception\ParseException' with message 'Malformed inline YAML string [ at line 81 (near "plugins: [")' in /home/virtwww/w_evrokaskad-ru_e5d26541/http/Mibew/vendor/symfony/yaml/Symfony/Component/Yaml/Inline.php:331 Stack trace: #0 /home/virtwww/w_evrokaskad-ru_e5d26541/http/Mibew/vendor/symfony/yaml/Symfony/Component/Yaml/Inline.php(63): Symfony\Component\Yaml\Inline::parseSequence('[', 1, Array) #1 /home/virtwww/w_evrokaskad-ru_e5d26541/http/Mibew/vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php(467): Symfony\Component\Yaml\Inline::parse('[', false, false, false, Array) #2 /home/virtwww/w_evrokaskad-ru_e5d26541/http/Mibew/vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php(223): Symfony\Component\Yaml\Parser->parseValue('[', false, false, false) #3 /home/virtwww/w_evrokaskad-ru_e5d26541/http/Mibew/libs/common/configurations.php(35): Symfony\Component\Yaml\Parser->parse('# IMPORTANT: Be...') #4 /home/virtwww/w_evrokaskad-ru_e5d26541/http/Mibew/libs/init.php(32) in /home/virtwww/w_evrokaskad-ru_e5d26541/http/Mibew/vendor/symfony/yaml/Symfony/Component/Yaml/Inline.php on line 331
Dmitriy Simushev:
You have a syntax error in config.yml, so you have to double check this file.
Also, there are many docs about YAML syntax over the Internet. I recommend to take a look at one of these docs.
edgi:
Can you see the lines connecting the correct spelling of a plug-in configuration file from the demo version mibew.
I'm not a programmer. I did everything as it is written in the documentation:
Lets assume you are trying to install "FooCorp: Connector" plugin that requires timeout and reconnects options. The plugins array from configs / config.yml file becomes:
--- Code: ---plugins:
"FooCorp: Connector":
timeout: 200
reconnects: 3
--- End code ---
I wrote this:
--- Code: ---plugins:
"Mibew: Emoji"
--- End code ---
Dmitriy Simushev:
First of all, YAML format is very simple, you don't need to be a programmer to use it. I strongly recommend you to take a look at one of plenty format descriptions.
Second of all, there must not be a space between vendor name ("FooCorp") and plugin name ("Connector"):
--- Code: ---plugins:
"FooCorp:Connector":
timeout: 200
reconnects: 3
--- End code ---
Next, example of correct Emoji plugin configuration is provided in plugin's README file. Let me quote it for you (I removed the comment to make the reading easier):
--- Code: ---plugins:
"Mibew:Emoji":
ignore_emoticons: false
--- End code ---
edgi:
lowercase or uppercase letters in the names of folders in the config file has a value?
my config file is now as follows:
--- Code: ---plugins:
"Mibew:Emoji":
ignore_emoticons: false
"Mibew:GeoIp":
database_path: "/opt/GeoIP/GeoLite2-City.mmdb"
"Mibew:GoogleMaps":
api_key: "Google_Maps_Javascript_v3_API_key"
"Mibew:TitleNotification":
new_thread: true
new_message: "both"
"Mibew:PurgeHistory":
timeout: 172800
--- End code ---
but in the admin panel plugins do not appear.
I can not plug in those subdirectories copied?
I have attached a screen directory tree.
Navigation
[0] Message Index
[#] Next page
Go to full version