Mambo Error on config Gallery2 sidebar, Gallery2 Image block

anthonychee

Joined: 2005-07-26
Posts: 11
Posted: Tue, 2005-07-26 08:01

Hi all,

I got the error message as following in the frontpage when publish the above module in mambo.

Warning: main(embed.php) [function.main]: failed to open stream: No such file or directory in F:\Homepage\mambo\modules\mod_galleryside.php on line 59

Fatal error: main() [function.require]: Failed opening required 'embed.php' (include_path='.;c:\php\includes') in F:\Homepage\mambo\modules\mod_galleryside.php on line 59

It seems it requires embed.php to work normally. I tried to search the mambo directory found no embed.php. I also tried to download the source again from mambo and search, no embed.php also.....

My configuration:
Mambo : v4.5.2.3
Gallery2 : Beta 4
mod_gallery_block : v2.3
mod_galleryside : v2.3

Thanks for help~

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Tue, 2005-07-26 14:16

anthonychee,

what version of the component are you using?

regards,
Michiel

 
anthonychee

Joined: 2005-07-26
Posts: 11
Posted: Tue, 2005-07-26 14:21
michiel_1981 wrote:
anthonychee,

what version of the component are you using?

regards,
Michiel

You mean com_gallery2? It is version 2.0.6. I think it is the newest one.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Tue, 2005-07-26 14:33

anthonychee,

what are your config settings and what are urls to both mambo and galler2 standalone.

regards,
Michiel

 
anthonychee

Joined: 2005-07-26
Posts: 11
Posted: Tue, 2005-07-26 15:41
michiel_1981 wrote:
anthonychee,

what are your config settings and what are urls to both mambo and galler2 standalone.

regards,
Michiel

It raises the problem on configuring com_gallery2

Gallery2 URL : http://www.server.com:8080/gallery2
Mambo URL : http://www.server.com:8080/mambo
Gallery2 Server Location : f:\homepage\gallery2
Manbo Server Location : f:\homepage\mambo

In configure menu, I set the following parameters

Full Path to Gallery G2: f:\homepage\gallery2\
Relative path to Gallery G2: ../gallery2
Path to Mambo: /mambo

but it always warns me that Path to mambo is incorrect!. Therefore I don't know how to set it. And I cannot get into User Management, Album Management and Tools, it just gives me Warning: G2helperclass::embed(embed.php) [function.embed]: failed to open stream: No such file or directory in F:\Homepage\mambo\components\com_gallery2\userfuncs.php on line 64

That what I know about it....Please help~

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Tue, 2005-07-26 15:43

anthonychee,

try /mambo/

or set the path in your db.

grtz,
Michiel

 
anthonychee

Joined: 2005-07-26
Posts: 11
Posted: Tue, 2005-07-26 15:46
michiel_1981 wrote:
anthonychee,

try /mambo/

or set the path in your db.

grtz,
Michiel

I am sorry that using /mambo/ still fail.
I would like to know more about how to set path in db.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-07-27 06:38

anthonychee,

you have acess to phpmyadmin or any other program for db related changes?

regards,
Michiel

 
anthonychee

Joined: 2005-07-26
Posts: 11
Posted: Wed, 2005-07-27 06:44
michiel_1981 wrote:
anthonychee,

you have acess to phpmyadmin or any other program for db related changes?

regards,
Michiel

I have phpmyadmin, but did not use it to modify db, since I do not know where to modify.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-07-27 08:10

anthonychee,

mos_gallery2 is the table where all the config data is saved for this component.
there you have to be.

regards,
Michiel

ps: mos can be any thing you have set during setup of mambo!

 
anthonychee

Joined: 2005-07-26
Posts: 11
Posted: Wed, 2005-07-27 08:34
michiel_1981 wrote:
anthonychee,

mos_gallery2 is the table where all the config data is saved for this component.
there you have to be.

regards,
Michiel

ps: mos can be any thing you have set during setup of mambo!

I checked the table mos_gallery2. It has two fields 'key' and 'values', and has types 'varchar(128)' and 'text'. The table is empty. Is it correct?

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-07-27 09:07

anthonychee,

yes, this is correct as you weren't able to save any info!

you have to create 3 entries at least.
key => values
path => "full path to your gallery2 install"
relativeG2Path => ../gallery2
embedPath => /mambo

regards,
Michiel

 
anthonychee

Joined: 2005-07-26
Posts: 11
Posted: Wed, 2005-07-27 15:17
michiel_1981 wrote:
anthonychee,

yes, this is correct as you weren't able to save any info!

you have to create 3 entries at least.
key => values
path => "full path to your gallery2 install"
relativeG2Path => ../gallery2
embedPath => /mambo

regards,
Michiel

I sucessfully config the above parameters into db, but I cannot config Display G2 sidebar, Display G2 login parameters, since I still get "Path to mambo is incorrect!".

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-07-27 16:10

anthonychee,

yes that is correct but is gallery2 working now in mambo?

regards,
michiel

[edit]
check this post on windows paths
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=156363#156363

 
anthonychee

Joined: 2005-07-26
Posts: 11
Posted: Wed, 2005-07-27 16:15
michiel_1981 wrote:
anthonychee,

yes that is correct but is gallery2 working now in mambo?

regards,
michiel

The thumbnail cannot be displayed, and the URL of sub-albums is incorrect
The URL of the sub-albums is http://www.server.com/mambo/albums/xxxxxxxx/, which is http://www.server.com/gallery2/albums/xxxxxxxx/ in gallery2 (URL rewrite is enabled)

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-07-27 16:27

anthonychee,

url rewrite isn't supported yet!

regards,
Michiel

 
anthonychee

Joined: 2005-07-26
Posts: 11
Posted: Wed, 2005-07-27 16:38
michiel_1981 wrote:
anthonychee,

url rewrite isn't supported yet!

regards,
Michiel

Oh.....I disabled URL rewrite and now the thumbnail can be displayed.

But there are lines Warning: Cannot modify header information - headers already sent in F:\Homepage\mambo\index.php on line 194 display on top of the pages. How can they be solved? (They apeear after componement install)

I found that I cannot sync existing users in mambo to gallery2. I am sure that the user is not in blocked stage.

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Wed, 2005-07-27 21:17

anthonychee,

read the other post about this, they have come up, and the first isn't solved the second can be some core hack?

regards,
Michiel

 
anthonychee

Joined: 2005-07-26
Posts: 11
Posted: Thu, 2005-07-28 07:51
michiel_1981 wrote:
anthonychee,

read the other post about this, they have come up, and the first isn't solved the second can be some core hack?

regards,
Michiel

Could you describe more on how to solve sync user issue? Thanks for your help~ :D

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Thu, 2005-07-28 10:26

anthonychee,

hi, just tell me first if you use mosplus or any other core hacks? What kind of components do you have installed, some mess with the user database.

else i don't know what the problem is.

grtz,
Michiel

 
anthonychee

Joined: 2005-07-26
Posts: 11
Posted: Thu, 2005-07-28 11:42
michiel_1981 wrote:
anthonychee,

hi, just tell me first if you use mosplus or any other core hacks? What kind of components do you have installed, some mess with the user database.

else i don't know what the problem is.

grtz,
Michiel

I am a newbie of Mambo. I did not use mosplus or any core hack. After I have fresh install of Mambo, I installed com_gallery2 and com_mamblog, and some themes. That's what I did. :)