I am experiencing some problems with gallery not displaying images on an embeded Joomla1.5.12 site. The gallery is displayed with all the content info, but no pictures? When veiwing gallery directly all seems to be fine.
Site link, http://postrangersgolfsociety.org.uk
error log displays the following:
Error (ERROR_BAD_PARAMETER) : core.UserAdmin/g2_subView,register.UserSelfRegistration/g2_view,core.UserAdmin/g2_w,gallery/ can't be parsed in modules/core/classes/GalleryView.class at line 149 (GalleryCoreApi::error)
in main.php at line 325 (GalleryView::loadView)
in main.php at line 104
in modules/core/classes/GalleryEmbed.class at line 189
in /home/postrangers/public_html/components/com_g2bridge/models/gallery.php at line 68 (GalleryEmbed::handleRequest)
in /home/postrangers/public_html/libraries/joomla/application/component/view.php at line 364 (G2BridgeModelgallery::getG2)
in /home/postrangers/public_html/components/com_g2bridge/views/gallery/view.html.php at line 29 (JView::get)
in /home/postrangers/public_html/libraries/joomla/application/component/controller.php at line 310 (G2BridgeViewgallery::display)
in /home/postrangers/public_html/components/com_g2bridge/controller.php at line 19 (JController::display)
in /home/postrangers/public_html/libraries/joomla/application/component/controller.php at line 236 (G2BridgeController::display)
in /home/postrangers/public_html/components/com_g2bridge/g2bridge.php at line 20 (JController::execute)
in /home/postrangers/public_html/libraries/joomla/application/component/helper.php at line 162
in /home/postrangers/public_html/includes/application.php at line 124 (JComponentHelper::renderComponent)
in /home/postrangers/public_html/index.php at line 68 (JSite::dispatch)
Request variables: Array
(
[view] => core.UserAdmin/g2_subView,register.UserSelfRegistration/g2_view,core.UserAdmin/g2_w,gallery/
[ion] => com_g2bridge
[itemId] => 31
[mcal_month] => 6
[mcal_year] => 2009
[mid] => 53
)
System info:
Gallery URL = http://postrangersgolfsociety.org.uk/gallery/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.0-8+etch15 cgi-fcgi
Webserver = Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8
Database = mysqlt 5.0.67-0.dotdeb.1, lock.system=flock
Toolkits = ArchiveUpload, Dcraw, Exif, Ffmpeg, Getid3, jpegtran, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd, ImageMagick
Acceleration = none/0, full/900
Operating system = Linux Rymach 2.6.25-2-686 #1 SMP Sat Jun 28 13:44:14 UTC 2008 i686
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 31
Rows in GalleryAccessSubscriberMap table = 2
Rows in GalleryUser table = 2
Rows in GalleryItem table = 1
Rows in GalleryAlbumItem table = 1
Rows in GalleryCacheMap table = 0
Have tried disabling SEF, but I just get a 404 page error then.
Any ideas anyone?
Posts: 16504
Looks like standalone works fine. I'd double check your integration.
Moving thread to Joomla forums.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 23
Yeah standalone works as it should, no probs there, its the intergration part.
Have check g2bridge and all seems ok there, not that there is alot to configure really? A couple of tabs and 2 entries to enter Uri and directory path name?
Posts: 16504
I've never installed Joomla so I don't have any experience with that part.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 23
Just ran an integrity check in the maintenance tab and it displays the following results:
Checked 105 entities
Orphaned data in table AccessMap with no row in AccessSubscriberMap table; ids: 8, 9, 10, 11, 12, 14, 15, 19, 20, 22
Does this point to the possible cause?
Posts: 16504
Not to me. Again, since it appears to be working fine in standalone, the problem is somewhere in your Joomla config or Gallery > Joomla bridge
Try turning off URL Rewrite.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 27300
Disable and unistall the rewrite module. Activate the setup the rewite module while you are embedded, not standalone.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 16504
Thanks Dave, I really need to setup an embed install at some point.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 23
Just checking, the re-write module in gallery plugins? Before I go and cock something else up.
Have got one problem, whilst in embeded admin there are no options available or even showing under the action tab?
Posts: 23
Ah I think I am making some progress, haha.
Am now able to bring up the options under the admin embeded page, but am a little stuck with:
Absolute path to the folder of your embedded .htaccess:
I can not find the embedApp. Have found the .htaccess and embed.php.
It is probably just that I cant figure out the correct path to the gallery.
Test the Rewrite Parser Configuration
Apache mod_rewrite
Testing if mod_rewrite is supported by the server.
Warning
Custom Gallery directory test setup
Gallery tries to test mod_rewrite in action. For this to work you need to edit each of these two files accordingly:
/home/postrangers/public_html/gallery/modules/rewrite/data/mod_rewrite/custom/.htaccess
Line 6: RewriteBase /embedApp/modules/rewrite/data/mod_rewrite/custom/
/home/postrangers/public_html/gallery/modules/rewrite/data/mod_rewrite_no_options/custom/.htaccess
Line 6: RewriteBase /embedApp/modules/rewrite/data/mod_rewrite_no_options/custom/
Test mod_rewrite manually
For whatever reason, Gallery did not detect a working mod_rewrite setup. If you are confident that mod_rewrite does work you may override the automatic detection. Please, run these two tests to see for yourself.
Works Test
mod_rewrite configuration 1 (with global Options +FollowSymlinks)
mod_rewrite configuration 2 (with local Options +FollowSymlinks)
If one of the two tests gives you a page with the text PASS_REWRITE you are good to go.
Gallery .htaccess file
Testing if Gallery can write to the .htaccess file.
Success
Embedded .htaccess file
Testing if Gallery can write to the embedded .htaccess file.
Error
Please configure the embedded htaccess path.
Posts: 23
Update
On the test page I am now only getting an error on the embed .htaccess
For the life of me I can not find embedApp .htaccess?
Posts: 27300
your embedApp is Joomla! so if that is the root of your public_html file then use the path to that. I am suprized that there is no documentation for the Joomla! side of things. Perhaps when you are done you can assist others that are attempting to use Joomla! and create a guide.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 23
Well I seem to be stuck on this one last hurdle. I've been following the following link for help, but am still stuck on getting all 3 items with a green tick. Even tho the gallery does now display embeded?
http://codex.gallery2.org/Gallery2:Modules:rewrite#Configuring_PHP_Path_Info
This is the screen shot I have at present, from within embeded admin page:
URL Rewrite Setup
An error occured while trying to save your settings
Cannot write to the .htaccess file
Embedded Setup
For URL Rewrite to work in an embedded environment you need to set up an extra .htaccess file to hold the mod_rewrite rules.
Absolute path to the folder of your embedded .htaccess:
Please enter the Url to your environment. E.g. http://www.mySite.com/myNiceCMS/ http://postrangersgolfsociety.org.uk
Apache mod_rewrite
Testing if mod_rewrite is supported by the server.
Success
Gallery .htaccess file
Testing if Gallery can write to the .htaccess file.
Success
Embedded .htaccess file
Testing if Gallery can write to the embedded .htaccess file.
Error
Please configure the embedded htaccess path.
floridave, yes my root is as you say but I have entered the path to my .htaccess in the doc root (Joomla's) and it is unable to write to it. Even tho the permissions will allow rewriting?
Just at a loss really
Posts: 27300
Sorry don't know anything about joomla. Best bet is to ask in their forums I guess.
Does the webserver have write permissions for the .htaccess file in the doc root?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 23
Yeah have set permissions for that, its my own server so have full control. Even if I dont know what I might be doing sometimes.
Thx floridave, will post a question at Joomla and see what happens.
Like I said it is working now, but it would be good to have all items checked, then I know all is well.
Posts: 23
Ha what a simple solution in the end. The file path to the embedded application ../.htaccess was to explicate. Removed the .htaccess from the end and now all is working fine.
Have 3 green ticks when tested woOt and all is working.
Now to up some snaps
Thanks to all who have offered their support.