Closed Dmitry422 closed 12 months ago
Im sorry problem on Roundcube Webmail 1.7-git
RoundCube v1.7 isn't even a beta version yet so I doubt I should fix that. Or is there a related changelog saying there is a breaking change so this is broken?
Fwiw, I can't reproduce this with 1.7-git, which is a very vague description of a version though.
What are in your config files? config.inc.php.dist
and config.inc.php
I has some problem with 1.6.2 (LDAP address book problems) so Alec recomend to me use one of last git version with changes that repair my bugs. I use your plugin as I remember from 1.5.3 or from 1.6.0 - its work perfect, and on 1.7 it work fine except case when user try change plugin settings (one of two checkboxes). After user change it - they can't open Plugin setup page, and can't open message text preview and message.
use Jfcherng\Roundcube\Plugin\CloudView\Helper\PluginConst;
/**
* This file is mean to specify all default settings.
*
* To use your customized config, you should copied this file into
* "config.inc.php" and modify config in it.
*/
$config = [];
/**
* You may want to set this if your Roundcube is set under a subdirectory or behind a reverse proxy.
* Here's a subdirectory example: https://example.com/roundcube/
*
* @type string
*/
$config['custom_site_url'] = '';
/**
* The default viewer order if the user has not set one.
*
* @type string
*
* @values PluginConst::VIEWER_GOOGLE_DOCS
* @values PluginConst::VIEWER_MICROSOFT_OFFICE_WEB
*
* For more values, see "Helper/PluginConst.php"
*/
$config['viewer_order'] = implode(',', [
PluginConst::VIEWER_MICROSOFT_OFFICE_WEB,
PluginConst::VIEWER_GOOGLE_DOCS,
]);
/**
* The default view button layouts if the user has not set one.
*
* @type int[]
*
* @values PluginConst::VIEW_BUTTON_IN_ATTACHMENTSLIST
* @values PluginConst::VIEW_BUTTON_IN_ATTACHMENTOPTIONSMENU
*
* For more values, see "Helper/PluginConst.php"
*/
$config['view_button_layouts'] = [
PluginConst::VIEW_BUTTON_IN_ATTACHMENTSLIST,
];
////////////////////////////////////
// for localhost dev test purpose //
////////////////////////////////////
$config['is_dev_mode'] = false;
$config['dev_mode_file_base_url'] = 'https://4272fd88.ngrok.io/';
use Jfcherng\Roundcube\Plugin\CloudView\Helper\PluginConst;
/**
* This file is mean to specify all default settings.
*
* To use your customized config, you should copied this file into
* "config.inc.php" and modify config in it.
*/
$config = [];
/**
* You may want to set this if your Roundcube is set under a subdirectory or behind a reverse proxy.
* Here's a subdirectory example: https://example.com/roundcube/
*
* @type string
*/
$config['custom_site_url'] = '';
/**
* The default viewer order if the user has not set one.
*
* @type string
*
* @values PluginConst::VIEWER_GOOGLE_DOCS
* @values PluginConst::VIEWER_MICROSOFT_OFFICE_WEB
*
* For more values, see "Helper/PluginConst.php"
*/
$config['viewer_order'] = implode(',', [
PluginConst::VIEWER_MICROSOFT_OFFICE_WEB,
PluginConst::VIEWER_GOOGLE_DOCS,
]);
/**
* The default view button layouts if the user has not set one.
*
* @type int[]
*
* @values PluginConst::VIEW_BUTTON_IN_ATTACHMENTSLIST
* @values PluginConst::VIEW_BUTTON_IN_ATTACHMENTOPTIONSMENU
*
* For more values, see "Helper/PluginConst.php"
*/
$config['view_button_layouts'] = [
PluginConst::VIEW_BUTTON_IN_ATTACHMENTSLIST,
];
////////////////////////////////////
// for localhost dev test purpose //
////////////////////////////////////
$config['is_dev_mode'] = false;
$config['dev_mode_file_base_url'] = 'https://4272fd88.ngrok.io/';
I remove problem users settings from RC database - so user can work again on their default plugin settings.
I repeat problem on my current version 1.7. Its begin when I switch off "In the attachments list" in section "Preferred view button layouts"
working setting from users database ...."cloudview";a:3:{s:7:"enabled";b:1;s:19:"view_button_layouts";a:1:{i:0;i:1;}s:12:"viewer_order";s:13:"2,1,3,4,5,6,7";}}"
and broken settings ..."cloudview";a:3:{s:7:"enabled";b:1;s:19:"view_button_layouts";N;s:12:"viewer_order";s:13:"2,1,3,4,5,6,7";}}
I repeat problem on my current version 1.7. Its begin when I switch off "In the attachments list" in section "Preferred view button layouts"
working setting from users database ...."cloudview";a:3:{s:7:"enabled";b:1;s:19:"view_button_layouts";a:1:{i:0;i:1;}s:12:"viewer_order";s:13:"2,1,3,4,5,6,7";}}"
and broken settings ..."cloudview";a:3:{s:7:"enabled";b:1;s:19:"view_button_layouts";N;s:12:"viewer_order";s:13:"2,1,3,4,5,6,7";}}
This is it. Thanks. This bug should've been fixed in the latest 0.6.17
release.
Plugin drop down when user try change settings and message preview not work after this (RC fall with "Ooops something wrong"). Problem exist only on users who try change plugin settings.