Author Topic: Error on Admin Panel  (Read 181 times)

ridgeandgable

  • Newbie
  • *
  • Posts: 16
    • View Profile
Error on Admin Panel
« on: January 12, 2020, 01:57:13 PM »
Notice (8): compact() [function.compact]: Undefined variable: subject [CORE\Cake\Utility\ObjectCollection.php, line 128]

Also got on the home page -
Notice: A non well formed numeric value encountered in C:\xampp1\htdocs\VAM\vam\captcha\simple-php-captcha.php on line 63

ANy help please?

lesmar

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Error on Admin Panel
« Reply #1 on: April 16, 2020, 08:14:43 AM »
This was a breaking changed introduced in PHP 7.3 with compact(). Previously, you could send through undefined variables with compact(), but now it flags as an error.

compact() is still a fantastic method - but you will need to define the variables within the method that you are using it. To keep code clean and readable, I suggest you define the variables and then pass using compact() as originally intended.

I get the same message and found the above answer in a programmers forum I belong to.   I will look at the VAM code and post a fix when I find out where to set the variables so that compact works again

euk136

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Error on Admin Panel
« Reply #2 on: May 21, 2020, 03:15:55 AM »
Also got on the home page -
Notice: A non well formed numeric value encountered in C:\xampp1\htdocs\VAM\vam\captcha\simple-php-captcha.php on line 63



Hello!

To solve this, search a microtime function and add a number in brackets, like this one-> microtime(2), you have 3 microtime function in the file