Error installing com_gallery2

miky66

Joined: 2005-08-12
Posts: 14
Posted: Fri, 2005-08-12 14:27

Hi,

I've installed Galerie 2 RC1 and Mambo 4.5.2. I tried to install the
com_gallery2 V. 2.0.6 and get an error message:

Warning: embed(embed.php): failed to open stream: File or directory not found at /var/www/html/xxx/html/main/components/com_gallery2/userfuncs.php on line 64

Fatal error: embed(): Failed opening required 'embed.php' (include_path='.') in /var/www/html/xxx/html/main/components/com_gallery2/userfuncs.php on line 64

After this the component is installed, but i can not configure the Paths to gallery2 and mambo.
If i klick save alle fields where cleared, so i think he doesn't save the configuration.
When i klick on the menu button linked to the component, i get the same error .

Anybody knows the problem?

Thanks
Miky66

 
miky66

Joined: 2005-08-12
Posts: 14
Posted: Fri, 2005-08-12 22:52

Some news,

if've found out that the configuration should be saved in the database. But the table mos_gallery2 is empty, so i inserted the path entry from mos_gallery (Gallery V1) into mos_gallery2 (after changing the path to gallery2), and a part of the component is working now (user config, tools). So i need the inserts for the other entries (mambo path, relativ path ...), and i think gallery2 should work with mambo.

I don't no why i get the error when installing the component, and i don't know why the configuration will not be saved in the database, is it a bug?
A colleague has the problem to (but not the error during the installation). He couldn't save the configuration, always getting a cleared form after save.

So who can give me the inserts for the mod_gallery2 from an working installation?

After that i think there is the next problem, mambo is working with iso-8859-1 and gallery2 with utf8.
Is there a change to change gallery2 to iso-8859-1?
On the embedded gallery2 page (with errors), the umlauts (the right word?) are correct, but the mambo umlauts where wrong, because the browser changes to utf8.
Any Idea?

Regards
Miky66 :-?

 
michiel_1981

Joined: 2005-05-19
Posts: 430
Posted: Sat, 2005-08-13 07:15

Why is this bug, during install showing up after a certain date? There were 3000(approx) installs before with out that error. I'm going to check the integratie of the files on mamboforge, quit strange.
[was just thinking out loud]

sql are posted somewhere in one of 4 big mambo threaths, i'l post it this afternoon, when i have a little more time.

regards,
Michiel

 
miky66

Joined: 2005-08-12
Posts: 14
Posted: Sat, 2005-08-13 09:52

Thanks,

my colleague has the same problem, same gallery2 version, same mambo version, another provider. But he don't get the error during the installation, only if he trys to configure users ..., and he cannot save the path configuration too. I've donwloaded the gallery 2 from the gallery2 donwload page:
http://codex.gallery2.org/index.php/Gallery2:Download
I've installed the full version, my colleague the typical.
Both gallerys work fine standalone. I only think that the mambo component has a bug, not gallery2.
The file embed.php is still in the gallery2 directory. I don't know why the component says file or directory not found. I don't know how the components gets the path to the gallery2 directory during the installation.
So i'll wait for the sql's. I don't found it in the forum, but i'll try to search again.
Don't hurry.

Thanks
Michael :)

 
miky66

Joined: 2005-08-12
Posts: 14
Posted: Sat, 2005-08-13 10:16

installed the com_gallery2 from
http://galleryupdates.jpmullan.com/#integrations
no error during the installation, but can not save configuration too

 
miky66

Joined: 2005-08-12
Posts: 14
Posted: Sun, 2005-08-14 12:44

ok,

i'm find some entrys for the mos_gallery2 (searching, testing)
path (absolut to gallery2 /............./gallery2)
relativeG2Path (relative path to gallery 2 ../gallery2)
embedPath (path for mambo /mambo)

I've inserted this into the table, and and now i can see the albums/pictures and the navigation throught the albums works fine.
Need I more entries in mos_gallery2?
Why i can't save the configuration with the mambo admin?

I get the following error

Warning: Cannot modify header information - headers already sent in /var/www/html/xxx/html/main/index.php on line 222

Warning: Cannot modify header information - headers already sent in /var/www/html/xxx/html/main/index.php on line 223

Warning: Cannot modify header information - headers already sent in /var/www/html/xxx/html/main/index.php on line 224

Warning: Cannot modify header information - headers already sent in /var/www/html/xxx/html/main/index.php on line 225

Warning: Cannot modify header information - headers already sent in /var/www/html/xxx/html/main/index.php on line 226

on the gallery2 sides embedded in Mambo. I've disabled SEO, but the same error.

And there is the problem with the character set, because gallery2 users utf8, and mambo iso8859p1.

I've installed the component
cm_gallery2 V. 2.0.6 i tried fist again, and i don't get the erros. I think if there are entries in the table i don't get the error messages?
Who inserts the entries normally, the comonent? So i think the insert script should be in the component files?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-08-14 12:59

these warnings could have multiple reasons.

one of them was a bug in g2. it was fixed half a week ago. so if your g2 version is not one of the latest nightly snapshots, this could explain it.

 
miky66

Joined: 2005-08-12
Posts: 14
Posted: Sun, 2005-08-14 14:00

I've downloaded the RC1 + and uploaded in the gallery2 directory, the error is fixed.
But now i get this message on every template, although gallery2 adminsitration
: ''; $template->style("modules/icons/iconpacks/$iconpack/icons$rtl.css"); } return GalleryStatus::success(); } } ?>
Any idea?

 
miky66

Joined: 2005-08-12
Posts: 14
Posted: Sun, 2005-08-14 14:49

ok,

i've transfered the directory /gallery2/modules/icons/classes again, and its's ok.
Thanks to valiant!!!!!

So i've only this open questions:
- need i more entries in the mos_gallery2 table?
- why i can't save the configuration in the mambo admin, mod_gallery2?
- can i configure gallery2 to use iso-8859-p1 to resolve the umlaut problem?
Or is there another alternative?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-08-14 15:07

> - can i configure gallery2 to use iso-8859-p1 to resolve the umlaut problem?

no. there are other forum threads about this issue, the simple answer is no.

@mambo questions:
please be patient, michiel_1981 will return in a few days.

 
miky66

Joined: 2005-08-12
Posts: 14
Posted: Mon, 2005-08-15 16:32

ok,

a chance that gallery2 provide other character sets in newer releases? I think gallery2 is the best integrated standalone gallery for mambo. But German users (or user from other countrys ...) will have a problem with utf8, because mambo don't use utf8.
I think installing gallery2 into another database than the mambo database with utf8 characterset will not resolve the problem.
Coppermine don't use utf8 i think, but the integration isn't so easy and much work (you have to know php).
I miss only a few features from gallery1, for example eCards, watermark all pictures from one album (or all together). But i think this would be integrated in one of the next versions.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-08-18 00:09

utf-8 is the standard, utf-8 works with all languages. i was told there is a mambo setting to change the character set.

and yes, we have an idea how we could introduce such a setting in g2, but you won't see it anytime soon, because we are very busy with other things.

 
miky66

Joined: 2005-08-12
Posts: 14
Posted: Thu, 2005-08-18 18:14

Thanks vailant,

you have an idea how you could introduce what, other charactersets?
Or watermark a complete album, ecards ...?

Some news about the mambo component:

These are the configurations i can't save:
Full Path to Gallery G2:
Relative path to Gallery G2:
Path to Mambo:
embedUri: (i think that's normal??)
Run user setup script

This configuration i can save using the component:
Login page redirect:
Display G2 Sidebar:
Display G2 login:
Use mirrored user logins:
Enable auto-album creation:
Where to make the user albums:

And now i have 2 colleagues which have exact the same problem!!!