Bug or Issue with Embed Code?
Shadow_Wolf
Joined: 2004-04-03
Posts: 181 |
Posted: Tue, 2005-08-09 04:31 |
Non-Integrated URL: http://www.protoculturex.com/gallery/ When you create an album and don't put any images within it, it creates a link that says "no thumbnail". If you click on the link it produces the following error: |
|
Posts: 181
I believe this is an issue with the core Gallery code and not the integration as it happens even if I just use the main.php and there hasn't been any modifications to main.php or core gallery code.
Stand Alone Gallery: http://www.protoculturex.com/gallery/main.php
DownloadItem.inc
Posts: 32509
never seen this before.
can you reproduce this by installing a fresh new gallery, uploading no photos at all, then creating a new album and browsing from top album to this album back and forth?
Posts: 181
Fresh Gallery: http://www.protoculturex.com/gallery2/
My Gallery: http://www.protoculturex.com/gallery/
I am using G2 RC1 Developer. I went through the upgrade process from the last G2 Beta version to the RC1. I can't duplicate it with a fresh install however that doesn't mean it isn't an issue with Gallery, it could still be an issue with Galleries embeding. There have been no modifications to Gallery files.
1. Gallery was installed seperate.
2. IPB installed and running seperately.
3. Embed/Integration codes consists entirely of a new index.php as shown here.
That is it, no changes or editing done to any Gallery files. The non-integrated gallery when you click/hover on that "no thumbnail" link it produces a link like:
http://www.protoculturex.com/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=34
Now if I hover over the integrated/embedded gallery I get the following link:
http://www.protoculturex.com/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=29&g2_GALLERYSID=943e9122c04b4b442e7009a784c7262d
If I hover over my current gallery but use the main.php (which hasn't been modified) I get:
http://www.protoculturex.com/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=29
So somehow if I use main, instead of it using ShowItem, it uses DownloadItem. If I look at the one in the integrated gallery for some reason not only does it use DownloadItem it adds on a GalleryID of: &g2_GALLERYSID=943e9122c04b4b442e7009a784c7262d
The only thing I can think of is that it isn't our code, but something with their embed code. I'll see if they help (but honestly they aren't much help) but I might have to enlist your help with this. Just let me know how much it would be.
Posts: 181
I have taken the index.php that I use for the embed/integration of Gallery with IPB from my /www/gallery/ directory, renamed and moved it to /www/gallery2. It seems to be fine as you can see here:
http://www.protoculturex.com/gallery2/index_embed.php
It appears the "no thumbnail" links work fine. The only thing I can think of that is different between the two galleries is that one was a complete fresh install, the other I followed the upgrade instructions moving from Beta 4 to RC1. Here are the instructions I followed:
Updating your Gallery 2 Installation
Updating is quick and easy and should not lose any of your data.
1. Get the latest code and unpack it over your existing copy of Gallery 2. Keep your existing config.php in place, and don't touch your (g2data) data folder or the database. If you're using CVS, you can just do "cvs update -Pd" at any time.
2. If you use a PHP accelerator / cache (e.g. Turk mmCache, Ioncube PHPA, eaccelerator, Zend Studio, etc.), flush (clear) the cache of the accelerator. Omitting this step can sometimes lead to errors during and after the upgrade process.
3. Browse to the upgrader and follow the instructions there. Make a backup of your data (g2data folder and the database) when it tells you to! Should you lose your data due to a bug in the upgrader, the first thing we're going to tell you to do is to restore from your backups! (Then we'll probably ask you to help us reproduce the bug.)
4. Enjoy your new version of Gallery 2.
-----------------------------------
I don't mind doing a fresh install of Gallery 2. My question is since I've added the albums, uploaded the images, etc. Is there any way to backup the album structure and images so I don't have to recreate everything from scratch?
Posts: 181
This has been fixed. Apparently there was something left over from when I went through the upgrade process from Beta to RC1. I cleared out the template cache and then checked. Everything appears to be working fine now.
Posts: 32509
Shadow_Wolf, great to hear!
Posts: 43
I am also having the same problem:
Ok, so I am in Gallery2. Ghostscript is working. I make an album called test, I upload an image and no thumbnail.
So I edit the album. I click on the general tab. At the bottom where it says thumbnail I type in 150, I hit save and I get this error:
Fatal error: Call to undefined function: getmimetype() in /home/wright16/public_html/gallery2/modules/core/ItemEditItem.inc on line 161
When I view line 161 it says:
list ($ret, $thumbnail) =
GalleryCoreApi::newFactoryInstanceByHint('GalleryDerivative',
$source->getEntityType());
Is this a bug or is something else not working?
Posts: 32509
should be working.
the mambo integration had this too for a while, dont know how they fixed it. maybe ask michiel_1981
Posts: 43
Valiant, I sent a message to Michiel_1981. I hope to hear from him regarding how he resolved it.
Thanks and sorry for the other posts, I thought they were related.
Posts: 2
Just installed Gallery2 2.1.2 on a godaddy host, added album without thumbnail size, then images to first album. Now when setting the thumbnail size, the error above (
Fatal error: Call to undefined function: getmimetype() in /home/content/h/a/n/hanmeyer/html/gallery/modules/core/ItemEditItem.inc on line 161)
is displayed.
EDIT: Deleted and rebuilt gallery, with thimbsize set properly at first. No thumbs appear (size = 250), even after rebuild. This may be a hosting issue.
Any hints?
Posts: 2
Well, it seems 30 minutes into Gallery2 may not be enough to know everything ;) I had no graphics toolkit installed.
I discovered this by trying the "Edit Image" and seeing the notice near the bottom that there was "no grpahics toolkit installed" and subsequently went to admin and chose one. (Gt
Posts: 8
Hi all, I am getting this same error! If anyone could help it would be greatly appreciated.
I am running Gallery 2.1.2. It's a fresh install, the only changes I have made are to:
/gallery2/themes/matrix/templates/local/theme.tpl (which has 2 {php}include();{/php} statements)
/gallery2/themes/matrix/theme.css
I appear to have GD and NetPBM installed, and the other graphic modules are set to 'configure' (So I guess they aren't installed?) Do they need to be?
I also installed the FULL version. I'm assuming its something to do with the graphics modules? Or something?
Anyone have any ideas how to get past this?! I haven't noticed any fixes for this bug?
Posts: 8
Please if anyone knows the answer to this, could you please point me in the right direction? I'm running out of options! The error message displays when I go to set the 'max size' of the THUMBNAIL for the first ALBUM I have created. The error message is as follows:
So it's something in the core API, and it's something to do with getting the mime type. (the other interesting thing is, no thumbnail image has been uploaded yet, so what it is trying to get the mime type of? I noticed on the page that asks for 'thumbnail max size', there DOESNT seem to be an image upload file input?)
Hoping to hear from someone with some help soon! Thanks all.
Gallery version: 2.1.2
PHP Version: 4.3.10-16
MySQL Version: 4.0.26-log
Web Server: Apache/1.3.34
Install: Full
Posts: 32509
php code should not be added in .tpl files. even if there's the option to do that, it's the wrong approach.
@your error:
please post the complete issue in a separate thread.