Hey all,
I have Gallery2 embedded in my website (no CMS system, just using the embed.php implementation for my own site).  Whenever I try to use the upload applet via the embedded site, I get the following error upon upload:
Gallery Remote can find no protocol implementation at the URL http://(embedded php page url here). Check with a web browser that (same URL here) is a valid Gallery URL. 
Thoughts?  Any help would be appreciated!
Thanks,
Eric
Posts: 3236
What are you pointing GR to? Should just be the root path of your G2 like "http://domain.com/gallery2/" I think.
Posts: 3
GR??
Posts: 3
Let me post some more information too...
folder/gallery.php is my PHP implementation
folder/gallery2/ is where Gallery is installed
The embedded code is as follows (taken from an example on these forums):
<?php session_start(); header("Cache-control: private"); // IE 6 Fix. include "inc/dbconnect.php"; include("inc/snap.php"); $NetID = require_snap_netid(); include("inc/usercheck.php"); $data = runGallery(); $data['title'] = (isset($data['title']) && !empty($data['title'])) ? $data['title'] : 'Gallery'; if (isset($data['bodyHtml'])) { print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>{$data['title']}</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> {$data['javascript']} {$data['css']} </head> <body> {$data['bodyHtml']} </body> </html> EOF; } function runGallery() { require_once('./gallery2/embed.php'); $data = array(); // if anonymous user, set g2 activeUser to null $NetID = require_snap_netid(); $uid = $NetID; // initiate G2 $ret = GalleryEmbed::init(array('embedUri' => 'gallery.php', 'relativeG2Path' => 'gallery2', 'embedPath' => '', 'loginRedirect' => 'index.php', 'activeUserId' => $uid)); if (!$ret->isSuccess()) { $data['bodyHtml'] = $ret->getAsHtml(); return $data; } // user interface: disable sidebar in G2 and get it as separate HTML to put it into a block GalleryCapabilities::set('showSidebar', true); // handle the G2 request $g2moddata = GalleryEmbed::handleRequest(); // show error message if isDone is not defined if (!isset($g2moddata['isDone'])) { $data['bodyHtml'] = 'isDone is not defined, something very bad must have happened.'; return $data; } // die if it was a binary data (image) request if ($g2moddata['isDone']) { exit; /* uploads module does this too */ } // put the body html from G2 into the xaraya template $data['bodyHtml'] = isset($g2moddata['bodyHtml']) ? $g2moddata['bodyHtml'] : ''; // get the page title, javascript and css links from the <head> html from G2 $title = ''; $javascript = array(); $css = array(); if (isset($g2moddata['headHtml'])) { list($data['title'], $css, $javascript) = GalleryEmbed::parseHead($g2moddata['headHtml']); $data['headHtml'] = $g2moddata['headHtml']; } /* Add G2 javascript */ if (!empty($javascript)) { foreach ($javascript as $script) { $data['javascript'] .= "\n".$script; } } /* Add G2 css */ if (!empty($css)) { foreach ($css as $style) { $data['css'] .= "\n".$style; } } // sidebar block if (isset($g2moddata['sidebarHtml']) && !empty($g2moddata['sidebarHtml'])) { $data['sidebarHtml'] = $g2moddata['sidebarHtml']; } return $data; } ?>THANKS!!
-Eric
Posts: 32509
efarbman, last time i checked GR (Gallery Remote) with embedded G2, it didn't work. You can find a couple of topics in the G2 forums when you use the search function.
You should point GR to the standalone G2 url, and use a very recent GR version. Maybe that works.