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

Undefined scheme #7

Open
azrek opened this issue Feb 29, 2016 · 1 comment
Open

Undefined scheme #7

azrek opened this issue Feb 29, 2016 · 1 comment
Assignees
Labels

Comments

@azrek
Copy link

azrek commented Feb 29, 2016

Hi,

After installing the aretefact and it's blocks, I get this error in the /artefact/cloud/ (Cloud Services menu) screen:

[WAR] 1c (artefact/cloud/blocktype/owncloud/lib.php:221) Undefined index: scheme
Call stack (most recent first):

log_message("Undefined index: scheme", 8, true, true, "/var/www/demo/maharademo/htdocs/artefact/cloud/blo...", 221) at /var/www/demo/maharademo/htdocs/lib/errors.php:441
error(8, "Undefined index: scheme", "/var/www/demo/maharademo/htdocs/artefact/cloud/blo...", 221, array(size 5)) at /var/www/demo/maharademo/htdocs/artefact/cloud/blocktype/owncloud/lib.php:221
PluginBlocktypeOwncloud::get_service_consumer() at /var/www/demo/maharademo/htdocs/artefact/cloud/blocktype/owncloud/lib.php:235
PluginBlocktypeOwncloud::service_list() at Unknown:0
call_user_func_array(array(size 2), array(size 0)) at /var/www/demo/maharademo/htdocs/lib/mahara.php:1705
call_static_method("PluginBlocktypeOwncloud", "service_list") at /var/www/demo/maharademo/htdocs/artefact/cloud/index.php:30

It's failing on this line:
$service->ssl = ($url['scheme'] == 'https' ? true : false);

This is on my Dev machine so no https. Should probably check for:

$service->ssl = (isset($url['scheme']) && $url['scheme'] == 'https' ? true : false);

Thanks,
Ghada

@anzeljg anzeljg added the bug label Mar 1, 2016
@anzeljg
Copy link
Collaborator

anzeljg commented Mar 1, 2016

I don't think this is related to https or http. When you install the blocktype the WebDAV URL of your OwnCloud isn't set at all. I've missed that, since the code in the line in question was changed after I've already set my WebDAV URL. This change was fix for the bug #4.

@anzeljg anzeljg self-assigned this Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants