Author Topic: Cloud recipe corrupt?  (Read 3408 times)

Offline pintlicker

  • BeerSmith New Brewer
  • *
  • Posts: 2
  • BeerSmith 2 Rocks!
Cloud recipe corrupt?
« on: May 31, 2012, 12:12:38 AM »
I had a recipe for a double IPA I was working on and had saved it to the cloud.  I think it was working on Monday and I'm sure I saved it when I closed Beersmith.  Now when I go to it in beersmith it has lost all ingredients and when I go via the online interface at URL http://beersmithrecipes.com/viewrecipe/8828/double-ipa I get

Batch Size: 5.00 gal   Style: Imperial IPA (14C)
Boil Size: 6.52 gal   Style Guide: BJCP 2008
Color: 7.6 SRM   Equipment: Pot and Cooler ( 5 Gal/19 L) - All Grain
Bitterness: 77.3 IBUs   Boil Time: 90 min
Est OG: 1.078 (18.7° P)   Mash Profile: Single Infusion, Light Body, No Mash Out
Est FG: 1.013 SG (3.4° P)   Fermentation: Ale, Single Stage
ABV: 8.5%   Taste Rating: 30.0
Warning: usort() expects parameter 1 to be array, boolean given in /home/beersmit/public_html/cloud/lib/show_ing.php on line 47

Warning: Invalid argument supplied for foreach() in /home/beersmit/public_html/cloud/lib/show_ing.php on line 64
Ingredients

I do have a version in my email so I can get it back so its no big problem, but its probably worth someone having a look into what happened with it. 

thanks

Stu

Offline BeerSmith

  • Brewer, Author, Patriot
  • BeerSmith Administrator
  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 5592
  • BeerSmith - take the guesswork out of brewing!
    • BeerSmith
Re: Cloud recipe corrupt?
« Reply #1 on: May 31, 2012, 08:30:28 AM »
Thanks,
  Could you leave it up there unchanged for a bit and I will download the raw BSMX and take a look at it.  It certainly looks like something in the ingredients section is corrupt.

Brad
Get a free trial of BeerSmith 3 here

Offline pintlicker

  • BeerSmith New Brewer
  • *
  • Posts: 2
  • BeerSmith 2 Rocks!
Re: Cloud recipe corrupt?
« Reply #2 on: May 31, 2012, 01:46:09 PM »
No problem Brad, I've created another one there anyway.

Stu

Offline BeerSmith

  • Brewer, Author, Patriot
  • BeerSmith Administrator
  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 5592
  • BeerSmith - take the guesswork out of brewing!
    • BeerSmith
Re: Cloud recipe corrupt?
« Reply #3 on: May 31, 2012, 02:07:12 PM »
Hi,
  I think I tracked it down - the recipe had no ingredients, but the web (php) code was still trying to sort and display the empty ingredient array.  I've corrected the code online.

Brad
Get a free trial of BeerSmith 3 here

Offline BeerSmith

  • Brewer, Author, Patriot
  • BeerSmith Administrator
  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 5592
  • BeerSmith - take the guesswork out of brewing!
    • BeerSmith
Re: Cloud recipe corrupt?
« Reply #4 on: June 29, 2012, 08:51:59 PM »
Also - I've now added an automatic archiving feature for all "Gold" or higher members.  If you make an edit to a recipe in your cloud folder, all older versions will also be archived in a separate location so you can recover them in the future.

You can access the older versions by logging into your cloud account on the web, opening the recipe and clicking on the "Older Versions" link next to the Bookmark link below the recipe title.  It will only show up if you are a gold member or higher.

Cheers,
Brad
Get a free trial of BeerSmith 3 here