Opened 3 years ago
Closed 3 years ago
#1486872 closed Bugs (fixed)
The Plugin Path is wrong
| Reported by: | andre_2 | Owned by: | |
|---|---|---|---|
| Priority: | 4 | Milestone: | 0.5-beta |
| Component: | Plugin API | Version: | 0.4.2 |
| Severity: | normal | Keywords: | |
| Cc: | rafael@… |
Description
The path to the plugins as set in rcube_plugin_api.php is wrong and resolute in an error:
PHP Error: Failed to load plugin file /var/www/roundcube/pluginsandre_test1/andre_test1.php in /data/roundcubemail-0.4-beta/program/include/rcube_plugin_api.php on line 106 (GET /roundcube/)
Line 32:
public $url = 'plugins/';
and Line 85:
$fn = $plugins_dir->path . DIRECTORY_SEPARATOR . $plugin_name . DIRECTORY_SEPARATOR . $plugin_name . '.php';
give a double slash in the path to the file as you see in the error message.
Change History (5)
comment:1 Changed 3 years ago by alec
- Resolution set to fixed
- Status changed from new to closed
comment:2 follow-up: ↓ 3 Changed 3 years ago by andre_2
The Server is running under Debian 5.0.
comment:3 in reply to: ↑ 2 Changed 3 years ago by andre_2
comment:4 Changed 3 years ago by rafael_K.
- Cc rafael@… added
- Milestone changed from 0.4-stable to later
- Resolution fixed deleted
- Status changed from closed to reopened
- Version changed from 0.4-beta to 0.4.2
Hi,
similar BUG is in class rcube_plugin
...
/
- Default constructor. */
public function construct($api) line 38
{
$this->ID = get_class($this);
$this->api = $api;
$this->home = $api->dir.DIRECTORY_SEPARATOR.$this->ID;BUG or NOT? one " DIRECTORY_SEPARATOR " is unwanted
$this->urlbase = $api->url . $this->ID . '/';
die($this->home); demonstrates that
}
...
give a double slash in the path to the file
/var/www/webxxx/html/roundcubemail-0.4.2/pluginspluginname
comment:5 Changed 3 years ago by alec
- Milestone changed from later to 0.5-beta
- Resolution set to fixed
- Status changed from reopened to closed
Fixed in [cdf1ae00].

Fixed in [d5d96804]. What OS are you using? Works for me on Linux.