I'm trying to call my WS from my device, but I get this error:
PHP Notice: Undefined index: in C:\wamp64\www\gcm\lib\nusoap.php on line 6637
But, when I test the WS from SOAPUI I get the correct result:
Any solution?
as per your statement, that is not an error. it is just a notice, you can ignore that.
disable php errors by error_reporting(0) and check
Related
I’m updating my first CakePHP application on a web server, but pages show errors which are at the end of this post. I can’t find the file(s) which have not uploded correctly. Thanks for help.
CakePHP version : 2.9
Error messages :
Notice (8): compact(): Undefined variable: etagMatches [CORE/Cake/Network/CakeResponse.php, line 1171]*
Notice (8): compact() [function.compact]: Undefined variable: timeMatches [CORE/Cake/Network/CakeResponse.php, line 1171]*
Notice (8): compact() [function.compact]: Undefined variable: subject [CORE/Cake/Utility/ObjectCollection.php, line 128]*
As of PHP 7.3 compact() will trigger an error when referencing undefined variables.
This has been fixed in CakePHP 2.10.13, either upgrade your application (preferred), or downgrade your PHP version.
https://github.com/cakephp/cakephp/pull/12487
My question is look like duplicate but it is not.
Error like
Notice: Constant BASE_URL already defined in
Notice: Undefined variable: nomobile in
Notice: Constant imagesize already defined in
Notice: A session had already been started - ignoring session_start() in
But there is no problem in server. and i am using
PHP version: 5.6.30 both side.
This is error disable in server so server cannot show error.
For more information
I have php 5.6 version but still face that error
I'm using Cpanel to run a codeigniter project and I got this error:
PHP Fatal error: Call to undefined function json_decode() in/home/ntn/public_html/application/controllers/Login.php on line 69
I don't know how to solve this error
How can I resolve this error?
Unless you show your code, I cannot help you because call to undefined function is means it is calling a function which is not defined or mention in your code. its not a cpanel error for sure. its an error in your code
I have a problem with running the script using scheduled cron jobs. The thing is that when I run the php script using the browser it is executed without any problems/failures etc.
But when I try to run it using crons or SSH I get weird errors:
Notice: Undefined index: HTTP_USER_AGENT in /home/loves/public_html/parser/shop_parse_class.php on line 125
PHP Notice: Undefined offset: 0 in /home/loves/public_html/parser/shop_parse_class.php on line 481
PHP Notice: Undefined offset: 1 in /home/loves/public_html/parser/shop_parse_class.php on line 482
PHP Notice: Undefined variable: cat in /home/loves/public_html/parser/shop_parse_class.php on line 538
As you can see from the errors it shows that, for example the option HTTP_USER_AGENT doesn't exist for the CURL, which is kinda weird. Maybe the problem is with the environment variables, however I have poor knowledge of linux system.
You should add the -A or --user-agent parameter to the cURL call.
You can set anything you want as user agent this way.
HTTP_USER_AGENT is a information returned by the browser, if you are running like a script, you can't use this array. Is that reason the array is empty (the message tells that the index you trying to use in array don't exists)
I've got a client who has just set up a new VPN and is attempting to install my plugin.
He's getting the following error:
Fatal error: Call to undefined method SplFileInfo::getRealPath() on the commented line below. This appears to have something to do with the ZEND libraries. Any ideas what I should tell him to do?
If you are getting the undefined error means you have lower version of PHP.
The function is supported after PHP 5.2.2
SplFileInfo::getRealPath
(PHP 5 >= 5.2.2)
SplFileInfo::getRealPath — Gets
absolute path to file
http://php.net/manual/en/splfileinfo.getrealpath.php