It is currently Wed Aug 22, 2018 5:45 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Dec 10, 2013 8:57 pm 
Offline

Joined: Tue Dec 10, 2013 8:10 pm
Posts: 2
Hi!
I'm trying to use AG for my website but I have several issues.
The main issue is this:
I have a page (menu item type: article->category blog) in witch I would put X articles, all with the same basic template (the galleries in the articles will have the same template too).
If I put only one article, the page is "fine" (it cuts all the left and the bottom borders, but I think this is another issue related to the template) as you can see there: link
If I put two articles (link) the page has some "strange" layout and no more picture displayed.
Moreover the popup engine doesn't work (if I click on any picture there is no popup).

Can you help me to solve this?

ps. I have the same problem also with the default template.


Top
 Profile  
 
 Post subject: 2 articles with AG in the same page: no pictures displayed!
PostPosted: Tue Dec 10, 2013 8:57 pm 
Top  
PostPosted: Mon Dec 16, 2013 10:15 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
I have some strange behavior, when I open second link (one that should have more galleries).
Firefox CPU load jumps to 100% and I cannot do anything.
In Chrome I managed to see this:
Code:
Uncaught RangeError: Maximum call stack size exceeded jquery.galleryview-2.1.1.js:1
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
150
Uncaught RangeError: Maximum call stack size exceeded jquery.galleryview-2.1.1.js:1
62
Uncaught RangeError: Maximum call stack size exceeded jquery.galleryview-2.1.1.js:1
Uncaught RangeError: Maximum call stack size exceeded jquery.galleryview-2.1.1.js:1
20
Uncaught RangeError: Maximum call stack size exceeded

I'm not sure what is the cause for this error, but it seems to be stuck in the infinite loop in this part of code:
Code:
   /*
   **   getPos(jQuery element
   **      Calculate position of an element relative to top/left corner of gallery
   **      If the gallery bounding box itself is passed to the function, calculate position of gallery relative to top/left corner of browser window
   **       RETURNS - JSON {left: int, top: int}
   */
      function getPos(el) {
         var left = 0, top = 0;
         var el_id = el.id;
         if(el.offsetParent) {
            do {
               left += el.offsetLeft;
               top += el.offsetTop;
            } while(el = el.offsetParent);
         }
         //If we want the position of the gallery itself, return it
         if(el_id == id) {return {'left':left,'top':top};}
         //Otherwise, get position of element relative to gallery
         else {
            var gPos = getPos(j_gallery[0]);
            var gLeft = gPos.left;
            var gTop = gPos.top;
            
            return {'left':left-gLeft,'top':top-gTop};
         }
      };
inplugins/content/admirorgallery/admirorgallery/templates/galleryView/jquery.galleryview-2.1.1.js

In the past we had problems with more GalleryView template on the same page, but it turned out it was ID problem, that prevented the gallery for properly generating. But this is new to me.

_________________
Help Admiror Gallery become even better,
give us a review on JED


Top
 Profile  
 
PostPosted: Mon Dec 16, 2013 10:16 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
What happens if you use classic instead of GalleryView? Can you change and let me check?

_________________
Help Admiror Gallery become even better,
give us a review on JED


Top
 Profile  
 
PostPosted: Mon Dec 16, 2013 6:54 pm 
Offline

Joined: Tue Dec 10, 2013 8:10 pm
Posts: 2
Vasiljevski wrote:
What happens if you use classic instead of GalleryView? Can you change and let me check?


check yourself. It seems ok! :o
And now, also the popup function works!


Top
 Profile  
 
PostPosted: Thu Dec 19, 2013 11:32 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
Probably some JavaScript file causes GalleryView to break. It goes into infinite loop and everything is lost :)

You can further check the cause of this by debugging JS files you include on your page, or use classic template :)

_________________
Help Admiror Gallery become even better,
give us a review on JED


Top
 Profile  
 
 Post subject: Re: 2 articles with AG in the same page: no pictures display
PostPosted: Thu Dec 19, 2013 11:32 am 
Top  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at http://www.joomla.org/.


Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group