Forum Index > FlashYourWeb OS Support > Gallery 2 Bridge New Topic Post Reply
 Plugin installation issues
 |  Printable Version
Anonymous: Jot
 January 19 2010 12:04 PM (Read 2306 times)  


I have brand new Geeklog (1.6.1) and Gallery (2.3.1) installations. Both work independently.

I would like them to exist in harmony, and G2bridge seems to be the way to go. So, I've
downloaded it (G2Bridge_v.2.3.9_GL1.6.x_glf_1.1.6.tar.gz).

I unpack it and read the installation directions at:

http://www.flashyourweb.com/staticpages/index.php?page=g2bridge_readme

The first issue I have is where to stick all of the files, but I'll let that go for now.
Importantly, in the top level listed in the screenshot as:

GL_1.5.x/plugins/G2Bridge

there is a file config.php

dionysus:~/temp> ls -ld G2*
-rw-r--r-- 1 jot jot 254435 2010-01-19 11:44 G2Bridge_v.2.3.9_GL1.6.x_glf_1.1.6.tar.gz
dionysus:~/temp> tar -xzf G2Bridge_v.2.3.9_GL1.6.x_glf_1.1.6.tar.gz
dionysus:~/temp> cd G2Bridge
dionysus:~/temp/G2Bridge> find ./ -name config.php -ls
65224 8 -rw-r--r-- 1 jot jot 6596 Nov 10 2008 ./fckeditor/editor/plugins/G2Image/config.php
dionysus:~/temp/G2Bridge>

So the only config.php I find is actually down in G2Image.

Now, back to the "where the files go". My directory structures look like:

~/geeklog (geeklog outside of my public_html for security)
~/public_html (hopefully obvious)
~/public_html/gallery2 (gallery install)

Looking at the URL above it is not obvious that whole G2 directory and pieces isn't supposed to be slapped around willy-nilly everywhere. Smile

I think some of this might be answered in an old version of the wiki doc, but the config.php problem is perplexing me.

http://codex.gallery2.org/index.php?title=Integration:Geeklog&oldid=15649

TIA.

-Jot



 
Quote
suprsidr
 January 19 2010 13:54 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Jot,
I used to pack all my plugins with the filestructure in the order they belong. But since nobody else does, I've moved to the archaic way everybody else does.
AND the way the files are packed works with geeklog&glfusion's current auto-installer(mostly).
Auto-install does not copy the fckeditor files and there is no way to tell it to.

For manual installation the files should be placed identical to the gl1.5.x image without config.php
All the options previously contained in the plugins/G2Bridge/config.php are now available online via yoursite.com/admin/configuration.php -> G2Bridge

And I know I need to update my docs I usually don't until someone asks.

Hope this helps.

-s


There will always be...
 
Profile Email Website
Quote
suprsidr
 January 19 2010 14:15 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

replaced the filestructure image.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Jot
 January 19 2010 14:51 PM  


Ok, so I played with that, and now the site is whacked. Smile


PHP Formatted Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>

<link rel="stylesheet" type="text/css" href="/gallery2/modules/core/data/gallery.css"/>
<link rel="stylesheet" type="text/css" href="/gallery2/modules/icons/iconpacks/silk/icons.css"/>
<link rel="alternate" type="application/rss+xml" title="Photo RSS" href="/G2Bridge/index.php?g2_view=slideshow.SlideshowMediaRss&g2_itemId=7&g2_GALLERYSID=6347a7eab18de37d185192274f2dd08f"/>
<script type="text/javascript" src="http://www.superpowers.us/gallery2/main.php?g2_view=core.CombinedJavascript&g2_key=0da6bfcb1cc414411491614a9d28560f&g2_GALLERYSID=6347a7eab18de37d185192274f2dd08f"></script>
<script type="text/javascript" src="/gallery2/main.php?g2_view=core.ItemDeleteJs&g2_lang=en_GB&g2_GALLERYSID=6347a7eab18de37d185192274f2dd08f"></script>
<script type="text/javascript" src="/gallery2/main.php?g2_view=slideshow.DownloadPicLens&g2_file=js&g2_v=1.3.1.14221&g2_GALLERYSID=6347a7eab18de37d185192274f2dd08f"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>
 


Is what gets returned and renders as a blank page.

Possible cause? Inability to uninstall the rewrite module in gallery (it was disabled but not uninstalled)?

At this stage since I can't really do anything with the site I'm considering just flattening it again (since it's new install anyway) and starting back from scratch. I'd still like to know though how I'm going to get this to work.

What I did do was put all the files where indicated. Then from GL, found the plugin. Clicked install, and then things got blanky.

nothing obvious in system apache logs.

Here are the entries from the GL log from the install time

Tue Jan 19 15:33:49 2010 - 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE pi_name = 'G2Bridge'' at line 1. SQL in question: SELECT COUNT(*) FROM WHERE pi_name = 'G2Bridge'
Tue Jan 19 15:34:03 2010 - 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE pi_name = 'G2Bridge'' at line 1. SQL in question: SELECT COUNT(*) FROM WHERE pi_name = 'G2Bridge'
Tue Jan 19 15:34:03 2010 - Attempting to install the 'G2Bridge' plugin
Tue Jan 19 15:34:03 2010 - Attempting to create 'G2Bridge Admin' group
Tue Jan 19 15:34:03 2010 - Attempting to add 'G2Bridge' features
Tue Jan 19 15:34:03 2010 - Adding 'G2Bridge.admin' feature to the 'G2Bridge Admin' group
Tue Jan 19 15:34:03 2010 - Attempting to give all users in the Root group access to the 'G2Bridge' Admin group
Tue Jan 19 15:34:03 2010 - Registering 'G2Bridge' plugin
Tue Jan 19 15:34:03 2010 - G2B install complete autoinstall.php
Tue Jan 19 15:34:03 2010 - Adding block (G2B_rand_photo, Random Photo, phpblock_G2B_rand_photo, 2) : []
Tue Jan 19 15:34:03 2010 - Adding block (G2B_block, Gallery2, phpblock_G2B_block, 2) : []
Tue Jan 19 15:34:03 2010 - Mapping users from GL into G2
Tue 19 Jan 2010 03:34:03 PM MST - GalleryEmbed::createUser for userId 2
Tue 19 Jan 2010 03:34:03 PM MST - ERROR_COLLISION, added external ID to map for userId 3
Tue 19 Jan 2010 03:34:03 PM MST - GalleryEmbed::createUser for userId 4
Tue 19 Jan 2010 03:34:03 PM MST - retrieved user from G2 Admin
Tue 19 Jan 2010 03:34:03 PM MST - added user with a G2 id of 29 to admin group 3
Tue 19 Jan 2010 03:34:03 PM MST - G2B admin_user_mapped_to_g2 autoinstall.php
Tue 19 Jan 2010 03:34:03 PM MST - Successfully installed the 'G2Bridge' plugin!

Ideas?

-Jot


 
Quote
suprsidr
 January 19 2010 15:05 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Possible cause? Inability to uninstall the rewrite module in gallery (it was disabled but not uninstalled)?

Why? Your gallery is still viewable/manageable via yoursite.com/gallery2/

Make sure all the info is correct in yoursite.com/admin/configuration.php -> G2Bridge

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Jot
 January 19 2010 15:28 PM  


Quote by: suprsidr

Possible cause? Inability to uninstall the rewrite module in gallery (it was disabled but not uninstalled)?

Why? Your gallery is still viewable/manageable via yoursite.com/gallery2/

Make sure all the info is correct in yoursite.com/admin/configuration.php -> G2Bridge

-s



It wasn't uninstalled because it threw errors when I tried to uninstall it.

The gallery is still viewable and manageable, but GeekLog is all messed up.

(Naturally I just went back to gallery2/ ->Plugins and rewrite uninstalled without
any issues.)

http://www.superpowers.us/admin/configuration.php returns just Gallery. (code below)

PHP Formatted Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>

<link rel="stylesheet" type="text/css" href="/gallery2/modules/core/data/gallery.css"/>
<link rel="stylesheet" type="text/css" href="/gallery2/modules/icons/iconpacks/silk/icons.css"/>
<link rel="alternate" type="application/rss+xml" title="Photo RSS" href="/G2Bridge/index.php?g2_view=slideshow.SlideshowMediaRss&g2_itemId=7&g2_GALLERYSID=30f9d39dbf09a383df641df040e1c4ac"/>
<script type="text/javascript" src="http://www.superpowers.us/gallery2/main.php?g2_view=core.CombinedJavascript&g2_key=0da6bfcb1cc414411491614a9d28560f&g2_GALLERYSID=30f9d39dbf09a383df641df040e1c4ac"></script>
<script type="text/javascript" src="/gallery2/main.php?g2_view=core.ItemDeleteJs&g2_lang=en_GB&g2_GALLERYSID=30f9d39dbf09a383df641df040e1c4ac"></script>
<script type="text/javascript" src="/gallery2/main.php?g2_view=slideshow.DownloadPicLens&g2_file=js&g2_v=1.3.1.14221&g2_GALLERYSID=30f9d39dbf09a383df641df040e1c4ac"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Gallery</title>
<link rel="stylesheet" type="text/css" href="/gallery2/themes/matrix/theme.css"/>

</head>
<body class="gallery">
<div id="gallery" class="gecko">
<div id="gsHeader">
<a href="/G2Bridge/index.php?g2_GALLERYSID=30f9d39dbf09a383df641df040e1c4ac&phpMyAdmin=3t6YV1OfVqcEFfJg28R908aqSdc"><img src="/gallery2/images/galleryLogo_sm.gif"
width="107" height="48" alt=""/></a>
</div>
<div id="gsNavBar" class="gcBorder1">
<div class="gbSystemLinks">
<span class="block-core-SystemLink">
<a href="/G2Bridge/index.php?g2_view=core.SiteAdmin&g2_return=%2FG2Bridge%2Findex.php%3Fg2_GALLERYSID%3D30f9d39dbf09a383df641df040e1c4ac&g2_GALLERYSID=30f9d39dbf09a383df641df040e1c4ac&phpMyAdmin=3t6YV1OfVqcEFfJg28R908aqSdc">Site Admin</a>
</span>

</div>
<div class="gbBreadCrumb">

<div class="block-core-BreadCrumb">
<span class="BreadCrumb-1">
Gallery</span>
 


I feel like I'm doing something really stupid and just not catching it.

-Jot


 
Quote
suprsidr
 January 19 2010 15:47 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Ok, I think you've got things in the wrong places.

Above you inferred that gallery was at /gallery2/ but I get Permission denied errors

so where is geeklog's index.php? and gallery's main.php?

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Jot
 January 19 2010 16:05 PM  


Quote by: suprsidr

Ok, I think you've got things in the wrong places.

Above you inferred that gallery was at /gallery2/ but I get Permission denied errors

so where is geeklog's index.php? and gallery's main.php?

-s



dionysus:~/public_html> pwd
/home/jot/public_html
dionysus:~/public_html> ls -l index.php
-rw-r--r-- 1 jot jot 15670 2009-09-11 04:12 index.php
dionysus:~/public_html> ls -l gallery2/main.php
-rw-r--r-- 1 jot jot 22978 2008-09-02 20:20 gallery2/main.php
dionysus:~/public_html>


I tried to uninstall G2Bridge but I got stuck on step #3. Wink I'm kidding. No attempt to uninstall.

-Jot


 
Quote
Anonymous: Jot
 January 21 2010 15:57 PM  


any ideas or do I go with the flatten?


 
Quote
suprsidr
 January 21 2010 16:07 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Hard to tell, a requirement of the G2Bridge plugin is a functioning gallery2 installation which yours is not.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Jot
 January 21 2010 19:56 PM  


Okey-dokey.

I'll flatten and make sure both are working and try again.

-Jot


 
Quote
Anonymous: Jot
 January 25 2010 20:48 PM  


Ok, it has torched my second install. I had validated and working Geeklog and Gallery installations.

First:

On the new image with the directory structure it shows public_html as a subdir of the geeklog home dir. But, the geeklog install dir and the public_html dir are both in the root since you don't want your geeklog in your public html.

But I put the files everywhere and then did the plugin install from Geeklog. Here is the geeklog error log.

[code]
Mon Jan 25 21:58:19 2010 - 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE pi_name = 'G2Bridge'' at line 1. SQL in question: SELECT COUNT(*) FROM WHERE pi_name = 'G2Bridge'
Mon Jan 25 21:58:29 2010 - 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE pi_name = 'G2Bridge'' at line 1. SQL in question: SELECT COUNT(*) FROM WHERE pi_name = 'G2Bridge'
Mon Jan 25 21:58:29 2010 - Attempting to install the 'G2Bridge' plugin
Mon Jan 25 21:58:29 2010 - Attempting to create 'G2Bridge Admin' group
Mon Jan 25 21:58:29 2010 - Attempting to add 'G2Bridge' features
Mon Jan 25 21:58:29 2010 - Adding 'G2Bridge.admin' feature to the 'G2Bridge Admin' group
Mon Jan 25 21:58:29 2010 - Attempting to give all users in the Root group access to the 'G2Bridge' Admin group
Mon Jan 25 21:58:29 2010 - Registering 'G2Bridge' plugin
Mon Jan 25 21:58:29 2010 - G2B install complete autoinstall.php
Mon Jan 25 21:58:29 2010 - Adding block (G2B_rand_photo, Random Photo, phpblock_G2B_rand_photo, 2) : []
Mon Jan 25 21:58:29 2010 - Adding block (G2B_block, Gallery2, phpblock_G2B_block, 2) : []
Mon Jan 25 21:58:29 2010 - Mapping users from GL into G2
Mon 25 Jan 2010 09:58:29 PM MST - ERROR_COLLISION, added external ID to map for userId 2
Mon 25 Jan 2010 09:58:29 PM MST - retrieved user from G2 admin
Mon 25 Jan 2010 09:58:29 PM MST - added user with a G2 id of 6 to admin group 3
Mon 25 Jan 2010 09:58:30 PM MST - G2B admin_user_mapped_to_g2 autoinstall.php
Mon 25 Jan 2010 09:58:30 PM MST - Successfully installed the 'G2Bridge' plugin!
dionysus:~/geeklog/logs>
[code]

My gallery install still seems to be ok, but my geeklog install is now blank paging me where before it was functioning. The source of the blank page is in one of my other posts.

If there is nothing obvious that's fine. I'll just drop the database and recreate both installs and move on.

-Jot


 
Quote
suprsidr
 January 26 2010 04:39 AM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

http://wiki.geeklog.net/index.php/Plugins

Geeklog also allows for autoinstall of plugins.
you need to temporarily make /plugins, public_html, and admin/plugins writable(0777) and geeklog can upload, unzip and copy the files to their proper place. This process even runs the install routine for automatically.
The only files this process cannot copy is the fckeditor files.

If you think it will help, send me ftp and admin access and I will install the plugin correctly for you.

If you need to disable a plugin this can be done via phpMyAdmin edit gl_plugins and set pi_enabled to 0 for any plugin you need to disable.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Jot
 January 26 2010 06:11 AM  


Thanks for the manual disable instructions.

I went with:

PHP Formatted Code

mysql> update gl_plugins set pi_enabled='0' where pi_name='G2Bridge';
 


I'll chmod and try again shortly and see how that goes.

-Jot


 
Quote
Anonymous: Jot
 January 26 2010 12:02 PM  


Just to followup:

I gave Wayne admin access and he was able to debug and fix the issues, which
were evidently twofold:

#1: Random photo block expected a photo to be in gallery and I was doing
the integration before doing any photo uploads.
#2: A memory limit issue:

"I added @ini_set('memory_limit', '48M'Wink; to gallery2/config.php" -Wayne

Thanks a bunch for the great help.

-Jot


 
Quote
Content generated in: 0.56 seconds
New Topic Post Reply



 All times are PDT. The time is now 11:21 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
HTML Allowed 
Censored Content