Plugins manual installation?
Tue, 02/09/2010 - 07:55
Hey, I would like to know if there is possible to install the plugins manully. When I use the manager I get error messages.
I saw this folder
plugin.install in it is a readme.txt that says:
Just drop plugin .zip files into this directory, and run the Plugin Auto-Installer.
The plugins from this folder will be automatically installed.
Where is this auto-installer?
Basiclly I just want to install some plugins not using the pluginmanager.
best regards!

There IS a way to install plugins not through the visual user interface, but it will still most likely give you an error message.
That mechamism is designed for "unattended" installation of multiple plugins.
Here's the tutorial: http://examples.qcu.be/assets/_core/php/examples/plugins/unattended.php.
What is the detailed error message you're seeing? We would really want to investigate and fix that for the next QCubed release.
thanks Alex will try that.
here is the error:
I think the tmp path is wrong and or in chmod 755 or something.
edit: tried the auto-installer same error tho :(.
is_dir() [<a href='function.is-dir'>function.is-dir</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/xc50231/:/tmp:/usr/local/lib/php/)
Error Type: E_WARNING
Source File: /home/xc50231/domains/e-handel.pre.se/public_html/qcubed/includes/qcubed/_core/framework/QPluginInstallerBase.class.php Line: 82
Line 77: $arrFolderSteps = explode("/", $strDestinationPath);
Line 78: $cumulativePath = "";
Line 79: for ($i = 0; $i < sizeof($arrFolderSteps) - 1; $i++) {
Line 80: $step = $arrFolderSteps[$i];
Line 81: $cumulativePath .= $step . "/";
Line 82: if (!is_dir($cumulativePath)) {
Line 83: mkdir ($cumulativePath);
Line 84: $result .= "Created deployment destination directory " . $cumulativePath . "\r\n";
Line 85: }
Line 86: }
Line 87:
Call Stack:
#0 (): QcodoHandleError()
#1 /home/xc50231/domains/e-handel.pre.se/public_html/qcubed/includes/qcubed/_core/framework/QPluginInstallerBase.class.php(82): is_dir()
#2 /home/xc50231/domains/e-handel.pre.se/public_html/qcubed/includes/qcubed/_core/framework/QPluginInstaller.class.php(88): QPluginInstallerBase::writeFileHelper()
#3 /home/xc50231/domains/e-handel.pre.se/public_html/qcubed/includes/qcubed/_core/framework/QPluginInstaller.class.php(58): QPluginInstaller::deployFilesForNewPlugin()
#4 /home/xc50231/domains/e-handel.pre.se/public_html/qcubed/assets/_core/php/_devtools/plugin_edit.php(98): QPluginInstaller::installFromExpanded()
#5 /home/xc50231/domains/e-handel.pre.se/public_html/qcubed/includes/qcubed/_core/base_controls/QFormBase.class.php(724): PluginEditForm->btnInstall_Click()
#6 /home/xc50231/domains/e-handel.pre.se/public_html/qcubed/includes/qcubed/_core/base_controls/QFormBase.class.php(852): QFormBase->TriggerMethod()
#7 /home/xc50231/domains/e-handel.pre.se/public_html/qcubed/includes/qcubed/_core/base_controls/QFormBase.class.php(261): QFormBase->TriggerActions()
#8 /home/xc50231/domains/e-handel.pre.se/public_html/qcubed/assets/_core/php/_devtools/plugin_edit.php(195): QFormBase::Run()
Variable Dump: Show/Hide
Got it. I think I understand what's causing this. Which version of QCubed are you running?
running version 1.1.1, how do i fix it? :)
open_basedir basically means files outside the root folder are being changed, its a safe mode protection. I'm sure you can find ways to fix this by searching for open_basedir..
The issue here is that QCubed is trying to verify the existence of every folder, starting from root, in a given path. It's failing when it tries to check for the existence of folders it's not allowed to access.
Potential solutions here would be to:
- Turn off Safe Mode in php.ini
- Add the relevant folders to open_basedir.
Does anyone here have experience running QCubed with PHP Safe Mode turned on? Is this something developers do frequently? I personally never worked with it.
Sounds like a bug.
We had something very similar in QCache:
http://trac.qcu.be/projects/qcubed/ticket/387
I suggest we make a ticket to switch the plugin installer to use recursive mkdir as well.
Well I don't know, I'm currently running this on a shared host. don't have access to the php.ini, security resons. If I would install on a local server and then copy it over, would that work?.
Did some searching for open_basedir. couldn't find any fix for it. :(
Ticket created:
http://trac.qcu.be/projects/qcubed/ticket/468
I'm using QCubed Version 2.0.1. When I try to use the Plugin Installer to uninstall a plugin I'm getting an error because I use Subversion and there are .svn folders which the installer cannot delete.
Is there a work around for this?
Yes, plugin manager doesn't play nice with subversion. I've had the same issue many times. The only solution is to fix things manually (e.g. move the .svn folder out of the way, delete the plugin, then fix svn). Major pain...