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

Ошибка в FileHelper #38

Closed
aspire5738 opened this issue Apr 18, 2015 · 6 comments
Closed

Ошибка в FileHelper #38

aspire5738 opened this issue Apr 18, 2015 · 6 comments

Comments

@aspire5738
Copy link

При использовании плагина с изображениями не отображаються ищображения которые уже загружены на сервер.
error
В дебагере браузера видно что в переменные thumb и image передаеться не url изображения, а путь к нему.
Настройки плагина:

'images-get' => [
    'class' => 'vova07\imperavi\actions\GetAction',
    'url' => 'http://my-site.dev/upload/images/', // Directory URL address, where files are stored.
    'path' => '@webroot/upload/images', // Or absolute path to directory where files are stored.
    'type' => GetAction::TYPE_IMAGES,                
],

'settings' => [
    'lang' => 'ru',
    'minHeight' => 200,
    'imageManagerJson' => Url::to(['/blog/post/images-get']),
    'imageUpload' => Url::to(['/blog/post/image-upload']),
    'plugins' => [
        'table',
        'imagemanager',
        'clips',
        'fullscreen',
    ]
]

@vova07
Copy link
Owner

vova07 commented Apr 18, 2015

Скрин дебагера можете тоже прикрепить пожалуйста?

@aspire5738
Copy link
Author

debug

@vova07
Copy link
Owner

vova07 commented Apr 18, 2015

Не могу повторить ошибку. В OS X все работает как надо, в Ubuntu тоже, тесты в CI проходят, вероятнее всего дело в винде. Как я понимаю вы именно в Windows среде разрабатываете так?

@vova07
Copy link
Owner

vova07 commented Apr 18, 2015

Есть возможность проверить данный баг на Уникс системах?

@aspire5738
Copy link
Author

Да вы правы работаю на Windows. Завтра будет возможность все это залить на сервак c Ubuntu. Отпишу о результате.

@aspire5738
Copy link
Author

Вы оказались правы, на ubunte все прокатило. Придется копаться в настройках xampp(извечная проблема со слешами). Спасибо за помощь.

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