Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

"An unknown error occurred" when saving flow #110

Open
reneighbor opened this issue Feb 18, 2011 · 15 comments
Open

"An unknown error occurred" when saving flow #110

reneighbor opened this issue Feb 18, 2011 · 15 comments

Comments

@reneighbor
Copy link

Using 0.90-0-g0481e45, 5.2.6 on DV from Media Temple.

When saving a new flow, we get error message "An unknown error occurred. Please contact your OpenVBX provider. Unable to complete request."

Has anyone else seen this before?

@crr-zz
Copy link

crr-zz commented Feb 19, 2011

I was the one getting this error. More info...the error only occurred when using a subaccount in settings / twilio account. Same config, using a parentaccount, no problem.

@Gipetto
Copy link
Contributor

Gipetto commented Jul 8, 2011

I could not reproduce on 0.90 or 0.91. Are you still having this issue?

@andrewwatson
Copy link
Contributor

I'm guessing this was related to the trailing slash on the OpenVBX.home issue...

@Gipetto
Copy link
Contributor

Gipetto commented Jul 8, 2011

I'll be working on normalizing all of those in the near future and standardizing on OpenVBX.home not having a trailing slash.

@Gipetto
Copy link
Contributor

Gipetto commented Jul 20, 2011

The next version of OpenVBX will contain a fix that normalizes OpenVBX.home and hopefully fixes this issue.

@infinimedia
Copy link

Anyone know if this was fixed? I'm still getting this issue.

@Gipetto
Copy link
Contributor

Gipetto commented Sep 12, 2011

This should be wrapped up. What version of OpenVBX are you getting the issue on?

@infinimedia
Copy link

The latest one, I downloaded the zip this morning.

@brianbreslin
Copy link

@Gipetto any ideas?

@Gipetto
Copy link
Contributor

Gipetto commented Sep 19, 2011

I'm see some other things that might be related. Still debugging.

@Gipetto
Copy link
Contributor

Gipetto commented Sep 20, 2011

I think it might be in OpenVBX/controllers/flows.php

Starting on line 226 you have:

if (!$this->config->item('use_unminimized_js')) {
    $this->template->add_js('flows/scripts', 'dynamic');
}
if (!$this->config->item('use_unminimized_css')) {
    $this->template->add_css('flows/styles', 'dynamic');
}

The add_js & add_css lines are problematic because I think site_url() within the add_js() & add_css() methods is being schizophrenic in some situations. I think they should look like this (and this works on my machine, though I am in the process of retooling this functionality a bit, so I'm similar, but not quite ;) ):

if (!$this->config->item('use_unminimized_js')) {
    $this->template->add_js(site_url('flows/scripts'), 'absolute');
}
if (!$this->config->item('use_unminimized_css')) {
    $this->template->add_css(site_url('flows/styles'), 'link');
}

Can you try making this edit and see if it helps clear up your issue?

@brianbreslin
Copy link

Hey gipetto, I added the modification, but am still getting the same error:
An unknown error occurred. Please contact your OpenVBX provider. Unable to complete request: http://xyz1234.com/index.php/flows/edit/2

@Gipetto
Copy link
Contributor

Gipetto commented Dec 1, 2011

I'm gonna guess that this is related to other issues with hosts that don't support the HTTP 'PUT' and 'DELETE' methods.
I'm putting this on the books to change the Flow deletion routine to use 'POST' with a 'delete' action variable. Its less HTTP-ish, but its also a hell of a lot more compatible.

@brianbreslin
Copy link

was this ever fixed?

@Gipetto
Copy link
Contributor

Gipetto commented Dec 27, 2011

No, and the root cause of issue still hasn't been completely nailed down.
I'm hoping to get the change I noted on Nov. 30 tested soon, but there's still no proof that it'll fix anything.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants