• 7
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

This question already has answers here:

    • As I wrote it stops on OutputStream os = urlConnection.getOutputStream();. That part is not executed and nothing happens, app doesn't crash, just that part is not executed.

Try this add Manifest.xml

cleartextTrafficPermitted="true"

it look like this How to allow all Network connection types HTTP and HTTPS in Android (9) Pie?

  • 1
Reply Report

This is because of Apache HTTP client depreciation , So add the below line in tag.

<uses-library android:name="org.apache.http.legacy" android:required="false"/>
  • 0
Reply Report
    • I tried to add that tag and it didn't worked. Solution by Hasan Kucuk to add cleartextTrafficPermitted="true" worked.