|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
I just moved my site from a Linux host to a Windows host. Now the Gallery isn't saving the uploaded photos.
It numbers them properly but nothing shows up in the default location forum/gallery/default/*
Secondly I just noticed that my SQL log files aren't being written either.
Any chance these are config.inc.php problems?
---EXAMPLE COMPARISON OF OLD VERSES NEW---- My original file shows --> SESSION_PATH' => '/home/virtual/site40/fst/var/www/html/forum/xxx My current file shows --> SESSION_PATH' => '/Inetpub/vhosts/vccachat.org/httpdocs/forum/xxx
Last edited by Bill B; 01/08/2008 9:08 PM. Reason: added sample line items
--BIll B
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
Try creating and running a PHP info page to review what's going on with PHP Make sure the permissions are correct.
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
okay... where do I look in the list? What am I looking for?
System Windows NT WIN2P 5.2 build 3790 Build Date May 31 2007 09:36:39 Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" Server API ISAPI Virtual Directory Support enabled Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File E:\Additional\PleskPHP5\php.ini PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety enabled Zend Memory Manager enabled IPv6 Support enabled Registered PHP Streams php, file, data, http, ftp, compress.zlib Registered Stream Socket Transports tcp, udp Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.* --continued--
--BIll B
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
Okay --- Is this an issue? Some of the PATHS have a DOS backwards slash, while others have a "web style" forward slash.
I always thought that if it had a drive letter, then it should be a backwards slash.....
EXAMPLES: APPL_PHYSICAL_PATH E:\inetpub\vhosts\vccachat.org\httpdocs\
session.save_path e:/Inetpub/vhosts/vccachat.org/httpdocs/forum/sessions
--BIll B
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Which are you using for your image handling, GD or ImageMagick? ImageMagick can be a bit tricky on windows servers regarding permissions.
As far as PHP is concerned the forward slashes are fine.
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
All I get is a blank screen.....
-------------- and this on the PHP info:
GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.1.9 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled
Last edited by Bill B; 01/08/2008 11:28 PM. Reason: added PHP info
--BIll B
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Hmm, that's strange. Can you try temporarily enabling captcha and see if the image shows up?
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
I enabled it and got the blank screen... except there's a small rectangle in the upper left corner which is a slightly different shade of white than the rest of the screen.
--BIll B
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
It sounds like something is going wrong with GD possibly but with no output to that URL that I gave you it's a bit strange. Is your php.ini set so it only logs errors to the error log, or does it display them in the browser? You might try checking your webserver error logs to see if there is any info there.
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
--BIll B
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
HELLO!!! Finally got an error log reading back from my HOST....
Where did Gallery47 come from? Any ideas?
=======HOST REPLY ABOUT MY Error Log================= Once I click "submit" the image is uploaded to vccachat.orghttpdocsforumtmp folder. Then your scripts are trying to move the image to folder which does not exist: vccachat.orghttpdocsforumgallery47
12:33:26 AM w3wp.exe:25752 OPEN E:Inetpubvhostsvccachat.orghttpdocsforumgallery47medium327.jpg PATH NOT FOUND Options: Open Access: Read
12:37:00 AM w3wp.exe:25752 QUERY INFORMATION E:Inetpubvhostsvccachat.orghttpdocsforumgallery47full328.jpg PATH NOT FOUND Attributes: Error
12:37:00 AM w3wp.exe:25752 OPEN E:Inetpubvhostsvccachat.orghttpdocsforumgallery47medium328.jpg PATH NOT FOUND Options: Open Access: 00100002
12:37:00 AM w3wp.exe:25752 OPEN E:Inetpubvhostsvccachat.orghttpdocsforumgallery47thumbs328.jpg PATH NOT FOUND Options: Open Access: Read
Please make sure that path to "full", "medium" and "thumbs" folders is set properly.
--BIll B
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
It looks like all of the slashes are being stripped. You may have to edit the FULL_PATH in the config and specify double backslashes if it's set to a windows style path:
E:\\Inetpub\\vhosts\\vccachat.org\\httpdocs\\forum
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
okay... editing... standby, I'll let you know the results.
--BIll B
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
well.... close but no cigar.
Edited the path successfully using the double back slash. Got a green OKAY for "exists" and is "writeable".
Then removed the E: and it still works.. or rather doesn't work, but is still shown to be valid.
I even created a directly called "gallery47" to see if that would act as a source... but nothing happened.. apparently when trys to transfer the graphic from "temp" to "gallery" something is screwy.
Any more ideas? I've been working this for 7 days now... :-(
Submitted TWO trouble tickets to UBB, but no response.
--BIll B
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
I'll need to look for your tickets. Just checked earlier and didn't have any new ones, but will check again in case they are in a different category.
As for the gallery. It shouldn't actually be gallery47. It should be creating a folder under gallery entitled 47 and then one underneath there for the different sized images, so:
gallery/47/thumbs gallery/47/medium gallery/47/full
Let me go check the support system and see if I can find your ticket.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Found your ticket, working on it now.
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
yep... I see your posting... AND I MODIFIED THE SESSION PATH and that seemed to fix it!!!!!!!!!!!!!!!!
I can see your posting and my last couple of tests....
The double back slashes did the trick!!!!
--BIll B
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Actually it was a bit more than that. I explained it in the ticket. Safe mode was on when you were on your linux server, but off on the new server. So, the directory was never created that it's now trying to put the images into.
I've created the directories, and we'll need to document this as one thing to check when a site is moved.
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
Whoops.. were are the graphic files being stored?? They don't show up under GALLERY.
--BIll B
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
They are stored in gallery/47/(thumbs|medium|full)
47 is the forum id. On a server where safe mode isn't enabled, a directory is created for each gallery forum. It's much better for performance instead of throwing all of them into a single directory like we have to do with safe mode enabled.
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
Okay, I see them now... yes, I was wondering how many files I could save to that directy before it became sluggish..
So the first 200 files will remain in the "Gallery" folder without any forum ID?
--BIll B
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
correct, and that won't cause any issues, since the directory they are stored in is saved in the database, so it knows where to look.
|
|
|
|
Joined: Oct 2006
Posts: 358
enthusiast
|
enthusiast
Joined: Oct 2006
Posts: 358 |
Thank you!! This was kind of a shame to give them the Gallery on Thanksgiving (during an upgrade) and then lose it Dec 27th after moving to a new Host!!! Ha!
(I'm still thinking about going back to Linux though. Moving a 150 Meg database to Windows was no fun.)
--BIll B
|
|
|
|
Joined: Nov 2006
Posts: 3,095 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095 Likes: 1 |
Moving a 150 Meg database to Windows was no fun.) I have to deal with a 60GB database on Windows every day for backups and maintenance. What a pain that is.
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (Ruben),
802
guests, and
202
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|