Author Topic: Notice ( 8 ): compact(): Undefined variable...... [SOLVED]  (Read 90 times)

PVI135

  • Newbie
  • *
  • Posts: 18
    • View Profile
Notice ( 8 ): compact(): Undefined variable...... [SOLVED]
« on: October 15, 2020, 05:39:10 PM »
Hi All,
a lot of us had this error when Virtual Airlines works under PHP 7.3 (maybe also for all 7.x version).

Issue is related and fixed by CAKE library.
We need to upgrade 5 files in the Cake folder.

Here the link to download the official Cake library upgrade:  https://github.com/cakephp/cakephp/pull/12487
Files impacted are:
lib/Cake/Model/Datasource/DboSource.php
lib/Cake/Network/CakeRequest.php
lib/Cake/Network/CakeResponse.php
lib/Cake/Utility/ObjectCollection.php
lib/Cake/View/Helper/FormHelper.php

I hope this will be fine also for you !

Regards,
Attilio
PVI135