Hi John, Yes. I tried both 775 and 777 already. but neither of them worked.
Thanks, Jingyi On Wed, Aug 10, 2016 at 4:45 PM, <[email protected]> wrote: > > Are your permissions set to writeable on the /yourwiki/images directory. I > run mine with it set to 775 recursively. > > John Foster > > On Aug 10, 2016 3:08 PM, "Jingyi C. Shi" <[email protected]> wrote: > > > Hi Greg, > > Thank you for your response! I tried the suggestions, but still facing > same > > problems. Were there any further suggestions? > > > > I already changed the owner to be www-data, set log files and rebuilt > > images. > > > > I got debug logs like follows: > > "... > > FSFileBackend::getFileListInternal() given directory does not exist: > > '/var/www/HIWeb/dir/wiki/images/3/3e' > > FSFileBackend::getFileListInternal() given directory does not exist: > > '/var/www/HIWeb/dir/wiki/images/3/3f' > > FSFileBackend::getFileListInternal() given directory does not exist: > > '/var/www/HIWeb/dir/wiki/images/4/40' > > FSFileBackend::getFileListInternal() given directory does not exist: > > '/var/www/HIWeb/dir/wiki/images/4/41' > > FSFileBackend::getFileListInternal() given directory does not exist: > > '/var/www/HIWeb/dir/wiki/images/4/42' > > ..." > > > > I think the log is reasonable and tell no more issues. > > > > Btw, what the "preview" means in the last post was: when you open a > > "File:xxxx.png" page, it should show a preview image directly on the > page. > > But I have no preview images and thumbnails currently. > > > > Thanks, > > Jingyi > > > > ---------- My original question ---------- > > > > Hi all, > > > > Thanks to some help about my previous thumbnails question: "I uploaded a > > png image but no thumbnails created in the File page." > > > > I have tried several methods but the thumbnails are still not working. I > > still face the problems that I have neither thumbnails or preview images > in > > 'File:' pages. > > > > I have already installed ImageMagick in my Ubuntu. > > What I have tried was to: > > 1. check wiki/images/thumb/ folder, but only old thumbnails are there. > > (Yes, I used to have thumbnails several month ago.) No new ones that I > > uploaded recently are there. > > 2. chowe -R root:root wiki/images/ and chmod -R 777 /wiki/images/ > > 2. change memory consumption by increasing $wgMaxShellMemory to 409600 in > > LocalSetting.php, but still no thumbnails appears. > > > > So here are my new questions: > > 1. Small images (like 500kb) can sometimes have previews (but no > > thumbnails). But large images always no previews. How to fix? > > 2. I have a strange finding. Some jpg images can show the previews in my > > home computer but cannot show previews in my office computer. What may > > cause that? > > 3. My current MW version is 1.26. And my PHP version is a little bit out > of > > date: 5.3.10. May this cause a problem related to previews and > thumbnails? > > > > > > Looking forward to your further help. > > > > Thank you, > > Jingyi > > > > ---------- Forwarded message ---------- > > > > Message: 1 > > Date: Wed, 3 Aug 2016 09:20:40 -0400 > > From: "Greg Rundlett (freephile)" <[email protected]> > > To: MediaWiki announcements and site admin list > > <[email protected]> > > Subject: Re: [MediaWiki-l] still questions about thumbnails and > > previews > > Message-ID: > > <CANaytccrq72TEP9FpQb-mTHoZKhn37WB8F5S0e-NsMOZNj_ > > [email protected]> > > Content-Type: text/plain; charset=UTF-8 > > > > Greg Rundlett > > https://eQuality-Tech.com > > https://freephile.org > > > > On Tue, Aug 2, 2016 at 10:49 PM, Jingyi C. Shi <[email protected]> > > wrote: > > > > > Hi all, > > > > > > Thanks to some help about my previous thumbnails question: "I uploaded > a > > > png image but no thumbnails created in the File page." > > > > > > I have tried several methods but the thumbnails are still not working. > I > > > still face the problems that I have neither thumbnails or preview > images > > in > > > 'File:' pages. > > > > > > I have already installed ImageMagick in my Ubuntu. > > > What I have tried was to: > > > 1. check wiki/images/thumb/ folder, but only old thumbnails are there. > > > (Yes, I used to have thumbnails several month ago.) No new ones that I > > > uploaded recently are there. > > > 2. chowe -R root:root wiki/images/ and chmod -R 777 /wiki/images/ > > > > > > > Actually, the images directory (and subdirectories) should be owned by > the > > web server user (that's *www-data* for Ubuntu) > > > > If you enter the command > > > > ps aux | egrep '(apache|httpd)' > > > > and look at the first column, you'll be able to confirm that your > webserver > > is running as www-data > > > > Then you can change ownership on the directory and subdirectories like > so: > > > > sudo chown -R www-data:www-data ./wiki/images > > > > > > In general, you should setup a debug log file[1] to find out what's going > > wrong with MediaWiki. > > > > [1] > > https://www.mediawiki.org/wiki/Manual:How_to_debug# > > Setting_up_a_debug_log_file > > > > > > > > > 2. change memory consumption by increasing $wgMaxShellMemory to 409600 > in > > > LocalSetting.php, but still no thumbnails appears. > > > > > > So here are my new questions: > > > 1. Small images (like 500kb) can sometimes have previews (but no > > > thumbnails). But large images always no previews. How to fix? > > > 2. I have a strange finding. Some jpg images can show the previews in > my > > > home computer but cannot show previews in my office computer. What may > > > cause that? > > > 3. My current MW version is 1.26. And my PHP version is a little bit > out > > of > > > date: 5.3.10. May this cause a problem related to previews and > > thumbnails? > > > > > > > > I'm not sure what you mean by 'previews'. When you upload a file into > > MediaWiki via Special:Upload, it simply stores the file on the webserver > > and generates thumbnails as configured. Those thumbnails get stored in > the > > "thumbs" directory on the server. When you go to *Special:ListFiles* > (e.g. > > https://freephile.org/wiki/Special:ListFiles), it will show a list of > > uploaded files, with a thumbnail representation of each file. > > > > Since you are having problems with your file uploads and thumbnail > > generation, you should probably run the 'rebuildImages' script in the > > maintenance folder. > > > > cd wiki/maintenance > > php ./rebuildImages --dry-run > > php ./rebuildImages --missing > > _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
