Javascript error at Multiple Upload

Phoca Gallery - image gallery extension
filipetorres
Phoca Member
Phoca Member
Posts: 15
Joined: 06 Mar 2013, 06:38

Javascript error at Multiple Upload

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Javascript error at Multiple Upload

Post 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 :idea: ... testing now, no such problem :idea:

Jan
If you find Phoca extensions useful, please support the project
filipetorres
Phoca Member
Phoca Member
Posts: 15
Joined: 06 Mar 2013, 06:38

Re: Javascript error at Multiple Upload

Post 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 :idea: ... testing now, no such problem :idea:

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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Javascript error at Multiple Upload

Post by Jan »

Hi, not sure what layout=edit, etc. means? Testing now the plupload, no problem there :idea: 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 :idea: really no idea :-(

Jan
If you find Phoca extensions useful, please support the project
filipetorres
Phoca Member
Phoca Member
Posts: 15
Joined: 06 Mar 2013, 06:38

Re: Javascript error at Multiple Upload

Post by filipetorres »

Jan wrote:Hi, not sure what layout=edit, etc. means? Testing now the plupload, no problem there :idea: 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 :idea: 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>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Javascript error at Multiple Upload

Post 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
If you find Phoca extensions useful, please support the project
filipetorres
Phoca Member
Phoca Member
Posts: 15
Joined: 06 Mar 2013, 06:38

Re: Javascript error at Multiple Upload

Post by filipetorres »

Hi Jan,
observe that the path to jquery.ui.plupload.js it's already correct.
Any other sugestion?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Javascript error at Multiple Upload

Post by Jan »

Hmmm, then no idea what other problem there can be, I have checked the link ordering and seems everything is Ok there :idea: Will do more tests there.
If you find Phoca extensions useful, please support the project
filipetorres
Phoca Member
Phoca Member
Posts: 15
Joined: 06 Mar 2013, 06:38

Re: Javascript error at Multiple Upload

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Javascript error at Multiple Upload

Post by Jan »

Hi, on Joomla! 2.5 you need to install Phoca Gallery 3.x

Jan
If you find Phoca extensions useful, please support the project
Post Reply