Mambo / Joomla! + G2

drhiii

Joined: 2003-04-27
Posts: 397
Posted: Tue, 2005-08-30 10:17

Thank you michiel_1981. I figured that out and it installed as a component, but I left a message in the thread on your system that like a few others, it didn't populate the Sql data base....

No prob. I can see this is a great integration and will await your tweak as you indicated on your site.

Tx for your response. Very much appreciated.

michiel_1981 wrote:
drhiii,

use the component installer not module installer!
unzip maintaining folder structure and upload to tmp directory and piont the component installer there! Last time i did that was 6 months ago so i might be wrong.

regards,
Michiel

 
daveS_84

Joined: 2005-08-31
Posts: 1
Posted: Wed, 2005-08-31 08:31

Hi! The following error has occured, when I've installed Gallery2 Block module. I'm using Mambo 4.5.2.3 and com_gallery2_2.0.6 component.

Fatal G2 error
Here's the error from G2:
Error (ERROR_CONFIGURATION_REQUIRED)

* in modules/core/classes/GalleryEmbed.class at line 760 (gallerystatus::error)
* in /home/www/stranke/twirling/twirling.si/www/modules/mod_gallery_block.php at line 76 (galleryembed::getimageblock)
* in /home/www/stranke/twirling/twirling.si/www/includes/frontend.html.php at line 264
* in /home/www/stranke/twirling/twirling.si/www/includes/frontend.php at line 122 (modules_html::module2)
* in /home/www/stranke/twirling/twirling.si/www/templates/glosy_paint_pink/index.php at line 78
* in /home/www/stranke/twirling/twirling.si/www/index.php at line 204

Whats the problem? Thanks for help!

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-08-31 09:51

daveS_84,

you haven't installed the image block module in gallery2 or you have to activate it!

regards,
Michiel

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Thu, 2005-09-08 17:38

Quick question,

I have G2 intergrated with Mambo via the Component.

My problem is the albums created when clicking on the albums gives you a page cannot be displayed.

I see that the URL is not even the correct one, it suppose to be www.test.com/gallery2/v/album1 and it's going to www.test.com/mambo/v/album1

1) where is this v comming from? I dont have such a directory.
2) why is it putting in mambo, when the gallery is not under the mambo folder but on the same level?!?
./
../
mambo/
gallery2/
gallery2/g2data

3) what is that g2data/ and why should I put it under /home/me/g2data, instead of /home/me/www/gallery2/g2data ????

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Thu, 2005-09-08 18:28

you need to turn off the short urls module in gallery2

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Thu, 2005-09-08 18:53

thanks !

Now it works.

1 more question, when accessing gallery2 via the Mambo component, i click on Site Admin, although, there is no link to add albums... When I click on Gallery (top left corner, i go to the gallery itself.

But if I access Gallery2 via standalone, login to Site Admin, and press gallery (top left corner, it brings up a left side bar to add albums....?!?

Is this normal that you can only add albums via the standalone Gallery2 and not via the Gallery component?

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Thu, 2005-09-08 20:57

Oups !

I think there's something wrong..... When I sync'ed the users and groups from the Gallery2 Component, when I go to the Gallery2 users, I dont see there usernames... i see this:

Edit User (by list)
Username Action
16132382c21299b781dfaf024b541e4d edit delete
2b325912e11d188c6329099dac2a0a08 edit delete
50d27884d0d809f3d463b8a1c48ff8c6 edit delete
5683df776e946a22676513412910817e edit delete
5a690d842935c51f26f473e025c1b97a edit delete
75d5e36b9a1934cc6a3af189408ee1b3 edit delete
d16509f6eaca1022bd8f28d6bc582cae edit delete
e022516b41f20607ff76f00c7f594692 edit delete
f39731152ef6c291f1a36652ba3a7d36 edit
guest edit

How come im not seing the usernames?

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Thu, 2005-09-08 21:00

even when I go to edit a user, the email address is the user's full name, and I dont see the password....?

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Thu, 2005-09-08 21:10

never mind, found out that I had installed phpBB intergration then deleted it, although it did not put the mos_user db back to it's original state, so that was the reason....

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2005-09-09 01:38
npereira wrote:
thanks !

Now it works.

1 more question, when accessing gallery2 via the Mambo component, i click on Site Admin, although, there is no link to add albums... When I click on Gallery (top left corner, i go to the gallery itself.

But if I access Gallery2 via standalone, login to Site Admin, and press gallery (top left corner, it brings up a left side bar to add albums....?!?

Is this normal that you can only add albums via the standalone Gallery2 and not via the Gallery component?

I use the g2 sidebar module on all my gallery2 pages. Or you can change the option in the gallery2 component to include the sidebar.

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Fri, 2005-09-09 12:40

DAMN !

Now I just found another problem.....

When trying to sync the users of mambo to Gallery2, it works and says it was successful. But when I go, via the component, to user management, I only see this: (See attachement)

What could be creating this issue?

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-09-09 12:51

please update your releases to version 2.0.7 it has been released on my test site.

regards,
Michiel

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Fri, 2005-09-09 13:00

is there an upgrade path, or do you have to delete the componen then re-add this new one?

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Fri, 2005-09-09 13:02

Deleted the old comp 2.0.6, and installed this 2.0.7... got error:

update failed! Following Queries couldn't be executed:
INSERT INTO `#__gallery2` VALUES ('version', '2.0.7')

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Fri, 2005-09-09 13:05

#__gallery2 ?????

The g2 table shows as being mos_gallery2 not mos__gallery2.....
NOTE the 2 "_" instead of 1 "_"

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Fri, 2005-09-09 13:16

there's something im doing wrong, I tried installing it "upgrade" the 2.0.6 and got :
Upload component - Failed
Another component is already using directory: "/home/ottmoto/public_html/mambo/components/com_gallery2/"
[ Continue ... ]

Tried uninstalling it and removing the com_gallery2 table, without success either.

Can you explain how to update?

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-09-09 13:49

npereira,

you have to uninstall first and then install the new component.

regards,
Michiel

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Fri, 2005-09-09 13:54

Here is what I did,

un-install the component, delete the gallery2 database and delete the gallery2 folder.

downloaded the sept9 load of gallery2, installed, works fine standalone.

downloaded component 2.0.7

tried to install component via Mambo Component install and I get this error:
Fatal error: Call to a member function on a non-object in /home/ottmoto/public_html/mambo/administrator/components/com_gallery2/install.gallery2.php on line 96

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-09-09 20:12

npereira,

redownload again the component because there was a typo in one function might be the same line as i'm not at home and can't check.

You didn't need to delete the database or files/folders,

michiel

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Fri, 2005-09-09 20:29

un-installed the 2.0.6, and re-downloaded the 2.0.7 and installed:

update failed! Following Queries couldn't be executed:

Install complete, There are some things you should do next.
1) You should go to config screen of this component and configure it to your needs.
2) You should make 1 link on your menu manager to this component so it has at least 1 Itemid assigned to it.
3) You should update your gallery2 to at least 2.0-rc2 or core 0.9.37

Enjoy this release, please report and bugs to www.4theweb.nl, documents and FAQ are also available there.

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Fri, 2005-09-09 20:30

when going to the gallery2 config:

MA DB function failed with error number 1146
Table 'ottmoto_gallery2.mos_modules' doesn't exist SQL=SELECT id, title, module, position, content, showtitle, params FROM mos_modules AS m WHERE m.published = '1' AND m.position='debug' AND (m.client_id = 1) ORDER BY m.ordering
SQL =
SELECT id, title, module, position, content, showtitle, params
FROM mos_modules AS m
WHERE m.published = '1'
AND m.position='debug'
AND (m.client_id = 1)
ORDER BY m.ordering

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Fri, 2005-09-09 20:34

I had to take 2.0.7 off and put 2.0.6 back on as there is a severe problem with that file ....

Let me know when it's fixed.

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2005-09-09 20:40

I agree, I had issues as well. They also took off the old modules on mamboforge.net. Luckly I had a backup of my website where I could get the old modules.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Fri, 2005-09-09 22:26

Okay, the severe issue should be fixed now and is uploaded to mamboforge.net

sorry for this issue only people with a clean install where effected by this issue.
As it is very late, i'll continue on tomorrow if any other issues come fort.

shocksll, i'll put the modules back for download on dev.4theweb.nl if people need them as mamboforge doesn't let me move files :(

regards,
Michiel

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2005-09-09 22:43

Thanks for your hard work.

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Tue, 2005-09-13 21:14

Ok, I got 2.08 installed and upgraded to unpossible and everything works great!

Except...

I'm still getting javascript errors when I have the search block added to the sidebar. Is this a gallery2 problem, mambo problem, or com_gallery2/mod_gallery2_sidebar problem? I want to say it started with an upgrade of gallery2 but I don't remember. Anyway, I ended up adding this code inside a javascript block in my templates html at the bottom of the head.

function HandleErrors(){
return true;
}
window.onerror = HandleErrors;

This of course won't allow any JS errors to show on any of my pages (which can be good and bad). Any ideas of really solving the problem? Thanks.

Steve Lineberry

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-09-14 17:11

There is a break trough on language characters!
and how to get german language working including some already modified files.

see this topichttp://dev.4theweb.nl/index.php?option=com_simpleboard&itemid=12&func=view&id=202&catid=3

regards,
Michiel

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

 
azhiwen

Joined: 2005-09-15
Posts: 11
Posted: Fri, 2005-09-16 21:35

hi there,

i installed 2.08 and i got the following errors when i enter the config page.

MA DB function failed with error number 1146
Table 'trance_gallery.mos_modules' doesn't exist SQL=SELECT id, title, module, position, content, showtitle, params FROM mos_modules AS m WHERE m.published = '1' AND m.position='debug' AND (m.client_id = 1) ORDER BY m.ordering
SQL =

SELECT id, title, module, position, content, showtitle, params
FROM mos_modules AS m
WHERE m.published = '1'
AND m.position='debug'
AND (m.client_id = 1)
ORDER BY m.ordering

 
shocksll
shocksll's picture

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

Is your mambo database setup on trance_gallery?

Steve Lineberry

 
michiel_1981

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

There is a test build posteed that should fix the issue, It is a test build but some people that ha major problems are pulling out the beers. Maybe you want to try it to and give some feedback?

You can find it here.

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

 
ZED28

Joined: 2005-05-22
Posts: 22
Posted: Sat, 2005-09-17 00:09

I'm unable to get the "Full Path to Gallery G2:" to stay in the Components/Config section. I'm entering the path as "/home/zed28/public_html/tomkinson/gallery2" with tomkinson being the root of this particular website. When I save the settings (after entering the above in the "Full Path to Gallery G2:" area, it says it saves successfully but comes back empty.

I then get the following error message when I try to open the embeded Gallery2 application...

Warning: embed(embed.php): failed to open stream: No such file or directory in /home/zed28/public_html/tomkinson/components/com_gallery2/classes/core.php on line 126

Fatal error: embed(): Failed opening required 'embed.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/zed28/public_html/tomkinson/components/com_gallery2/classes/core.php on line 126

Any ideas? Gallery2 works fine in stand-a-lone mode...

Thanks in advance! :)

 
malthazor

Joined: 2003-04-03
Posts: 33
Posted: Sat, 2005-09-17 04:16

Just got an email that Joomla! 1.0 (the home of many of the ex-Mambo core) is available. Anyone give it a go get?

 
malthazor

Joined: 2003-04-03
Posts: 33
Posted: Sat, 2005-09-17 04:16

Just got an email that Joomla! 1.0 (the home of many of the ex-Mambo core) is available. Anyone give it a go get?

 
azhiwen

Joined: 2005-09-15
Posts: 11
Posted: Sat, 2005-09-17 05:04

hi,

yup i created a database called trance_gallery hmm i suppose thats setup already? i'm not much of an expert in this, so i might need abit of directions in this.

thanks for replying all...

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Sat, 2005-09-17 11:09

ZED28,

try the build i Posted above your origenal message.

Rest of mambo community,
I just installed joomla and The component is compatible with joomla.
I haven't tried it with GLOBALS off but that will be tested today.

regards,
Michiel

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

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Sat, 2005-09-17 13:34
azhiwen wrote:
hi,

yup i created a database called trance_gallery hmm i suppose thats setup already? i'm not much of an expert in this, so i might need abit of directions in this.

thanks for replying all...

When I upgraded to 2.08 for some reason it had in the database my old gallery2 database and was trying to use that to access some mambo tables, I edited the mos_gallery2 table and the database entry inside of it to the correct one and that fixed all of my problems. I was have the same issue as azhiwen and it was saying it couldn't find gallery2.mos_modules or whatever instead of my mambo database. Azhiwen, try looking in the mambo db and see if that database setting is correct.

 
azhiwen

Joined: 2005-09-15
Posts: 11
Posted: Sun, 2005-09-18 18:44
shocksll wrote:
I edited the mos_gallery2 table and the database entry inside of it to the correct one and that fixed all of my problems.

sorry but how did you do that? newbie here. did you mean edit the gallery2 config in mambo?

thanks.

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Mon, 2005-09-19 13:42

I use phpmyadmin to manage my mysql DB's. So using that I was able to goto my mambo DB, then goto the mos_gallery2 table, click browse, and then click the edit image beside the row that said database.

Steve Lineberry

 
azhiwen

Joined: 2005-09-15
Posts: 11
Posted: Wed, 2005-09-21 17:31
shocksll wrote:
I use phpmyadmin to manage my mysql DB's. So using that I was able to goto my mambo DB, then goto the mos_gallery2 table, click browse, and then click the edit image beside the row that said database.

Steve Lineberry

thanks alot! that was of great help. anyhow, i checked the linked(trance_gallery) and its correct, however i still get that error. btw, thats the correct database to be linked to right??

cheers.

 
EricInHouston

Joined: 2003-06-11
Posts: 14
Posted: Thu, 2005-09-22 05:47

I have an odd problem with G2 and Mambo...

I've given registered users the ability to "add sub-items" in an album. They can't. When they try, there's no error, but it just takes them back to the album page they were on when they clicked the link.

It works just fine from Gallery when not going through Mambo. Any ideas on this one?

 
azhiwen

Joined: 2005-09-15
Posts: 11
Posted: Sun, 2005-09-25 17:59
michiel_1981 wrote:
There is a test build posteed that should fix the issue, It is a test build but some people that ha major problems are pulling out the beers. Maybe you want to try it to and give some feedback?

You can find it here.

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

i've downloaded the latest test build and it works fine for my config page. however i get the following errors instead:

user management: (after click on administrator under NAME)

Fatal error: Call to a member function on a non-object in /var/www/html/mambo/administrator/components/com_gallery2/pages/user.manager.php on line 109

where line 109 refers to: list($ret, $groupids) =
GalleryCoreApi::fetchGroupsForUser($g2_user->getId());

and

Album management:

Input Array does not match ?: SELECT DISTINCT g2_AccessMap.g_accessListId FROM g2_AccessMap WHERE (g2_AccessMap.g_userId = NULL OR g2_AccessMap.g_groupId IN (1)) AND g2_AccessMap.g_permission & 1 =

as it is, i am wondering if it could be a result of the following information that i entered that's wrong??

1. Full Path to Gallery G2
2. Relative path to Gallery G2
3. Path to Mambo

any way to check for the correct paths?

thanks.

 
Todd_1215
Todd_1215's picture

Joined: 2005-08-16
Posts: 6
Posted: Sun, 2005-09-25 20:10

Hi,

I'm looking to automatically create User Albums when a new user registers with my mambo site. Currently I am using Gallery 1.5.x with Mambo 4.5.2.3. I know the com_gallery2 component that Integrates Gallery2 and mambo has this functionality but due to php memory limit restrictions at my hosting providers site I can't use Gallery2 Integrated with Mambo (That's another issue all together). So since that's really the only functionality I'm looking I was going to try and implement it myself.

I found this code (below) at this forum topic http://gallery.menalto.com/node/12290?highlight=create%2Calbum

Quote:
/**************************************************
Self-registration auto-album creation hack
**************************************************/
// the *name* of the albums used as root users album.
// Use empty quotes for top-level
$usersGallery = "users_galleries";
// create the album with name and title == "username", desc == "username's Gallery"
createNewAlbum( $usersGallery, $uname, $uname, $uname . "'s Gallery");
// create object from $user
$newUser = $gallery->userDB->getUserByUsername($uname);
// change creation perms. Get rid of 'loggedin', then set to username
$gallery->album->setCreateSubAlbum("loggedin", 0);
$gallery->album->setCreateSubAlbum($newUser->getUid(), 1);
// set owner to username
$gallery->album->setOwner($newUser->getUid());
// save all changes
$gallery->album->save();
/**************************************************
End hack
**************************************************/

This hack was written for Gallery user registration process and I need it to work with the mambo user registration process.

I'd do it myself but I don't know where the code needs to go in the com_gallery component or in mambo for that matter.

Anyone have any ideas?

 
EricInHouston

Joined: 2003-06-11
Posts: 14
Posted: Mon, 2005-09-26 00:14

The Gallery is finally fixed!! After days of teeth-gnashing and hair-pulling, I have the bloody thing working!

The problem, if anyone's interested was in the Forum software I integrated into Mambo, NOT the Gallery integration. For the benefit of others who may experience the same problem, here's what I found:

The forum is a stand-alone program called SMF (Simple Machine Forum). There's a program called a "bridge" that allows it to integrate with Mambo (share users, logins, etc.). The bridge was causing the problem. Seems that there are two different bridge projects and the one I chose doesn't play well with Gallery2. I uninstalled it and downloaded the other one and it works just fine.

For the record, the one that causes problems is available from MamboHacks.com. The one that works properly is available from MamboForge.net.

http://mamboforge.net/projects/mos-smf/

 
Austin519

Joined: 2005-09-26
Posts: 22
Posted: Mon, 2005-09-26 04:56

michiel_1981:
I'm having the exact same problem as ZED28 on mine...using the latest Gallery 2.0 stable, Joomla 1.01, and 2.09 of the Joomla/Gallery bridge software. Any idea what's up? I'm running Apache 2.0.54, Php 5.05, Zend, Windows XP SP2 machine.

 
hamba

Joined: 2005-06-25
Posts: 54
Posted: Wed, 2005-09-28 17:16

Hi

I just installed the latest Mambo and want to integrate gallery into it but I get this error and I can't do the configuration.
When I fill in the needed data and click on save the page refreshes and all the data is lost.

Quote:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /usr/local/www/data-dist/components/com_gallery2/classes/core.php on line 50

Thanks
Hamba

 
mrKaah

Joined: 2005-09-28
Posts: 1
Posted: Wed, 2005-09-28 21:04

I use a swedish translation on mambo and when i integrade gallery, the page with gallery gets texts with åäö in to boxes.
Modules on startpages converts every åäö to boxes..
Is there an easy way to solve this?

Thx
mrKaah

ps.
my english sucks
ds.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Thu, 2005-09-29 08:52
Austin519 wrote:
michiel_1981:
I'm having the exact same problem as ZED28 on mine...using the latest Gallery 2.0 stable, Joomla 1.01, and 2.09 of the Joomla/Gallery bridge software. Any idea what's up? I'm running Apache 2.0.54, Php 5.05, Zend, Windows XP SP2 machine.

hi, Most likely a typo in your fullpath, make sure it has a starting and ending / (slash).

regards,
Michiel

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Thu, 2005-09-29 08:53
hamba wrote:
Hi

I just installed the latest Mambo and want to integrate gallery into it but I get this error and I can't do the configuration.
When I fill in the needed data and click on save the page refreshes and all the data is lost.

Quote:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /usr/local/www/data-dist/components/com_gallery2/classes/core.php on line 50

which component version are you using?

regards,
Michiel

Thanks
Hamba

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Thu, 2005-09-29 08:54
mrKaah wrote:
I use a swedish translation on mambo and when i integrade gallery, the page with gallery gets texts with åäö in to boxes.
Modules on startpages converts every åäö to boxes..
Is there an easy way to solve this?

Thx
mrKaah

ps.
my english sucks
ds.

go to dev.4theweb.nl and find the sticky topic "german umluat problme"
read it and follow instruction to get special characters working.

regards,
Michiel

ps: there is work being done on documentation but all goes very slow.

 
apadley

Joined: 2002-11-30
Posts: 8
Posted: Sun, 2005-10-02 18:42

I seem to be getting the same error as others when I try to config the component:

Warning: embed(embed.php): failed to open stream: No such file or directory in /home/server/public_html/mambo/components/com_gallery2/classes/core.php on line 127

Fatal error: embed(): Failed opening required 'embed.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/server/public_html/mambo/components/com_gallery2/classes/core.php on line 127

I am using the latest 2.0.9 version of the component. Mambo and Gallery 2 are installed at the same level.

Here are the settings I am using:

Full path to G2: /home/server/public_html/g2/
Relative path to G2: ../g2
Path to Mambo: /

I have also tried every other combination of path settings I can come up with and I always get the same result. Gallery 2 works fine as standalone.

Have I missed something?