Details
-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
None
-
*Location*: http://docs.couchbase.com/developer/php-2.0/manage-beers.html
*User-Agent*: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
*Referrer*: http://docs.couchbase.com/developer/php-2.0/tutorial-intro.html
*Screen Resolution*: 1366 x 768
Description
Please correct the errors mentioned below
=========================================
Errors in List action of beers markup
- An extra closing parentheses in line 6. Remove it to make the code run properly.
- A CouchbaseMetaDoc object is supplied to the json_decode function in line 15. The parameter supplied to json_decode must be $doc->value in-order to make the code run properly.
Errors in Show action of beers markup
- A CouchbaseMetaDoc object is supplied to the json_decode function in line 6. The parameter supplied to json_decode must be $beer->value in-order to make the code run properly.
Errors in Edit action of beers markup
- A CouchbaseMetaDoc object is supplied to the json_decode function in line 7. The parameter supplied to json_decode must be $beer->value in-order to make the code run properly.
- The set function used in line 37 is deprecated in SDK 2.0. Function upsert must be used instead of set to make the code run properly.
Errors in Search action of beers markup
- $options declared in line 6 is not used in the application. Remove it to give more clarity to the code.
- A CouchbaseMetaDoc object is supplied to the json_decode function in line 25. The parameter supplied to json_decode must be $doc->value in-order to make the code run properly.
Reporter: Finny Abraham
E-mail: finnyabraham@gmail.com