dgzyk / phpvirtualbox

Automatically exported from code.google.com/p/phpvirtualbox
Other
0 stars 0 forks source link

Undefined variable: ep in lib/config.php #654

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Clone phpvirtualbox from Trunk
2. Rename config.php-example to config.php and set username & password
3. Open phpvirtualbox in your browser

What is the expected output? What do you see instead?

The page loads but doesn't display any VirtualBox content. The PHP error log 
lists the following error:
[21-Dec-2012 21:24:30 UTC] Undefined variable: ep 
           /Users/me/repos/phpvirtualbox-read-only/lib/config.php, 220 
        #0 /Users/me/repos/phpvirtualbox-read-only/lib/config.php(220): php_error\{closure}(8, 'Undefined varia...', '/Users/me...', 220, Array)
        #1 /Users/me/repos/phpvirtualbox-read-only/lib/language.php(49): phpVBoxConfigClass->__construct()
        #2 /Users/me/repos/phpvirtualbox-read-only/js/language.php(13): __vbox_language->__construct()
        #3 {main}

What version of phpVirtualBox, VirtualBox, and PHP are you using? On what
operating system?

phpVirtualBox from trunk @ revision 500, PHP 5.3.18, OS X 10.8.2, VirtualBox 
4.2.6

Original issue reported on code.google.com by chris.c...@gmail.com on 21 Dec 2012 at 9:30

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes there is: 
http://code.google.com/p/phpvirtualbox/source/browse/trunk/lib/config.php#220

Original comment by chris.c...@gmail.com on 22 Dec 2012 at 12:03

GoogleCodeExporter commented 8 years ago
Looks like $ep was introduced in commit 
http://code.google.com/p/phpvirtualbox/source/diff?spec=svn500&r=363&format=side
&path=/trunk/lib/config.php and properly defined

then 
http://code.google.com/p/phpvirtualbox/source/diff?path=/trunk/lib/config.php&fo
rmat=side&r=460 removed it. Looks to be accidental removal of line $ep = 
error_reporting(0); in commit 460 
http://code.google.com/p/phpvirtualbox/source/detail?spec=svn460&r=460

Original comment by chris.c...@gmail.com on 22 Dec 2012 at 12:09

GoogleCodeExporter commented 8 years ago
This will be fixed in the next version.

Original comment by imooreya...@gmail.com on 11 Jul 2013 at 4:07