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

A connection problem occured #736

Sogl opened this Issue Feb 16, 2018 · 2 comments


None yet
2 participants

Sogl commented Feb 16, 2018


I'm trying to unload much data into XLSX file but my script stops working with error "A connection problem occured".

Found it in Connection.js file:

if (options.errorText) {
            errorText = options.errorText;
            errorMsg = options.errorText;
        } else if (r && r.exception) {
            errorMsg = '<pre>'+r.exception.join('\n')+'</pre>';
            errorMsgTitle = 'PHP Exception';
        } else if (r && r.error) {
            errorMsg = r.error;
            errorMsgTitle = 'PHP Exception';
        } else {
            errorMsg = trlKwf("A connection problem occured.");
            errorText = null;

I also tried these line in php without success:

set_time_limit(600); // 10 minutes

How to increase connection time?
Chrome Network screen:

KWF v. 3.9

@nsams pls help 😉


This comment has been minimized.


Sogl commented Feb 18, 2018

Ok, I found how to increase this thing, need to set timeout to Ajax request:

    url: controllerUrl + '/my-controller-func',
    params: Ext2.apply(baseParams, form.getForm().getValues()),
    timeout: 600000, // 10 minutes

But this line (adds +1 line to excel file) freeze my unloading more than 3 minutes:

$firstSheet->insertNewRowBefore($rowNumber + 1, 1);

This comment has been minimized.


nsams commented Feb 20, 2018

Yes, that is the correct fix, ajax requests timeout after 30 seconds by default.

Now why the request is that slow is a completely different topic, depending on what the action does. I would try reproducing the issue with phpexcel (or whatever you use) only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment