Page 1 of 3
Javascript error at Multiple Upload
Posted: 22 Sep 2013, 01:36
by filipetorres
Hi,
using Joomla 2.5.14, after to update Phoca Gallery to 3.2.6 version, in backend,
Images > Multiple Add display the follwing javascript error in
jquery.ui.plupload.js file:
Code: Select all
Uncaught ReferenceError: plupload is not defined
Thanks in advance.
Filipe Torres
Re: Javascript error at Multiple Upload
Posted: 22 Sep 2013, 20:23
by Jan
Hi, try to reinstall the component and try to see the javascript console if there is no other javascript error, which can then cause this problem

... testing now, no such problem
Jan
Re: Javascript error at Multiple Upload
Posted: 23 Sep 2013, 22:43
by filipetorres
Jan wrote:Hi, try to reinstall the component and try to see the javascript console if there is no other javascript error, which can then cause this problem

... testing now, no such problem
Jan
Hi Jan,
I reinstalled Phoca Gallery and the javascript console show this errors:
Code: Select all
Uncaught ReferenceError: plupload is not defined
jquery.ui.plupload.js:1
(anonymous function)
jquery.ui.plupload.js:1
---------------------------------------------------------------------------------------
Uncaught TypeError: Cannot read property 'id' of undefined
index.php?option=com_phocagallery&view=phocagallerym&layout=edit:302
(anonymous function)
index.php?option=com_phocagallery&view=phocagallerym&layout=edit:302
g.extend.trigger
plupload.js:2
v
plupload.js:2
(anonymous function)
plupload.js:2
j
plupload.flash.js:1
Re: Javascript error at Multiple Upload
Posted: 24 Sep 2013, 22:44
by Jan
Hi, not sure what layout=edit, etc. means? Testing now the plupload, no problem there

Try to check if you are running some specific system plugin, which can somehow influence it - I am testing it with standard joomla and phoca gallery - on different servers, get no problem there

really no idea
Jan
Re: Javascript error at Multiple Upload
Posted: 09 Oct 2013, 16:15
by filipetorres
Jan wrote:Hi, not sure what layout=edit, etc. means? Testing now the plupload, no problem there

Try to check if you are running some specific system plugin, which can somehow influence it - I am testing it with standard joomla and phoca gallery - on different servers, get no problem there

really no idea
Jan
Hi Jan,
I tested in a fresh Joomla 2.5 installation (localhost) and Phoca Gallery 2.1.9. When I go to
Phoca Gallery > Images > Multiple Add shows this error in javascript console:
Code: Select all
Uncaught ReferenceError: plupload is not defined jquery.ui.plupload.js:1
The javascript code loaded in this page (in header tag):
Code: Select all
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/components/com_phocagallery/assets/jquery/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="/components/com_phocagallery/assets/plupload/jquery.ui.plupload/jquery.ui.plupload.js" type="text/javascript"></script>
<script src="/components/com_phocagallery/assets/plupload/plupload.js" type="text/javascript"></script>
<script src="/components/com_phocagallery/assets/plupload/plupload.flash.js" type="text/javascript"></script>
<script src="/components/com_phocagallery/assets/plupload/jquery.plupload.queue/jquery.plupload.queue.js" type="text/javascript"></script>
<script src="/media/system/js/tabs.js" type="text/javascript"></script>
Re: Javascript error at Multiple Upload
Posted: 13 Oct 2013, 22:25
by Jan
Hi, try to do this edit:
Go to file:
administrator/components/com_phocagallery/libraries/phocagallery/file/fileuploadmultiple.php
cca line 40
FROM:
Code: Select all
$document->addScript(JURI::root(true).'/components/com_phocagallery/assets/plupload/jquery.plupload.queue/jquery.ui.plupload.js');
TO:
Code: Select all
$document->addScript(JURI::root(true).'/components/com_phocagallery/assets/plupload/jquery.ui.plupload/jquery.ui.plupload.js');
Jan
Re: Javascript error at Multiple Upload
Posted: 16 Oct 2013, 14:58
by filipetorres
Hi Jan,
observe that the path to jquery.ui.plupload.js it's already correct.
Any other sugestion?
Re: Javascript error at Multiple Upload
Posted: 17 Oct 2013, 23:51
by Jan
Hmmm, then no idea what other problem there can be, I have checked the link ordering and seems everything is Ok there

Will do more tests there.
Re: Javascript error at Multiple Upload
Posted: 18 Oct 2013, 06:14
by filipetorres
Please, take a simple test to get the error:
1. Install a fresh Joomla 2.5 (localhost);
2. Install Phoca Gallery 2.1.9;
3. Go to Components > Phoca Gallery > Images > Multiple Add;
4. Open javascript console to see the error.
Re: Javascript error at Multiple Upload
Posted: 21 Oct 2013, 19:14
by Jan
Hi, on Joomla! 2.5 you need to install Phoca Gallery 3.x
Jan