Wpis z mikrobloga

#php #androiddev #programowanie

url: [http://droidhouse.pl/sens/admin/index.php/api_new/register?email=radioideaxp@gmail.com&type=googleplus&first_name=GalAnonim&last_name=GalAnonim](http://droidhouse.pl/sens/admin/index.php/api_new/register?email=radioideaxp@gmail.com&type=googleplus&first_name=GalAnonim&last_name=GalAnonim)
09-28 22:59:58.456 11054-11054/com.cash.reward.gift.cashanka I/System.out: 
09-28 22:59:58.456 11054-11054/com.cash.reward.gift.cashanka I/System.out: #### A PHP Error was encountered

09-28 22:59:58.456 11054-11054/com.cash.reward.gift.cashanka I/System.out: Severity: Warning

09-28 22:59:58.456 11054-11054/com.cash.reward.gift.cashanka I/System.out: Message: Cannot modify header information - headers already sent by (output started at /home/idradio/public_html/sens/admin/application/controllers/api_new.php:1)

09-28 22:59:58.456 11054-11054/com.cash.reward.gift.cashanka I/System.out: Filename: libraries/Session.php

09-28 22:59:58.456 11054-11054/com.cash.reward.gift.cashanka I/System.out: Line Number: 675

09-28 22:59:58.456 11054-11054/com.cash.reward.gift.cashanka I/System.out: {"RESULT":"YES","Message":"Login Successfully","Data":{"id":"4","facbook_user_id":"","google_user_id":"","wallet_id":"6f8de6","type":"googleplus","parent_id":"0","first_name":"GalAnonim","last_name":"GalAnonim","email":"radioideaxp@gmail.com","password":"","encrypt":"","activation_code":"a678c62137fc71555bed3b116cbf9341","invation_code":"399d4","rewards_checkin":"0000-00-00 00:00:00","points":"0","is_active":"Y","is_usecode":"N","paypal_account":"","device_id":"","gcm_id":"","registration_date":"2016-09-28 22:47:06","last_login_date":"2016-09-28 22:47:06","last_modified_time":"2016-09-28 22:47:06","user_id":"4","faq_content":"<\/p>**Frequently Asked Questions<\/b><\/div>1. **How to start?\u00c2\u00a0<\/strong>
<\/li><\/ol>Simply Start by Creating an Account, and Complete Offers, and Redeem Prizes Using Your Credits Simple and Fun!<\/p>Q:\u00c2\u00a0**Why should I use Sensible Wallet?<\/strong><\/p>A: You can use it in order to earn credits by using free apps from our sponsors and turn earned credits to cash in PayPal and\/or likes and subscribers in social networks. You will be able to earn real money and\/or make social media activity absolutely free without spending your own money. This is bilateral process which helps our sponsors to promote their new interesting apps and you to earn from your interest and loyalty.<\/p>Q:\u00c2\u00a0**Who can use Sensible Wallet?<\/strong><\/p>A: You can use Sensible Wallet app if your device follow necessary requirements: Android 2.3 and higher, verified Facebook or Google account.<\/p>
1. **How to Sign In.<\/strong><\/li><\/ol>Q:\u00c2\u00a0**Do I need a verified Facebook account?<\/strong><\/p>A: Sensible Wallet app does not cooperate with bots. You can log in Via Facebook, Google, or Twitter. Your Email Must be Verified. To avoid bots access to our app we use Facebook ID or Google ID to find out whether you are a person or a bot. Your Facebook ID or Google ID is your personal information which we cannot and will not use in any case. While connection our app to your social network account you will provide us only with basic information from it. You have the right to disconnect your account any time you want. But this will cause the locked access to app.<\/p>Q:\u00c2\u00a0**How to verify my Facebook account?<\/strong><\/p>A: You can find all necessary information over this by\u00c2\u00a0click here<\/a>.<\/p>Q:\u00c2\u00a0**Can I earn Credits on more than one device using the same Facebook or Google sign-in?<\/strong><\/p>A: Yes. Also note that the ?redits you earn are associated with each your Facebook or Google account, not your device.<\/p>Q:\u00c2\u00a0**How to sign out from the Sensible Wallet?<\/strong><\/p>A: Go to the Slider Menu and Click LogOut to Switch Accounts<\/p>
1. **Apps and Sponsors<\/strong><\/li><\/ol>Q:\u00c2\u00a0**What should I do in case of not receiving the credits from the sponsor\u00e2\u20ac\u2122s apps?<\/strong><\/p>A: You will get your credits after you Download and Start the apps from our sponsors. If you did everything correctly and did not receive your credits, our support team will help you to solve your situation as soon as possible. Please be sure to follow all rules in order to get your credits in time:<\/p>
* Always select the app from the list of Sensible Wallet sponsors before you download one.<\/li>* Always use the app after download. Just download is not enough.<\/li>* You have the right to get credits only for the first download of the app. So be sure you download it for the first time.<\/li>* Credits cannot come to you in a minute after your download. Sometimes you have to use it in order to get to the next level and to get access to your credits. Every app has its own rules according to the accrued credits. One must read the description of the app carefully before the download.<\/li>* Technical rea
09-28 22:59:58.456 11054-11054/com.cash.reward.gift.cashanka I/System.out: .........jsonresponse.....register
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: org.json.JSONException: Value (JSONObject.java:160)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at org.json.JSONObject.(JSONObject.java:173)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at com.sensiblewallet.ActivityLogin$override.onWebServiceActionComplete(ActivityLogin.java:199)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at com.sensiblewallet.ActivityLogin$override.access$dispatch(ActivityLogin.java)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at com.sensiblewallet.ActivityLogin.onWebServiceActionComplete(ActivityLogin.java:0)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at com.commonutility.WebService.onPostExecute(WebService.java:74)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at com.commonutility.WebService.onPostExecute(WebService.java:10)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at android.os.AsyncTask.finish(AsyncTask.java:651)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at android.os.AsyncTask.-wrap1(AsyncTask.java)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at android.os.Looper.loop(Looper.java:148)
09-28 22:59:58.457 11054-11054/com.cash.reward.gift.cashanka W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5443)
09-28 22:59:58.458 11054-11054/com.cash.reward.gift.cashanka W/System.err: at java.lang.reflect.Method.invoke(Native Method)
09-28 22:59:58.458 11054-11054/com.cash.reward.gift.cashanka W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
09-28 22:59:58.458 11054-11054/com.cash.reward.gift.cashanka W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
**********************
  • 7
  • Odpowiedz
  • Otrzymuj powiadomienia
    o nowych komentarzach

@priseffects: wina leży po stronie PHP. Zobacz w Session.php w linii 675 czy nie próbujesz zrobić czegoś z nagłówkami odpowiedzi (sessionstart, setcookie, header, może coś innego tego typu), i zobacz czy to masz dobrze pomyślane. Jeśli tam jest okej - zobacz czemu plik api_new.php zaczyna zwracać jakąś odpowiedź - być może musisz włączyć buforowanie wyjścia wcześniej (możesz w php.ini włączyć automatyczne buforowanie), bo zaczynasz zwracać odpowiedź zanim jeszcze ustawisz
  • Odpowiedz
@kao3991: wszystko działało ;) ten kod jest modyfikowany
strona androida:
usunąłem z funkcji rejestrowania kilka parametrów do jsona, np. gcm i deviceid
tyle, że usunąłem je też z PHP i się rozwaliło ;)
  • Odpowiedz