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~
Posts: 430
anthonychee,
what version of the component are you using?
regards,
Michiel
Posts: 11
You mean com_gallery2? It is version 2.0.6. I think it is the newest one.
Posts: 430
anthonychee,
what are your config settings and what are urls to both mambo and galler2 standalone.
regards,
Michiel
Posts: 11
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~
Posts: 430
anthonychee,
try /mambo/
or set the path in your db.
grtz,
Michiel
Posts: 11
I am sorry that using /mambo/ still fail.
I would like to know more about how to set path in db.
Posts: 430
anthonychee,
you have acess to phpmyadmin or any other program for db related changes?
regards,
Michiel
Posts: 11
I have phpmyadmin, but did not use it to modify db, since I do not know where to modify.
Posts: 430
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!
Posts: 11
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?
Posts: 430
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
Posts: 11
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!".
Posts: 430
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
Posts: 11
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)
Posts: 430
anthonychee,
url rewrite isn't supported yet!
regards,
Michiel
Posts: 11
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.
Posts: 430
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
Posts: 11
Could you describe more on how to solve sync user issue? Thanks for your help~ :D
Posts: 430
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
Posts: 11
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.