[Plugin: NextGEN Gallery] Can’t generate thumbnails
-
I’m having all sorts of problems trying to get the thumbnails to be generated. When the image uploads or if I try to generate new thumbnails I get an error about a nggProgressBar being undefined. I’ve tried copying over the plugin into my wordpress plugin directory and reactivating it but that doesn’t seem to help. Has anyone else seen this type of problem?
Thanx!
-
I’ve also been having trouble generating thumbnails with the latest versions of WP and NGG. At first I thought the problem was with all pictures but after more trials I realized that some worked and some did not. It had nothing to do with file size, it seems to have more to do with the width (in pixels specifically) of the image. The error message I receive is
Fatal error: Out of memory (allocated 55574528) (tried to allocate 3778 bytes) in /hermes/bosweb/web203/b2034/sl.byronwiebe/public_html/wp-content/plugins/nggallery/lib/gd.thumbnail.inc.php on line 183
After trying numerous pictures I realized that the second number (in this case 3778) was either the exact width of the picture (in pixels) or a multiple of it. I changed the pixel width of picture from 3776 to 3778 uploaded both pictures and, as I say, the first “tried to allocate” 3776 and the second, 3778. I am not a programmer at all, I have no idea if those numbers are supposed to align or not, it seems odd to me but maybe someone has a reason for this, or maybe this will help someone find a solution.
The issue with the missing menu tabs in the backend just gave me an idea: I checked all the files that NGG adds to the head and got 403 errors for all of them!
The files I am talking about are:
http://www.domain.com/wp-content/plugins/nextgen-gallery/admin/css/jquery.ui.tabs.css?ver=2.5.0
http://www.domain.com/wp-content/plugins/nextgen-gallery/admin/css/nggadmin.css?ver=2.7.0
http://www.domain.com/wp-content/plugins/nextgen-gallery/admin/js/jquery.MultiFile.js?ver=1.1.1
http://www.domain.com/wp-content/plugins/nextgen-gallery/admin/js/swfupload.js?ver=2.2.0
http://www.domain.com/wp-content/plugins/nextgen-gallery/admin/js/swfupload.handler.js?ver=1.0.0
http://www.domain.com/wp-content/plugins/nextgen-gallery/admin/js/ngg.ajax.js?ver=1.0.0
http://www.domain.com/wp-content/plugins/nextgen-gallery/admin/js/ngg.progressbar.js?ver=1.0.0None of these show up when I call them directly in the browser. Not even if I leave the query string at the end away. As if the files weren’t there, but they are!
Other (native WordPress) files however, do work. For example:
http://www.domain.com/wp-includes/js/jquery/jquery.js?ver=1.2.6
I don’t know – maybe this somehow related to permalinks/mod_rewrite?
Hi!
I also have this problem.I can upload the pictures OK, even big ones, but no thumbnails are created. I get an error message saying: “Error Exceed Memory Limit. Requires 71.64 MB.”
This is independet of the size of the image, I get the same error when I have uploaded images of 600 kB for instance. So it seems as if the program somehow tries to create really huge thumbnails?
The host I am using have a limit of 100MB and I can’t change that…
Any ideas?
I really like NextGEN, very easy to use, however I have also been having this problem.
I tried the following:
Completely disabled and deleted the plug-in.
Reinstalled latest version.Still had the problem.
Reduced image from 330kb to 250kb.
Still had the problem.
Reduced image from 250kp to 80kb.
and it works perfectly!
It appears that it is a problem with my webhosts memory allocation, not sure if I can change that, or get it changed.
This is very annoying though, as an 80kb photo does not have the same impact as a 250kb photo and artifacting is really noticable.
Do love how NextGEN works though, so for the mean time I will stick with it, and it appears I can get away with images of around 150kb at the most.
Server settings:
* Operating System : FreeBSD
* Server : Apache/1.3.29 (Unix) PHP/5.2.5 FrontPage/5.0.2.2623
* Memory usage : 11.32 MByte
* MYSQL Version : 5.0.22
* SQL Mode : Not set
* PHP Version : 4.4.8
* PHP Safe Mode : Off
* PHP Allow URL fopen : On
* PHP Memory Limit : 32M
* PHP Max Upload Size : 8M
* PHP Max Post Size : 8M
* PHP Max Script Execute Time : 30s
* PHP Exif support : Yes ( V1.4 )
* PHP IPTC support : Yes
* PHP XML support : YesAlex, I can’t find your email address, but I have lots of free time at the moment and would be happy to help anyway I can with testing.
Yay!
I have found a work around, it is a bit involved, but it does work.
Resize the images to below 150k. Doesn’t matter what they look like.
Create a gallery and add the images.
Now, using an ftp programe simply replace all of the images with larger sized and high quality ones. Just make sure they are named exactly the same.
They can be found in /wp-content/gallery/name of galleryWith a good ftp program and some clever workflow with photoshop and lightroom, this is not to hard to do and the resizing and renaming can be automated.
I had the same kind of problems. I deleted the whole db using the setup function, removed the pluging and reinstalled everything from scratch. It works like a charm now.
I had this same exact problem. I had three galleries in different folders all on the same server. One worked, the other two did not. I fixed it on my end by adding a .htaccess file with this in it to make sure it was recognizing I had MySQL 5.
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .phpAlso, on my overview page this entry is set to off. I noticed that on the two that did not work, this was set to ON.
PHP Allow URL fopen : Off
When that was set to on – it did not work.
I am also on 1 and 1. Hope that helps.
OK I am seriously a newbie to WP, PHP, and MySQL so I need a little more advise. Where do I put the .htaccess file, and how do I set the PHP Allow URL fopen value to off.
Thanks,
JeremyFor me it was just a problems off permission folder don’t forget to put also permission “777” to the thumbs folder in your gallery folder.
The error you see doesn’t tell you anything except that there was a problem with the AJAX generating the thumbnails.
e.g if your AJAX post looks like this:
_wpnonce=b67axxxxx
action=ngg_ajax_operation
image=85
operation=create_thumbnailthen the response should look like this:
1
Sometimes you’ll get a blank response back, with no body – and it’s then that you’ll see [object XMLHttpRequest] as the error in the management panel.
In other words, there may be a range of reasons why you see this error. Better error reporting would help us all.
Personally? I can see all my thumbnails get generated, but I still get this on a random selection of the images in a gallery – even when the originals were less than 50k in size.
So this issue, I think, still unsatisfactorily remains. 😉
Incidentally, I notice that all my failing AJAX requests take exactly 10seconds (to the 1ms).
So it’s not permissions, or size, but seems to be some sort of weird internal timeout. (Everything’s local, or so I thought…)
l am also having same problem, thumbnails cant be created with big images, l dont know why, but when l upload very small images its ok without any error message but when l upload big images it returns with same memory error message… still couldnt solve it searching…
see this link
http://www.visser.com.au/blog/thumbnail-generation-php-memory-limit-nextgen-gallery/uncomment line #168 remove the //)
before @ini_set('memory_limit', '128M');on /wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.phpThis is possible, but a lot of hoster didn’t allow to set the php.ini via a script.
I had the same problem with the thumbnails, but it went away after upping my memory limit to 70Mb in my php.ini file.
It did work great in my developer server (xampp), and in the real server (I asked my hosting to up my memory limit for me).But I still get:
ID 1: A failure occurred
[more]
[object XMLHttpRequest]This happens when trying to resize images. (bulk option, even if just choosing 1 photo).
Also the “Edit Thumb”/”Customize Thumbnail” option doesn’t work, when selecting a new area and clicking Update it says in red “Error updating thumbnail”.I hope that somebody can find a solution or at least an explanation for the XMLHttpRequest error. I’m sure it has something to do with the GD Library.
Thanks for this great plugin.
The topic ‘[Plugin: NextGEN Gallery] Can’t generate thumbnails’ is closed to new replies.