Hi guys, I’m creating an ionic mobile application and I use php files to post data to my server. This is the error which is coming after I click the button.
And I checked the PHP file by copying the URL in the browser. It shows an error like this.
" Notice: Trying to get property of non-object in /storage/h4/227/1095227/public_html/PHP Files/signUpQuery.php on line 44
Notice: Trying to get property of non-object in /storage/h4/227/1095227/public_html/PHP Files/signUpQuery.php on line 45
Notice: Trying to get property of non-object in /storage/h4/227/1095227/public_html/PHP Files/signUpQuery.php on line 46 "
Waiting for a quick response from you guys. Thank you!
Notice: Trying to get property of non-object in /storage/h4/227/1095227/publichtml/PHP Files/signUpQuery.php on line 44_
Notice: Trying to get property of non-object in /storage/h4/227/1095227/publichtml/PHP Files/signUpQuery.php on line 45_
Notice: Trying to get property of non-object in /storage/h4/227/1095227/publichtml/PHP Files/signUpQuery.php on line 46 "_
Base on these error logs and the php file you attached seems like your PHP $request did not received your data. Try dump your $request before assigning see what did your PHP received .
And the second file that is requested? Is it requested at the same time?
From what I see in your first image in your first post your app is actually doing an OPTIONS request to figure CORS out. This means the Ionic app never actually DOES a POST because it thinks it is not allowed to.
Why is it now only one file that is being requested? What changed?
What we need to know is what kind of request is made for the file: POST or OPTIONS?
The OPTIONS request has to be answered with the correct headers so the POST request will be made.