Log InRegister
Quick Links : The Mindat ManualThe Rock H. Currier Digital LibraryMindat Newsletter [Free Download]
Home PageAbout MindatThe Mindat ManualHistory of MindatCopyright StatusWho We AreContact UsAdvertise on Mindat
Donate to MindatCorporate SponsorshipSponsor a PageSponsored PagesMindat AdvertisersAdvertise on Mindat
Learning CenterWhat is a mineral?The most common minerals on earthInformation for EducatorsMindat ArticlesThe ElementsThe Rock H. Currier Digital LibraryGeologic Time
Minerals by PropertiesMinerals by ChemistryAdvanced Locality SearchRandom MineralRandom LocalitySearch by minIDLocalities Near MeSearch ArticlesSearch GlossaryMore Search Options
Search For:
Mineral Name:
Locality Name:
Keyword(s):
 
The Mindat ManualAdd a New PhotoRate PhotosLocality Edit ReportCoordinate Completion ReportAdd Glossary Item
Mining CompaniesStatisticsUsersMineral MuseumsClubs & OrganizationsMineral Shows & EventsThe Mindat DirectoryDevice SettingsThe Mineral Quiz
Photo SearchPhoto GalleriesSearch by ColorNew Photos TodayNew Photos YesterdayMembers' Photo GalleriesPast Photo of the Day GalleryPhotography

Improving Mindat.orgArticle issue

14th Nov 2015 22:05 UTCJason Evans

I am having a problem with an article which I added last year, there were no problems until last week when I went to look at my article and got some script saying fatal error followed by a load of text which I could not understand.

I could paste the script if that would be of any help but dont know if it contains anything that could cause a rupture.

How can this be fixed?

Thanks.

15th Nov 2015 10:50 UTCDavid Von Bargen Manager

Fatal error: Uncaught exception 'ImagickException' with message 'negative or zero image size `/home/mindat/www/photos/0362082001402053555.jpg' @ error/resize.c/ResizeImage/2670' in /home/mindat/www/include.php:3804 Stack trace: #0 /home/mindat/www/include.php(3804): Imagick->resizeimage(1, 0, 22, 1) #1 /home/mindat/www/formattedprint.php(1421): resize_pic('/home/mindat/ww...', '/home/mindat/ww...', 1, 1, 0, 32767, 75) #2 [internal function]: piccallback(Array) #3 /home/mindat/www/formattedprint.php(63): preg_replace_callback('/<[pP][iI][cC](...', 'piccallback', 'After years of ...') #4 /home/mindat/www/article.php(165): mget('After years of ...') #5 {main} thrown in /home/mindat/www/include.php on line 3804


It is a photo of 617552


There was an error in the code you used to display the photo. The correct code is "width=500", not "width 500"

15th Nov 2015 11:40 UTCJason Evans

It seems to be fixed now, I assume you did that?

Thank you, it is much appreciated.

It's strange how the error was not picked up when I posted the article!
 
Mineral and/or Locality  
Mindat Discussions Facebook Logo Instagram Logo Discord Logo
Mindat.org is an outreach project of the Hudson Institute of Mineralogy, a 501(c)(3) not-for-profit organization.
Copyright © mindat.org and the Hudson Institute of Mineralogy 1993-2024, except where stated. Most political location boundaries are © OpenStreetMap contributors. Mindat.org relies on the contributions of thousands of members and supporters. Founded in 2000 by Jolyon Ralph.
Privacy Policy - Terms & Conditions - Contact Us / DMCA issues - Report a bug/vulnerability Current server date and time: April 19, 2024 04:34:56
Go to top of page