Image Resizing/Thumbnail Generation Plugin (53 posts)

  1. davidhildreth
    Posted 10 years ago #

    im having the same problem as the three poster above me, i tried the // thing

    im also on a linux server

  2. darrenscott
    Posted 10 years ago #

    To solve the "division by zero" crap, remove folders with no images in, or simply add an image. There is no function to say "if folder contains nothing, don't do anything" so to speak.

    On your admin panel nuder options, then PixGallery, you will find at the bottom a place to choose your folder for pictures and cached images. Change this to whatever but make sure you have them, if not, create them via FTP. It's quite simple using a program like SmartFTP etc. Then add subfolders for different categories, or simply add photos to the photos folder. You do not need to touch the cache folder at all.

    Final note: When using layers, if there is any other javascript which can overlap the image, it will appear on top. An example of this can be found here: No, I meant here really!. Just click the image, should show up the SPURL image on the right as it uses javascript

  3. darrenscott
    Posted 10 years ago #

    URL above has changed, but you can browse through and get the idea with the bigger images. Will probably use "new window" function though later on

  4. jcal
    Posted 10 years ago #

    I am also having the problem with:

    Error: Photos path is invalid!
    Error: Photos path should contain subfolders to store each photo gallery!

    The folders exist in the root of my my site, does anyone have any advice?

  5. darrenscott
    Posted 10 years ago #

    Have you checked the admin page, where you can change the link to your photos folder? Make sure you have a folder for images to be cached in too :-)

  6. monkeynotes
    Posted 10 years ago #

    I can't seem to get this to produce any thumbnails. I have looked at the HTML and it is looking for the thumbs in the correct place but it is not generating any thumbs. I am sure this is a path problem, permissions on the folders are 777 and as I said it is writing the HTML to the folder correctly but just not outputting the images to that folder. Any ideas?

  7. monkeynotes
    Posted 10 years ago #

    OK, fixed it. It was having problems determining my path using the funtion:


    Since I host my site on blog.stephencarr.org the actual directory structure is:


    So when it was determining the root of my web space it just returned


    This is because my subdomain is running out of a folder on my main domain's docroot.

    I fixed this by hardcoding the correct docroot and commenting out line 54: PixGallery_DeterminePaths(); so that the determinepath function does not get called. I am pretty sure the path to your WP installation is a global WP variable anyway, you should be able to use that. Don't ask me how, I just hack things about.

  8. mray
    Posted 10 years ago #

    The correct fix for monkeynotes' issue would be some sort of platform or delimiter detection. Had it already written and working and was going to submit it but after downloading the newest version today I accidentally overwrote my changes :0/

    Perhaps this is something that could be added in a maintenance release? If I have the time I'll post the code up here myself...

  9. glennth
    Posted 10 years ago #

    I'm not sure I'm seeing the same thing. I'm not seeing any error messages when I activate the plugin. I am running this on a hosted site (running some flavor of Unix). I installed it 'plain jane' - no changes and saw no error messages BUT nothing seemed to work (put <pixgallery></pixgallery> in a page and saw nothing including no error messages). When I view page source, I do see that the plugin puts some formatting pieces in place but that is it.

    Based on that, I figured it's not finding that paths so I tried monkeynotes fix but got nothing different.

    Given the samples, this looks like it could be a great plugin but at this point I can't get it to do anything. Any ideas why?

    P.S. Other note: my site is similar to monkeynotes in that it is in a directory off of the main site so the '/images/photos' and '/images/cache' directories are off of the subdirectory where my WP install is not the root website.

  10. glennth
    Posted 10 years ago #

    I've been at this for a bit longer and tried some more including playing around with the plugin itself.

    First, I found a naive mistake (at least I think this was the correct fix). What should have been in my page instead of what you show on your site ( you show just <pixgallery></pixgallery> ) is the following:
    <?php PixGallery_PhotoGallery('<pixgallery></pixgallery>');
    I only figured that out after looking at the plugin though I guess in a way it was obvious that there was no function call so where would the pixgallery calls be read in by?

    Anyway, the heart of this post is on the plugin:

    Line 47, shouldn't it be something like:
    $PixGlobal_Url = get_bloginfo('wpurl')."some additional path";
    Note: the some additional path in your original plugin was equal to "index.php/photos/". What should this be?

    Line 48, shouldn't it be something like:
    $PixGlobal_RootWebsite = ABSPATH;
    Note: I think this gives exactly what you need here if I understand the plugin.

    Now, I've modified the <form></form> in the plugin so it will show both of these variables and let me change them. I've tried many permutations to no avail.

    Last note:
    I have a web site: http://www.kathyandglenn.com
    My blog lives down a directory though at:
    I put the storage for the images below that (which was what I thought the intent was in your almost non-existent set up instructions).
    http://www.kathyandglenn.com/gt-blog/images/photos and

    So the core variables ought to be:
    PixGallery_RootPhotos = /images/photos/
    PixGallery_RootCache = /images/cache/
    PixGlobal_Url = get_bloginfo('wpurl')."/images/photos/" /* though this doesn't work so what would */
    PixGlobal_RootWebsite = ABSPATH /* provides proper path which in my case is big long unix path */

    I know I'm being thick but it's hard sometimes to sort through others code (especially since php really is new to me!). From your site, it really does look like a great plugin and that is why I'm willing to do all this effort so I'm looking forward to getting this to work.

  11. skatopia_nz
    Posted 10 years ago #

    I really like the look of this plug-in and would love to get it to work, however...after setting it up I'm not getting any images. Please see my problem here...
    Any tips would be welcome!

    One question - should
    <pixgallery path=”/images/photos/”></pixgallery>


    <?php PixGallery_PhotoGallery('<pixgallery></pixgallery>');

    as Glennth mentioned above?



  12. ajonline
    Posted 10 years ago #

    I am having really big problems with this it says path is not secure or does not exsist. Can someone please help me out with this maybe chat im or something to walk me through it I will make it worth your while. Thanks

  13. ajonline
    Posted 10 years ago #

    Can someone help me

  14. ajonline
    Posted 10 years ago #

    I am getting this error Fatal error: Call to undefined function: get_option() in /home/candi4/public_html/wordpress/wp-content/plugins/pixgallery.php on line 871 at http://www.candidvoyeurism.com/wordpress/wp-content/plugins/pixgallery.php

  15. Soulflare
    Posted 10 years ago #

    *sigh* Is there anything comparable to this plugin? I just spent the past 4 hours trying to get it running with every hack suggested in this thread and few of my own to no avail.

  16. davidhildreth
    Posted 10 years ago #

    i wish this worked on my linux server, but i also cannot get it to work

    i settled on http://www.wildbits.de/mygallery/
    its a good replacement, and fool proof :D

  17. bunklung
    Posted 10 years ago #

  18. lkauderer
    Posted 10 years ago #

    When the pixgallery page is created, how are the subdirectories sorted and is there a way to change it? I know its not alphabetical nor chronological.

  19. mousekiss
    Posted 9 years ago #

    Hi all,

    This plugin looks pretty nice and "easy-to-install" but I still managed to make it not working.

    I always get this error:
    ' Error: Path is not secure or does not exist [/]! '

    Can anyone tell me where I did it wrong and what do I have to change to make it work?

    Here is my WP environment...

    WordPress is located in a /www/ directory on my host server.

    My PixGallery folders are:

    In my PixGallery options, the cache path is: /images/cache/

    In the page where I "call" the PixGallery plugin, I have:
    <pixgallery path="/images/gallery/"></pixgallery>

    Latest thing to precise, my "images" folder on my host server is CHMOD 755. I cannot change it unfortunately. Does this give me enough rights on this folder to make PixGallery work?

    Thanks in advance for your help and please forgive my english mistakes ;-)

  20. bunklung
    Posted 9 years ago #

    Mousekiss, I recommend you follow my instructions on my website http://www.antifart.com/2006/06/22/pixgallery-for-unix.html

    Pixgallery is tested on IIS only and is lacking in the Unix department. Good luck.

  21. winnie_wino
    Posted 9 years ago #

    Hi, has anyone solve the Error: Path is not secure or does not exist yet?

    @ bunklung: how to know if the host is Unix or not? If not then is the solution the same?

    Sorie I'm noob in php.

  22. harknell
    Posted 9 years ago #

    It's funny, I'm using Linux and the only problem I have is the "Parent Folder" link does not work properly. All it ever has is ?px=/ at the end of the url. This is true no matter how deep into folder I go, the Parent folder link is always empty. However, every other link works fine, including next/pervious folder, next/previous image, and even clicking on the location link for the parent folder!
    For the moment I might just remove that link from appearing, and place the location parent link there, but it's just weird that that doesn't function for me at all abut no one else seems to have the issue.

  23. harknell
    Posted 9 years ago #

    Quick question: It appears that the plugin uses alphabetical order to display the images in the thumbnail gallery (but in some cases it doesn't seem to follow this which is weird). Do you think that there might be a way to instead order things in a custom manner (so maybe ascending/descending filename, or possibly by when the file was added to the server so new images were always at the end or beginning)?

Topic Closed

This topic has been closed to new replies.

About this Topic