RE: array variabe reference failing.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have solved this issue:

There was another file at the referenced at the bottom of the error_log that was not given the correct path for require.
I would expect that that error would have been listed in error_log before the error I am asking about in the original
post.

Thanks for time and attention
JK

original query message:

I have this entry in error_log on my remote site:

PHP Notice:  Undefined variable: _globalJS in /home/jekillen/public_html/oldSite/view/classes/controlerClassGLBS.php on line 55

in controllerClassGLBS.php I have
$_globalJS = array(); // js files to be sourced throughout the site
$_globalJS[''] = '';

Why is $_globalJS not being seen?

PHP Version 7.4.27

On my local dev server is PHP Version 7.1.33
and without any change it works as expected.




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux