Author Topic: TitleNotification Plugin doesn't work  (Read 5298 times)

0 Members and 1 Guest are viewing this topic.

nubas

  • Jr. Member
  • **
  • Posts: 2
TitleNotification Plugin doesn't work
« on: February 04, 2015, 12:05:48 PM »
Всем привет, имею следующее:
Code: [Select]
root@mibew:/root/plugin# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise

Code: [Select]
root@mibew:/root/plugin# php -v
PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:19:04)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

Code: [Select]
root@mibew:/root/plugin# apache2 -v
Server version: Apache/2.2.22 (Ubuntu)
Server built:   Jul 22 2014 14:35:25

Code: [Select]
root@mibew:/root# mysql -V
mysql  Ver 14.14 Distrib 5.5.40, for debian-linux-gnu (x86_64) using readline 6.2

Code: [Select]
root@mibew:/root/plugin# cat /var/www/mibew/VERSION.txt
Mibew/2.0

На самом деле стоит 2.0.0-beta.2

Code: [Select]
root@mibew:/root/plugin# ls /var/www/mibew/plugins/TitleNotification/ -lah
total 40K
drwxr-xr-x 4 root root 4.0K Feb  4 14:17 .
drwxrwxr-x 3 root root 4.0K Feb  4 14:00 ..
-rw-r--r-- 1 root root  12K Feb  4 14:00 LICENSE
-rw-r--r-- 1 root root 5.0K Feb  4 14:00 Plugin.php
-rw-r--r-- 1 root root 2.0K Feb  4 14:00 README.md
drwxr-xr-x 2 root root 4.0K Feb  4 14:00 js
drwxr-xr-x 3 root root 4.0K Feb  4 14:00 vendor

Версия 1.0.0 с сайта

Code: [Select]
root@mibew:/root/plugin# tail /var/www/mibew/configs/config.yml -c 340
ugins
#plugins: []

plugins:
    "Mibew:TitleNotification":
        new_thread: false
        new_message: "operator"

## Exapmle of plugins configuration
# plugins:
#     "VendorName:PluginName":
#         weight: 100
#         some_configurable_value: value
#     "VendorName:AnotherPluginName":
#         very_important_value: "$3.50"

А на странице "<Mibew Base URL>/operator/plugin" в итоге пишет что "No elements"
В логах апача ошибки вылезали связанные с парсингом только когда "криво" добавлял инфу о плагине ::)
типа такого
Quote
PHP Fatal error:  Uncaught exception 'Symfony\\Component\\Yaml\\Exception\\ParseException' with message 'Unable to parse at line 57 (near "[ "Mibew:TitleNotification":
- после того как скопировал-вставил из примера, все ошибки пропали.
Как быть?
« Last Edit: February 04, 2015, 12:08:56 PM by nubas »

Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: TitleNotification Plugin doesn't work
« Reply #1 on: February 04, 2015, 01:55:11 PM »
Не туда Вы плагины положили. Вместо

Code: [Select]
/var/www/mibew/plugins/TitleNotification/
должно быть:

Code: [Select]
/var/www/mibew/plugins/Mibew/Mibew/Plugin/TitleNotification/

nubas

  • Jr. Member
  • **
  • Posts: 2
Re: TitleNotification Plugin doesn't work
« Reply #2 on: February 04, 2015, 03:07:03 PM »
спасибо, появился в списке