Hello,
I was running G2.1 on a MacOS server before the server crashed. Fortunately enough, I had a recent backup of the gallery folder (including the G2data folder) and of the Mysql db. I have moved to a Linux server: I copied the full G2 folder and tried to have the same directory hierarchy as the original one, restored the Mysql db (without changing the names of the tables). I had errors with STATS FAILED messages: they were eratic and I noticed that some albums were missing. I then decided to install the G2.3 version on the top of that. Now everything is working properly except that some albums are missing. I tried to perform all the maintenance operations. What is weird is that my gallery contains 1318 items: When I do a "Build all thumbnails/resizes", it find the 1328 items but G2.3 display only 701 items. Is there a way to restore the missing albums or am I forced to reload all the missing images?
Many thanks in advance for your help!!
Gallery version (not just "2"): 2.3
PHP version (e.g. 5.1.6): 5.1.6
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 2.0): Safari 3.2.1.
Posts: 16504
Did you follow this guide?
FAQ: How can I move my gallery installation from one server to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 30
Yes, step by step...
Posts: 30
I just tried to add a new album and this is the mess: the thumbnails are not the right ones: it seems that G2 is taking pictures of the missing albums. The right pictures appears only when I click on the full resolution image (the 640x480 is not the correct one). I tried to rebuild the thumbnails but it did NOT correct the mess. Furthermore, during the rebuild process, I could not see the progression bar: it was too quick as compared to G2.1 (ie the previous version that I was using before the crash). Any help will be appreciated...
Posts: 16504
Please supply your system info and a link to phpinfo. This link explains how to do that:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 30
Here is the link to the PHPInfo: http://www.calinico.fr/caligiuri/gallery2/phpinfo.php
Concerning my System info, it is hosted (it's not my server). I only know that it is a Linux server. As far as I know, it is running under Apache 2.0.54. Let me know if you need additional info. Many thanks in advance for your help.
Posts: 16504
For the system info, go to Site Admin > Maintenance and run the "System Information" task. Copy and paste all of that info here.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 30
Here it is:
Posts: 16504
Here's what I would try. Try disabling the EXIF module and try getting ImageMagick or NetPBM working, then disabling the GD module. Both EXIF and GD, GD especially eat up more resources than ImageMagick or NetPBM. Then with either just ImageMagick or NetPBM installed and working try rebuilding the thumbnails and resized versions. If it's still not working when you do that from Site Admin > Maintenance, then try rebuilding just the thumbnails of an album, then the resized versions to help break it down into smaller chunks to process.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 30
Thank you nivekiam!
I will give a try to your solution. First, I need my provider to tell me the path to the two toolkits on my server (I tried '/usr/local/bin/' but it doesn't work). When ImageMagick or NetPBM will be installed, I'll let you know if your solution solved my problem.
Regards.
Posts: 30
When trying to configure the ImageMagick toolkit, and testing the setting in G2.3, I have the following message:
When clicking on 'Testing setting button':
What is going wrong???
Posts: 16504
As far as I can tell from those error messages is that Gallery isn't finding ImageMagick. Please verify from your host if ImageMagick is installed on your server and where the binaries are.
If you have shell (SSH) access you can just type whereis convert at the command line and it will tell you where the binary is. You can also just type convert and it should list a large list of options, if ImageMagick is installed on the server.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 30
I will contact my host to check (I have no SSH access). I keep you informed.
Posts: 30
The IT guys of my server tried to help me:
Now, I have the following errors:
And the debug report is:
The IT guys told me that the script found the binaries but wasn't able to verify them. They therefore believe that the issue may depend on the script rather than from the server...
I think that I will start over from a clean install and re-upload my pictures: it will be faster...Unless one of you have a clever idea before tonight...
At any rate, thank you so much for your kind help!!
Regards
Posts: 16504
Those "IT" guys need to make the binary files executable
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 30
They told me that the bin files are executable. I believe that I give up...
Thank you for everything
Posts: 16504
According to Gallery they are not executable or there is a problem executing the binary. Perhaps it has something to do with the user the webserver or PHP runs as. Either way their server has a configuration issue.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 30
The ImageMagick libraries are still not working while the people that host my server claim that the binaries are executable. Well, I decided to re-install G2.3 from scratch and I have re-uploaded everything. Still working only with GD. ImageMagick would still not work. Furthermore, the 'rebuild thumbnails' is still a matter: Here is the (long) bug report issued by G2:
I would appreciate if one of you could tell me what is still going wrong...
Posts: 30
The 'IT guys' of my server made a test page to demonstrate that ImageMagick is functionning properly:
The test page is here: http://www.calinico.fr/CodePHP/gallery2/test.php
Is this help to find where the problem is?
Posts: 27300
disable the GD toolkit.
Why not user netpbm as a toolkit. We offer pre-compiled versions on the download page.
FAQ: I am having trouble configuring a graphics toolkit (ImageMagick, NetPBM or ffmpeg). Help?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 30
It still doesn't work after inactivation of GD. Since I am using a shared server, I cannot install what I want. I may ask the provider to install netpbm...
Posts: 27300
You can infact install netPBM. Directions from the FAQ.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 30
So, I have tried to install netPBM as mentioned in the Download section for binaries. I chmod to 755 (I also tried with 777 with same results) and got this in G2 (admin section):
And in the debug section:
I seems that G2 will never work on this server!! I'm becoming quite nervous about that.
Posts: 27300
Seems to be a permissions issue.
please post a php info link:
FAQ: What information is required when I ask for help in the forums?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 30
http://www.calinico.fr/phpinfo.php
Thank you for your help.
Posts: 27300
Seems that memory should not be an issue.
Seems that open_basedir should not be a problem.
Safe mode should not be the issue.
That leaves permissions. Did you chmod the files as well as the direcotry for netPBM?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 30
The permission of the netPBM folder (and files inside) is set at 755. I tried with 777 without further success. The files (I guess you intend the g2data folder) is set with 755 permission. The files inside (ie images) are set with 644.
The permissions of the other folders in the g2data are as follows:
album (folder): 777 (and the album folders inside this are set at 755)
cache (folder): 777
ht (file): 777
install_28bb9c828d.log (file): 644
locale (folder): 755
locks (folder): 777
plugins_data (folder): 777
smarty (folder): 777
tmp (folder): 777
versions.dat: 644
Is this correct?
Posts: 27300
Sorry I don't have a clue now.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 30
Stop to torture your brain: my §&$#@!'?! host just mailed me that they REALIZED (after a number of exchanged mails on this issue!!!) that the development environment changed : Now, on their shared server (my case), it is not possible to run anything else than PHP. Let me tell you that the chance that I change hosting service are high!! Sorry to have bothered so many people here while the guilt was the server.
Many thanks to all of you.
Posts: 16504
All right, then I'll go ahead and post what I was going to post. And what I almost posted here http://gallery.menalto.com/node/86947#comment-304952 I could see right then and there your "IT" people didn't and don't have a clue.
Your "IT" people for your "web host" should know their configuration. Apparently they do not. Heck it even looks like they don't configure and manage their own servers. Your "host" is most likely just a downstream reseller of hosting services and they have ZERO physical access to the servers and are just reselling services they have NO control over.
Get a real host. A host who owns, controls and have PHYSICAL access to their own servers, networking equipment AND their own data center. It's going to cost more than $5/month, but you get what you pay for and you'll get much better service.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 30
Nivekiam, you are definitively right! It took them 10 f&@è§èing days to know that ImageMagick and netPBM cannot run on "their" server. No doubt that I will change. Just for the rest of you that might be interested, the hosting service is PHPNux. All that mess is worth some publicity, right? I'm sorry that I made all you guys lose your time...
Posts: 27300
We use to have a hosting forum where you could rant about bad hosts and give you good experience as well, but spam was taking over and we had to nuke it.
You are welcome to post your rants about your experience with your host in the services or general feedback forums.
Good luck finding a good host that fits your needs.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team