Announcement

#1 2015-10-22 06:08:25

Jeep
Guest

Import from Gallery2 Failing

I've just installed the latest version of Piwigo and I'm try to get started by importing my old Gallery2 via the Menalto2Piwigo plugin. I've followed step 1 and 2. For step 3 I get this error:

[mysql error 1049] Unknown database 'gallery2'
Connection to server succeed, but it was impossible to connect to database

#1    my_error .../plugins/menalto2piwigo/include/functions.inc.php(17)
#2    m2p_db_connect .../plugins/menalto2piwigo/admin.php(143)
#3    include_once .../admin/plugin.php(62)
#4    include .../admin.php(288)


I believe I entered the host/database/user/pword correctly, but my web-fu is weak so I may not be understanding it correctly. Any help you can provide is greatly appreciated. Thanks!

Piwigo version: Latest
PHP version: 5.3
MySQL version: 5.5.44
Piwigo URL: http://jeepbarnett.com/gallery5/

 

#2 2015-10-26 04:47:45

Jeep
Guest

Re: Import from Gallery2 Failing

I added "http://" to the database host and now I'm 1 step farther with a new error:

Warning: mysqli::mysqli() expects parameter 5 to be long, string given in /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/include/dblayer/functions_mysqli.inc.php on line 67 Warning: mysqli::select_db(): Couldn't fetch mysqli in /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/include/dblayer/functions_mysqli.inc.php on line 72 Warning: my_error(): Couldn't fetch mysqli in /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/include/dblayer/functions_mysqli.inc.php on line 822 Warning: my_error(): Couldn't fetch mysqli in /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/include/dblayer/functions_mysqli.inc.php on line 822
Piwigo encountered an irrecoverable error

[mysql error ]
Connection to server succeed, but it was impossible to connect to database

#1    my_error /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/plugins/menalto2piwigo/include/functions.inc.php(17)
#2    m2p_db_connect /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/plugins/menalto2piwigo/admin.php(143)
#3    include_once /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/admin/plugin.php(62)
#4    include /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/admin.php(288)

 

#3 2015-10-26 05:13:38

Jeep
Guest

Re: Import from Gallery2 Failing

Nevermind, looking at the code I can see I was going in the wrong direction. Now I'm getting this:

Code:

Warning: array_keys() expects parameter 1 to be array, boolean given in /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/plugins/menalto2piwigo/admin.php on line 65 Warning: Invalid argument supplied for foreach() in /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/plugins/menalto2piwigo/admin.php on line 65 Warning: mysqli::mysqli(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/include/dblayer/functions_mysqli.inc.php on line 67 Warning: my_error(): Couldn't fetch mysqli in /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/include/dblayer/functions_mysqli.inc.php on line 822 Warning: my_error(): Couldn't fetch mysqli in /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/include/dblayer/functions_mysqli.inc.php on line 822
Piwigo encountered an irrecoverable error

[mysql error ] 
Can't connect to server

#1  my_error /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/plugins/menalto2piwigo/include/functions.inc.php(17)
#2  m2p_db_connect /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/plugins/menalto2piwigo/admin.php(143)
#3  include_once /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/admin/plugin.php(62)
#4  include /hermes/bosnaweb01a/b1281/d5.jeepbarn/public_html/gallery5/admin.php(288)

In the code I can't see how this array would be bad, but I'm a PHP newb so I'm probably missing something.

Code:

foreach (array_keys($conf['menalto2piwigo']) as $key)

Any help is appreciated!

http://memesvault.com/wp-content/uploads/I-Have-No-Idea-What-Im-Doing-Dog-02.jpg

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact