• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Fileupload element using ajax generates js error on editing row

lcollong

FabriKant d'applications web
Hi,

I setup a test case very simple to reproduce the error.
A standard list with id/date and a fileupload element with default setup except using ajax upload (defaut values).

On new record, every thing is working except the console shows an error on closing the popup which shows up with the resul image after the file being uploaded. Here is the error :
JavaScript:
no content option set for window.html
window.js?bust=1570096650:594 Uncaught TypeError: Cannot read property 'apply' of undefined
    at Object.close (window.js?bust=1570096650:594)
    at Object.e.extend.$owner (mootools-core.js?cce…5b6f322426d312e1:38)
    at HTMLInputElement.<anonymous> (fileupload.js?bust=1570096650:1250)
    at HTMLInputElement.dispatch (jquery.min.js?ccef4e…25b6f322426d312e1:2)
    at HTMLInputElement.v.handle (jquery.min.js?ccef4e…25b6f322426d312e1:2)

Closing the form and showing the list with the image works a expected.
Then if you want to edit the record, it shows a popup with one of the already loaded image (why ?) and the console throws plenty of errors :

Code:
JQMIGRATE: Migrate is installed, version 1.4.1
utils.js?bust=1570096402:13 no content option set for window.html
window.js?bust=1570096402:594 Uncaught TypeError: Cannot read property 'apply' of undefined at Object.close (window.js?bust=1570096402:594) at Object.e.extend.$owner (mootools-core.js?cce…5b6f322426d312e1:38) at Object.<anonymous> (fileupload.js?bust=1570096402:983) at mootools-core.js?cce…5b6f322426d312e1:21
2
window.js?bust=1570096402:609 Uncaught TypeError: Cannot read property 'apply' of undefined at Object.open (window.js?bust=1570096402:609) at Object.e.extend.$owner (mootools-core.js?cce…5b6f322426d312e1:38) at Object.Fabrik.getWindow (window.js?bust=1570096402:20) at Object.showWin (fileupload.js?bust=1570096402:1357) at Object.e.extend.$owner (mootools-core.js?cce…5b6f322426d312e1:38) at Object.<anonymous> (fileupload.js?bust=1570096402:980) at mootools-core.js?cce…5b6f322426d312e1:21
window.js?bust=1570096402:594 Uncaught TypeError: Cannot read property 'apply' of undefined at Object.close (window.js?bust=1570096402:594) at Object.e.extend.$owner (mootools-core.js?cce…5b6f322426d312e1:38) at HTMLInputElement.<anonymous> (fileupload.js?bust=1570096402:1250) at HTMLInputElement.dispatch (jquery.min.js?ccef4e…25b6f322426d312e1:2) at HTMLInputElement.v.handle (jquery.min.js?ccef4e…25b6f322426d312e1:2)

Setting "html5" or "html4" alone as engine in the ajax tab of the element setup give the same result
Using "silverlight" , "flash" or "browserplus" engines produce this error :

Code:
fileupload.js?bust=1570095968:473 Uncaught TypeError: Cannot read property 'each' of undefined
    at plupload.Uploader.<anonymous> (fileupload.js?bust=1570095968:473)
    at plupload.Uploader.trigger (plupload.js?bust=1570095968:1327)
    at callNextInit (plupload.js?bust=1570095968:1199)
    at plupload.js?bust=1570095968:1194
    at Object.init (plupload.silverlight…bust=1570095968:187)
    at callNextInit (plupload.js?bust=1570095968:1185)
    at plupload.Uploader.init (plupload.js?bust=1570095968:1206)
    at Object.watchAjax (fileupload.js?bust=1570095968:556)
    at Object.e.extend.$owner (mootools-core.js?cce…5b6f322426d312e1:38)
    at Object.initialize (fileupload.js?bust=1570095968:31)

The popup on edit is disturbing (specially on smartphone) and it seems that the js errors prevent some others codes to run properly on the "real site".

I've updated the Joomla to 3.9.12 and the extensions. Also did a full github command using ssh wget.
I've driven the test on the back-end with an untouched template (isis).

But it does the same on front-end : https://dev.periscolo.net/index.php?option=com_fabrik&view=list&listid=54&Itemid=209

Are these errors present on other sites ?
Is the popup opening on edit form load showing one a the already loaded images the expected behavior ?

Thanks
 
Yes.

We are also facing this issue of Popup on Edit which is quite annoying, specially on Smart Phone since many months.
 
Yes you are right. I'm turning it off, but still showing a picture preview. By the way, although it is more, it does not show more than 12.13 pictures during the update. You can see in picture. Please look at last picture.

How can I handle?

upload_2020-6-3_0-15-57.png
 
Yes, but my main problem is why it doesn't list all the pictures. There is no problem uploading pictures but when I want to update it gets truncated with errors as you see at below.


upload_2020-6-3_0-49-47.png
 
Last edited:
Hi All,
I'm still reviewing but I couldn't find anything. What can I do to detail the error?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top