Page 1 of 1

Page phpSQLiteAdmin is not working. XAMPP for Linux 1.7.2

PostPosted: 30. August 2009 23:49
by Will-BR
I am having problems with the site phpSQLiteAdmin.
It appears that on the screen:

Deprecated: Assigning the return value of new by reference is deprecated in / opt / lampp / phpSQLiteAdmin / include.php on line 30

Deprecated: Assigning the return value of new by reference is deprecated in / opt / lampp / phpSQLiteAdmin / include.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in / opt / lampp / phpSQLiteAdmin / include.php on line 38


What should I do to fix?
Thanks for attention.

Re: Page phpSQLiteAdmin is not working. XAMPP for Linux 1.7.2

PostPosted: 03. January 2010 00:01
by stacia
bump. I'm getting this too but with an extra error:


Code: Select all
Deprecated: Assigning the return value of new by reference is deprecated in /opt/lampp/phpsqliteadmin/include.php on line 30

Deprecated: Assigning the return value of new by reference is deprecated in /opt/lampp/phpsqliteadmin/include.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /opt/lampp/phpsqliteadmin/include.php on line 38

Notice: Undefined index: phpSQLiteAdmin_currentdb in /opt/lampp/phpsqliteadmin/include.php on line 9


Help please?

Re: Page phpSQLiteAdmin is not working. XAMPP for Linux 1.7.

PostPosted: 01. January 2012 19:40
by helkav
I got these errors too. I think it's because PHP 5.3+ has stricter type checking than prev. versions and this code may have been written with an older version of PHP?

change all statements in include.php like this:

$sysdbh =& new SPSQLite('phpsla.sqlite');

to this

$sysdbh = new SPSQLite('phpsla.sqlite');

for the last error I commented out funtion update - I don't know the consequences of that yet! I will have to see!

/*
function update($this)
{
}
*/

anyway it's up and running now - I will post an update if I need to make more fixes.

I believe there is a way to turn off the deprecated errors e.g.

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

but I think in this instance it's not much code to fix