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
Related
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'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
I am using CakePHP 2.7.
I generated MVC code using Cake Bake.
Running the project generates the following error message:-
Undefined variable: key [CORE\Cake\View\Elements\Flash\success.ctp, line 1]
What is causing this error?
I'm trying to create a SubReport in iReport 5.6 integrated with PHPJasperXML, but I'm having some troubles... Can anyone help me ?
How to pass the REPORT_CONNECTION to the SubReport? I put to use the same connection of the Main report, but it didn't work...
Notice (8): Undefined property: PHPJasperXMLSubReport::$gname [APP\Vendor\PHPJasperXML\class\PHPJasperXMLSubReport.inc.php, line 631]
Notice (8): Undefined variable: isPrintRepeatedValues [APP\Vendor\PHPJasperXML\class\PHPJasperXMLSubReport.inc.php, line 650]
Fail to connect database
I've made MODX template and transport.zip file from html template and when try to install it I get this notice:
PHP notice: Undefined index: templates
I'm using MODX cloud 2.2 version.
Could someone help me how to fix this notice?