[Plugin: Magic Gallery] Thumbnails not showing up
-
I’ve activated the plugin, uploaded photos to the gallery, & added the gallery shortcode to this page, however the thumbnails are showing up as question marks. Not quite sure what I need to change to fix this. Can you help? Thanks.
-
Hi Eileen, did you read the installation instructions?
You need to chmod the ‘cache’ folder to 777 as well, then it will work 😉Best regards,
Gerben van Dijk
Hi Gerben,
I have done all that and the thumbnails still aren’t showing up. Sorry to be a pest. 🙂
Eileen
No problem, i’m curious in how this can happen. Are you running on a windows or on a linux server?
I’ve had this issue with a windows server, but I thought i had fixed this.
If you are on a windows server, check if in your image.php file, the first couple of lines say this:
<?php // let's make sure the $_SERVER['DOCUMENT_ROOT'] variable is set if(!isset($_SERVER['DOCUMENT_ROOT'])){ if(isset($_SERVER['SCRIPT_FILENAME'])){ $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); }; }; if(!isset($_SERVER['DOCUMENT_ROOT'])){ if(isset($_SERVER['PATH_TRANSLATED'])){ $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); }; };If not, add these lines and it should work.
No, I’m on Linux. This is what image.php looks like:
<?php
// let’s make sure the $_SERVER[‘DOCUMENT_ROOT’] variable is set
if(!isset($_SERVER[‘DOCUMENT_ROOT’])){ if(isset($_SERVER[‘SCRIPT_FILENAME’])){
$_SERVER[‘DOCUMENT_ROOT’] = str_replace( ‘\\’, ‘/’, substr($_SERVER[‘SCRIPT_FILENAME’], 0, 0-strlen($_SERVER[‘PHP_SELF’])));
}; };
if(!isset($_SERVER[‘DOCUMENT_ROOT’])){ if(isset($_SERVER[‘PATH_TRANSLATED’])){
$_SERVER[‘DOCUMENT_ROOT’] = str_replace( ‘\\’, ‘/’, substr(str_replace(‘\\\\’, ‘\\’, $_SERVER[‘PATH_TRANSLATED’]), 0, 0-strlen($_SERVER[‘PHP_SELF’])));
}; };That’s odd. I can’t really think of how this can happen, i’ll look into it more tomorrow. Did you double-check the chmod-ing?
Gerben van Dijk
Heb gisteren de magic-gallery geinstallerd, en heb nog een vraag: ist het mogelijk om de volgorde van de afbeeldingen te veranderen of moet ik, als ik de volgorde will veranderen alle afbeeldingen opnieuw uploaden? Heel erg bedankt! Groeten van Frauke
Hoi Frauke,
Dit wordt gedaan op basis van het id, het is momenteel nog niet mogelijk om de volgorde zelf te bepalen.
Ik zal het verwerken in een volgende update van de plugin!
Bedankt voor het gebruiken van de Magic Gallery!Gerben van Dijk
sorry, i don’t understand German.
CHMOD is correct. Just to confirm, I CHMOD the uploads and cache folders within the Magic Gallery plugin directory.
Haha it’s Dutch actually 😉 Thanks for the info, I just checked and the image.php file actually is working fine on your server, but it seems that your host does not see the rest of the url as a valid url. I really can’t find out why this is happening.. seems like a hosting issue to me, maybe you can contact them to find out?
This is what I mean:
http://pilatesplacenj.com/pp/wp-content/plugins/magic-gallery/image.php
is working fineWhereas
http://pilatesplacenj.com/pp/wp-content/plugins/magic-gallery/image.php/image2.jpg?width=200&height=200&cropratio=1:1&image=http://pilatesplacenj.com/pp/wp-content/plugins/magic-gallery/uploads/3/image2.jpg
results in a page not found..Bedankt voor de antwoord!
Het design van de magic gallery bevallt me heel goed!
Groeten van FraukeHoi Frauke,
Geen probleem. Als je alles in de volgorde die jij voor ogen hebt upload dan is je probleem in ieder geval tijdelijk opgelost, totdat ik de update uitbreng.
Gerben
The problem is the first iteration of the file name… right after the /image.php
I have the same problem
This does WORKwithout the //DSC00358.JPG in the middle
http://www.scooperdude.com/wp-content/plugins/magic-gallery/image.php?width=150&height=150&cropratio=1:1&image=http://www.scooperdude.com/wp-content/plugins/magic-gallery/uploads/3/DSC00358.JPGHow can I fix this?
Thanks
BBFigured it out… I am not a coder just a sleuth!
it was a rouge . $row->url and extra ‘amp’ and ‘;’ in the code
in gallery.php
replace
line 531echo ‘<img src=”‘.WP_PLUGIN_URL.’/magic-gallery/image.php’ . ‘?width=’ .$options[‘thumb_width’]. ‘height=’ .$options[‘thumb_height’]. ‘&cropratio=1:1&image=’.WP_PLUGIN_URL.’/magic-gallery/uploads/’ . $row->albumid . ‘/’ . $row->url . ‘” alt=”‘ . $row->title . ‘” />’;
line 563
echo ‘
Hoi Gerben,
heb de volgorde nu bepaald voordat ik de afbeeldingen heb geuploaded, maar nu ist het probleem, dat de afbeeldingen soms voor en soms achter de voorafgaande afbeeling worden geuploaded – dus is het niet mogelijk een volgorde te bestemmen, ook als ik de afbeeldingen in een bepaald volgorde uploade! Sorry voor mijn velen vragen maar als je misschien een oplossing weet voor dit probleem zou ik me verheugen over antwoord!
FraukeHi Bbasilico, thanks for the info!
It should work with the image url after the / in the url, and it works for most people. I have tested your code and it seems to work for me, so I will include it in the next update!
Thanks again!
The topic ‘[Plugin: Magic Gallery] Thumbnails not showing up’ is closed to new replies.