Mambo + G2 Issues

d3vlabs

Joined: 2005-05-10
Posts: 100
Posted: Fri, 2005-05-20 06:39

The issues listed here all are related to the G2 Mambo embedding component which is listed on this forum. None of these appear, exist, or happen with normal standalone installation of G2. If you have any more bugs that you found relating to G2 as part of Mambo, feel free to post. If you know solution to any of these please reply:

KNOWN ISSUES

1a. G2 loses integration :

I did the embedded install, everything went fine. activated modules I needed. Did some minor hacks to header/footer, some customizations to the css file, etc... Was about done tweaking when G2 suddent stopped being embedded.

Now when I click the same link within Mambo, it opens up as the full G2 script, taking the whole screen, without the Mambo menus. Basically same as linking to standalone G2 installation.

1b. Temp integration loss:

When I'm not logged in as an administrator, after clicking through the gallery for some time, it throws me out of the embedded gallery into the standalone. Before this happens, the 'top row links', gallery>album>picture, changes into album>picture. After being thrown to the standalone, neither the embedded or the standalone gallery can be accessed. I have to log out of mambo and log in as an administrator, after which everything works fine again.


2. Removing the XHTML/GALLERY2/CODENAME buttons on the bottom:

The code to those is placed within global.tpl where I succesfully removed those. This showed up in my standalone installation, however did nothing for the component. I cleared browsers's cache/mambo's cache and g2's template cache, yet still got nothing. I went through all the files of the integration and wasn't able to find anything linking to those buttons.

3. Permissions for the item menus:

I added custom permissions for the items such as view comments/show url code(development module) and they all work just fine in standalone version, however quite buggy and sometimes don't work at all in the embedded g2.

4a. Slideshow module:

The java slideshow module (needs to be activated) works just fine with standalone G2 however might show some bugs with emebedded installation. Sometimes it will response much slower than usual, sometimes it will show a timeout error and a few times I had an issue with it displaying an error stating that connection to Gallery has failed.

4b.
Error: Server contacted, but Gallery not found at this URL (http://online.trimergence.com/index.php?option=com_gallery&Itemid=26&include=gallery_remote2.php)

I do have both NetPBM and ImageMagik installed, as well as jpegtran. I am able to use the full applet of RemoteGallery to upload images without a problem.

5. Navigational Arrows

By default Mambo will assign an arrow.png to content items listed bulletin style. This is only an issue depending on your template. Sometimes the buttons (arrow.png) will overlap on the links text.

6. Sidebar module for Mambo:

I want to be able to have sidebar only display the items that I need and exclude the extra stuff such as search,members, etc as those are already part of my site.

7. Can't log in to Integrated Mambo:

When I click on Login and enter "admin" and "mypassword" it takes me right back to the same page with Welcome Guest Register Login

8. File deletion after Embedding

I've had quite a few problems with deleting gallery components and even gallery itself when embedded within mambo. I can't delete folders with command line access or ftp. I even can't chmod the files.

9. get items url [geturls] module (user contribututed) does not work in G2 when integrated with Mambo (wrapper). Using the function (link) simply returns you to the originating page.

This list is constantly updated.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-05-20 11:11

d3vlabs, thanks for compiling this list.

@1.
what kind of changes did you apply to G2?

@2.
for embedded G2, edit embedBody.tpl and embedHead.tpl, not global.tpl.

@3.
this has certainly to do with the mambo integration. if permissions work in standalone, they work. if they seem to not work in embedded g2, then something's wrong with how the emApp (mambo) and G2 work together in the respect of activeUserId (::init() call) and sessions.

@4.
let's revise this again after the multisite+embedded+rewrite+cookie change that is coming in the next week.

@5.
i guess this is a css issue between mambo and G2. there are lot's of css issues between xaraya and G2. you'd do good in developing a G2 layout/theme that works good together with mambo css styles (someone has to do it...).
and using the default styles of mambo and G2 isn't the way to get the most of both applications. the default layouts/themes are just examples.

 
woll-knaeuel

Joined: 2005-04-30
Posts: 10
Posted: Thu, 2005-05-26 13:40

@4 I integrated the G2 successfully in Mambo (the main functions work, but now I would like to make everything ok). When I try to open the Slideshow with the Java-Plugin I get the following error:

Error: Server contacted, but Gallery not found at this URL (http://woll-knaeuel.dyndns.org/mambo/main.php)

The correct Mambo URL is: http://woll-knaeuel.dyndns.org/mambo/index.php
The correct gallery URL is: http://woll-knaeuel.dyndns.org/mambo/index.php?option=com_gallery2&Itemid=34

(sorry, but the server is very, very slow, so give him some time if you want to visit the site :wink: )

Perhaps this is a similar problem to 4b. Do you now, where I have to edit the URL manually, or what I have to do to solve this issue?

! ! ! SOLVED ! ! !
I found the solution in another post:
edit the following in SlideShowApplet.inc:
$SlideshowApplet['g2BaseUrl'] = $urlGenerator->getCurrentUrlDir(true);
thanks plop1 and valiant :)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-05-26 13:51

woll-knaeuel, http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=142104#142104

plus: as i said, let's revise that when mindless' change is in cvs.

 
d3vlabs

Joined: 2005-05-10
Posts: 100
Posted: Wed, 2005-06-01 00:05

Here's a screenshot for 5.:

5. Navigational Arrows

By default Mambo will assign an arrow.png to content items listed bulletin style. This is only an issue depending on your template. Sometimes the buttons (arrow.png) will overlap on the links text.

[img]http://d3v.clanhq.net/img/g2_css.gif[/img]

If you get a fix, please post it here.

 
schussldussl

Joined: 2005-06-04
Posts: 5
Posted: Sun, 2005-06-05 13:59

Hm, .css is always not that easy for me. I would search for arrow.png in the .css of your current mambo template.

you should find any declariate like

li od ul {
background-img: arrow.png}

if do not need the arrows at all remove it simply. Otherwise look up, how it is nested.
maybe you can add any tag in front of li or ul.
If you have for example a div"mainnavigation"

you coud write

#mainnavigation li

to ensure that you onloy have this arrows withing your mainnavigation.
Anyhow .css is always tryial and error for. Still searchugn for an integrative tool, where you can just rightclick to get to the responsible source. and recheck changes immeidiately.

goodl uck

 
d3vlabs

Joined: 2005-05-10
Posts: 100
Posted: Sun, 2005-06-05 22:14

will try in the next few hours

 
d3vlabs

Joined: 2005-05-10
Posts: 100
Posted: Mon, 2005-06-06 01:04

FIXED, thank you.

 
snapple

Joined: 2005-07-06
Posts: 18
Posted: Thu, 2005-07-07 01:44

pictures show up in direct url for g2 but not in mambo just box n red X .. any ideas ??

 
slu125

Joined: 2005-07-13
Posts: 2
Posted: Wed, 2005-07-13 23:14

Same problem here. The URLs to the pictures look like this:

http://www.domain.de/mamb/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=11623&g2_serialNumber=3&g2_GALLERYSID=05bcb797b4d79044cb5792c1be15b9d2

For some reason mambo adds an "mamb" to each URL. I can't find, where I could have set this. If I manually remove the mamb from the URL it loads the picture.

I set the full path to Gallery G2 to /var/www/www.domain.de/htdocs/gallery2/
and the relativ path to /gallery2 (default was the full path without the leading "/")

Mambo basedir: http://www.domain.de/mambo (notice the additional "o")
Gallery2 basedir http://www.domain.de/gallery2

Gallery-Version = 2.0-beta-3+ Kern 0.9.31
PHP-Version = 5.1.0b2 apache2handler
Webserver = Apache/2.0.54 (Gentoo/Linux) PHP/5.1.0b2 mod_ssl/2.0.54 OpenSSL/0.9.7e
Datenbank = mysql 4.0.24
Werkzeuge = ArchiveUpload, Exif, Ffmpeg, Gd, ImageMagick, NetPBM, Thumbnail
Betriebssystem = Linux server 2.6.11-gentoo-r11 #1 SMP Sat Jun 18 10:36:32 CEST 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

Except my G2 Integration-into-Mambo-problems the G2 Installation went impressive straight-forward and without the trace of an problem. I was even able to migrate my old G1 pictures (5000+) to G2. The only thing that got lost was the hidden flag for pictures and albums.

Keep up the good work. Thank You!

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Thu, 2005-07-14 03:48

Hi, embed path is not correctly handeld at this moment wait for next relaise, that will be out soon. After i have made some adjustments to make it work with g2 cores 0.9.30+.

grtz,
Michiel

if you can't wait, look into userfuncs.php and go to the config function, there embed path is constructed.

 
slu125

Joined: 2005-07-13
Posts: 2
Posted: Thu, 2005-07-14 14:42

Thank you for your response. I had a look at the file you mentioned, but I don't know enough about Gallery and Mambo internal stuff, so I guess I just wait till the next version is being released.

 
jayntguru

Joined: 2005-08-04
Posts: 3
Posted: Fri, 2005-08-05 00:40

I hope this is the correct spot to post my problem, I'm stumped.

Gallery2 = beta 4 build 9.33
com_gallery2 = 2.06b1
mod_gallery_side = 2.3
mod_gallery_block = 2.3
mambo = 4.5.1a

Gallery2 link = http://gallery2.jayntguru.com/main.php
mambo link = http://jayntguru.com

My issue is that the gallery_side link on the main page displays "your not on the gallery embedded page!!"

gallery_block works fine, and the gallery integration in general works fine, too.

link = http://jayntguru.com/mambo/component/option,com_gallery2

You can see that on the main page the gallery_side does not work, but gallery_block does. When you go to the integrated gallery page, both work. I cannot figure out why.

I've spent several hours on this. SEF is disabled in mambo, although com_gallery2 still gives the warning. They are also disabled in gallery itself.

Ideas?

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-08-05 05:56

jayntguru,

i visitid your page and all seem to be working fine, only the sidebar module will only work when it is used on the same page as the embedded gallery not on any other pages!

regards,
Michiel

 
jayntguru

Joined: 2005-08-04
Posts: 3
Posted: Wed, 2005-08-10 01:14

Using the older versions, it did. :)

Mine only broke when I was trying to help someone out with their sidebar issues, and I realized my gallery2 and sidebar versions were old. I updated mine, and was able to reproduce the problem he was having.

I didn't know that the sidebar shouldn't have worked as I was using it to begin with. For now I have turned it off and I am using the random image block instead.

Thanks!

 
komacke

Joined: 2005-08-16
Posts: 5
Posted: Wed, 2005-08-17 18:21

I hope this is the place to post this. I notice when gallery is run as a component in Mambo (component 2.0.6) that the URL to Windows XP posting is broken. I made a hack so that it works at my site but I'm not sure how to code up the general solution.

I edited modules/publishxp/templates/ItemAddPublishXp.tpl

and at the href I did this:
<a href="http://www.mysite.com/gallery/main.php?g2_view=publishxp.DownloadRegistryFile">

Maybe this is an issue that needs to go to the gallery developers?

Davek

 
buglerroller

Joined: 2005-07-25
Posts: 28
Posted: Fri, 2005-08-19 20:02

What did you edit in your ItemAddPublishXp.tpl?

Do you know of a way to use the xp public video feature in g2?

 
wakebdr

Joined: 2005-09-16
Posts: 8
Posted: Fri, 2005-09-16 18:47

I just installed G2 and migrated my existing galleries from my G1 installation. None of my images are showing up when I view the gallery via mambo. If I view the gallery directly, there are no problems and I'm able to view all images. Anyone know what I may have done wrong?

Gallery version = 2.0 core 1.0.0
PHP version = 4.3.10 cgi
Webserver = Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e
Database = mysql 4.1.13a-Debian_2-log
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, Gd
Operating system = Linux ike 2.4.29-grsec+w+fhs6b+gr0501+nfs+a32+++p4+sata+c4+gr2b-v6.189 #1 SMP Mon Feb 7 13:23:30 PST 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2005-09-16 19:03

What version of the component are you using?

Steve Lineberry

 
wakebdr

Joined: 2005-09-16
Posts: 8
Posted: Fri, 2005-09-16 19:08
shocksll wrote:
What version of the component are you using?

Steve Lineberry

I'm using 2.0.7.

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2005-09-16 21:35

Try 2.08 and check to make sure all your paths are setup correctly in the component settings. Also, can you post the url to your website? Thanks.

Steve Lineberry

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-09-16 21:45

Try this build instead, it is a test build but more then 6 problem users(multiple errors) have repotred back and set this fixed most of there
problems.
2.0.9 test build 2

also could you post your picture urls that are made by the component, if there is a /v/ in it disabled the URL REWRITE and see if this solves it.
If this is the problem then you have not set the htaccess and the embbedded rules incorrectly.

regards,
Michiel

G2+mambo test Site. This my latest version on the test bench.
Get the latest gallery2 core here

 
kris1351

Joined: 2004-02-18
Posts: 8
Posted: Mon, 2005-09-19 23:05

Fatal error: Call to undefined function: addcustomheadtag() in /home/kris1351/public_html/components/com_gallery2/classes/core.php on line 239

I am close to having my integration done, but this error jsut keeps coming up. Any ideas?

http://www.kkeele.com

 
wakebdr

Joined: 2005-09-16
Posts: 8
Posted: Tue, 2005-09-20 00:55
michiel_1981 wrote:
Try this build instead, it is a test build but more then 6 problem users(multiple errors) have repotred back and set this fixed most of there
problems.
2.0.9 test build 2

also could you post your picture urls that are made by the component, if there is a /v/ in it disabled the URL REWRITE and see if this solves it.
If this is the problem then you have not set the htaccess and the embbedded rules incorrectly.

regards,
Michiel

G2+mambo test Site. This my latest version on the test bench.
Get the latest gallery2 core here

I finally got it working by leaving the path to mambo blank. Next question is this: How do I get rid of the gallery header image and title so I have just the albums showing? Do I need to edit the templates for that?

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Tue, 2005-09-20 01:00

Yea, or you can add this to your mambo template's css file

#gsHeader { display : none; }

Steve Lineberry

 
wakebdr

Joined: 2005-09-16
Posts: 8
Posted: Tue, 2005-09-20 03:27

That looks better, thanks.

Sorry for asking so many questions, but is there some place to change the default thumbnail size from 150 to 100?

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Tue, 2005-09-20 10:11

It's in the album settings. It's specific for each album so you'll have to change each one.
Steve Lineberry

 
wakebdr

Joined: 2005-09-16
Posts: 8
Posted: Tue, 2005-09-20 12:53
shocksll wrote:
It's in the album settings. It's specific for each album so you'll have to change each one.
Steve Lineberry

Is it stored in the database somewhere so that I can change them all at one time?

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Tue, 2005-09-20 13:49

I'm not positive, can a g2 dev help out here, but I think it only stores it in the DB if it is different from the default.

Steve Lineberry

 
kris1351

Joined: 2004-02-18
Posts: 8
Posted: Tue, 2005-09-20 18:33

Tried the 2.09 and it still gives me the same error.

http://www.kkeele.com/index.php?option=com_gallery2&Itemid=49

Fatal error: Call to undefined function: addcustomheadtag() in /home/kris1351/public_html/components/com_gallery2/classes/core.php on line 239

 
bmelim

Joined: 2005-09-09
Posts: 8
Posted: Wed, 2005-09-21 09:36

Hi Guys,

I'm not sure if anyone has seen this before but, I have users waiting to purchase some of their photos printed and this is what we get when someone clicks on add photo to cart.

Error (ERROR_BAD_PARAMETER) : /var/www/virtual/cievents.co.uk/gallery/modules/core/classes/../../../modules/checkout/SelectProducts.inc
in modules/core/classes/GalleryView.class at line 158 (gallerystatus::error)
in main.php at line 262 (galleryview::loadview)
in main.php at line 87
in modules/core/classes/GalleryEmbed.class at line 153
in /var/www/virtual/cievents.co.uk/components/com_gallery2/gallery2.php at line 91 (galleryembed::handlerequest)
in /var/www/virtual/cievents.co.uk/index.php at line 182

I've searched around and can't find anything. Could someone point me in the right direction?

Regards

Bruno

 
jabberwocky

Joined: 2005-09-17
Posts: 9
Posted: Wed, 2005-09-21 15:28

Where do i find embedBody.tpl and embedHead.tpl`?
I dont have it in core/templates...

 
xfwayne

Joined: 2004-11-10
Posts: 17
Posted: Thu, 2005-09-22 04:29

I tried to install the component from your site here: http://gallery.menalto.com/node/30712

However, I'm getting this error: Unrecoverable error "PCLZIP_ERR_BAD_FORMAT (-10)"

Upload failed. Installation file not found.

Help. Thank you.

Visit me at:

http://www.HmongVillage.com

 
daniel.fajardo
daniel.fajardo's picture

Joined: 2005-06-08
Posts: 9
Posted: Tue, 2005-10-04 03:53

Hello All.
I just installed G2 (final release) successfully and I'm trying to integrate with my Mambo 4.5.2 installation. I downloaded the mambo component 2.09 and configured with the right paths (I suppose) BUT I cannot make this integration to work. I see "broken links" and if I try to visit any album is not possible.
Here goes my links
GALLERY URL: http://www.danielfajardo.net/gallery2/main.php
Mambo url: http://www.danielfajardo.net/mambo/
I don't have a link yet to the gallery2 but you can access it at this URL :http://www.danielfajardo.net/mambo/index.php?option=com_gallery2
My CONFIG paths are:
Full Path to Gallery G2: /var/www/html/gallery2/
Relative path to Gallery G2: ../gallery2
Path to Mambo: /mambo
Path to Mambo: /mambo

 
divineshadow

Joined: 2005-10-10
Posts: 5
Posted: Mon, 2005-10-10 11:24

Like kris1351 I'm also getting the following message when I try to load G2 from Mambo:

Fatal error: Call to undefined function: addcustomheadtag() in /var/www/html/components/com_gallery2/classes/core.php on line 239

I've been banging my head against a brick wall for a week now trying to get this sorted. Anyone have any ideas what is going wrong?

 
vegiemite

Joined: 2005-10-17
Posts: 5
Posted: Mon, 2005-10-17 23:17

divineshadow,
I responded to your other post on this as well but thought I'd add it here also.

I have run into the same issue. It appears that it stems from using an older (4.5.1a in my case) version of Mambo. My current solution has been to uninstall the latest com_gallery2 component and install 2.0.6 which seems to avoid this error but obviously wont have the latest and greatest features. Version 2.0.6 wasn't available from the 4theweb.nl site, I found it on Mamboforge.

Hope that helps. Ideal solution would be to upgrade Mambo to the latest and use the latest com_gallery2.

 
peteratomic

Joined: 2005-06-30
Posts: 11
Posted: Thu, 2005-12-15 01:53

To solve bug #5...

add

background-image: none !important;

to

.gbBlock li {
padding: 0 0 2px 0;

in the theme.css

 
peteratomic

Joined: 2005-06-30
Posts: 11
Posted: Thu, 2006-01-12 19:34

Hope this is the right place to post. (This is the most confusing forum I've ever seen since all of the topics are mushed together.)

I upgraded my Gallery 2 and everything is working fine except for the Random Image module. Here's the error code I get:

Warning: main(components/com_gallery2/userfuncs.php): failed to open stream: No such file or directory in /usr/www/users/culture/oaa/cms/modules/mod_gallery_block.php on line 9

Fatal error: main(): Failed opening required 'components/com_gallery2/userfuncs.php' (include_path='.:/usr/local/lib/php') in /usr/www/users/culture/oaa/cms/modules/mod_gallery_block.php on line 9

Anyone have an idea?

 
Radianation
Radianation's picture

Joined: 2005-11-14
Posts: 14
Posted: Tue, 2006-08-22 16:32

None of my users can login after installing the bridge unless they use the "forgot password" function to reset their password. Also, some of the users did not sync properly. This appears to be a problem with the user sync feature in the bridge component.

Joomla = 1.0.10
G2 Bridge = 2.0.13
Gallery version = 2.1.1 core 1.1.0.1
PHP version = 4.4.1 isapi
Webserver = Microsoft-IIS/5.0
Database = mysqlt 4.0.18-max-nt, lock.system=database
Toolkits = Exif, Thumbnail, Gd
Acceleration = none, none
Operating system = Windows NT 5.0 build 2195

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Tue, 2007-06-26 17:16

Hi all

One of my users have a funny problem, where the gallery is being pushed below the menu, as can be seen here: http://www.lhandmade.co.za/index.php?option=com_gallery2&Itemid=32

This template was originally used on a Mambo installation, but after running into problems with Mambo upgrade via Fantastico, we decided to install Joomla, transferred all the content, installed the bridge, and then noticed that the gallery doesn't appear next to the menu like other content, but rather below it.

Any suggestions?

--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
mr.rangr

Joined: 2008-06-17
Posts: 1
Posted: Wed, 2008-06-18 13:03

I'm unable to download large zipcart files. I do not have this problem when I access the gallery standalone.

When embedded, I can download 15 pictures at 21.5 megs total, and 29 pictures at 4.3 megs total. But when I add a 16th picture to the first group, the G2cart file is 0 bytes.

PHP Version: 5.2.6
Web Server: Apache/1.3.37 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.8 mod_ssl/2.8.22 OpenSSL/0.9.7e
Web Server to PHP interface: cgi-fcgi
Joomla! Version: Joomla! 1.5.3 Production/Stable [ Vahi ] 22-April-2008 22:00 GMT
Gallery: 2.2.4
Zipcart 1.0.8
G2Bridge 2.1

Update: I found that the zipfile is being created in the g2data's tmp directory. However, Gallery acts like it hasn't properly handed me the zipfile because a) it's zero bytes, and b) the zipfile stays in the tmp directory even after the bad download.