Page 1 of 1

Database Export Errors

Posted: Thu Apr 30, 2020 8:58 pm
by kknm
I work with the base at work (Ubuntu) and at home (Windows) - when exporting the base (Windows) I get
.\vendor\composer\ClassLoader.php#444: include()
.\vendor\composer\ClassLoader.php#322: Composer\Autoload\includeFile(string 'D:\\www\\nubuilder\\nudb\\vendor\\composer/../tecnickcom/tcpdf/tcpdf.php')
Composer\Autoload\ClassLoader->loadClass(string 'TCPDF')
spl_autoload_call(string 'TCPDF')
.\libraries\classes\Plugins\Export\ExportPdf.php#23: class_exists(string 'TCPDF')
.\libraries\classes\Plugins.php#96: include_once(.\libraries\classes\Plugins\Export\ExportPdf.php)
.\libraries\classes\Display\Export.php#672: PhpMyAdmin\Plugins::getPlugins(
string 'export',
string 'libraries/classes/Plugins/Export/',
array,
)
.\server_export.php#45: PhpMyAdmin\Display\Export->getDisplay(
string 'server',
string '',
string '',
string '',
integer 0,
integer 0,
string '<div> <p> <a href="#" onclick="setSelectOptions(\'dump\', \'db_select[]\', true); return false;"> Выбрать все </a> / <a href="#" onclick="setSelectOptions(\'dump\', \'db_select[]\', false); return false;"> Снять выделение </a> </p> <select name="db_select[]" id="db_select" size="10" multiple> <option value="nubuilder" selected> nuBuilder </option> <option value="nub_example" selected> nub_example </option> <option value="nub_update" selected> nub_update </option> <option value="phpmyadmin" selected> phpmyadmin </option> <option value="test" selected> test </option> </select> </div> ',
)
when exporting the base (Ubuntu) I get
Warning in ./vendor/composer/ClassLoader.php#444
include(/var/www/report/nudb/vendor/composer/../tecnickcom/tcpdf/tcpdf.php): failed to open stream: No such file or directory

Backtrace

./vendor/composer/ClassLoader.php#444: include()
./vendor/composer/ClassLoader.php#322: Composer\Autoload\includeFile(string '/var/www/report/nudb/vendor/composer/../tecnickcom/tcpdf/tcpdf.php')
Composer\Autoload\ClassLoader->loadClass(string 'TCPDF')
spl_autoload_call(string 'TCPDF')
./libraries/classes/Plugins/Export/ExportPdf.php#23: class_exists(string 'TCPDF')
./libraries/classes/Plugins.php#96: include_once(./libraries/classes/Plugins/Export/ExportPdf.php)
./libraries/classes/Display/Export.php#672: PhpMyAdmin\Plugins::getPlugins(
string 'export',
string 'libraries/classes/Plugins/Export/',
array,
)
./db_export.php#157: PhpMyAdmin\Display\Export->getDisplay(
string 'database',
string 'nubuilder',
string '',
string '',
integer 43,
integer 0,
These are small initial pieces of logs,

Re: Database Export Errors

Posted: Fri May 01, 2020 3:56 am
by kev1n
I don't quite get it. How exactly do you export?

Re: Database Export Errors

Posted: Fri May 01, 2020 12:50 pm
by kknm
kev1n wrote:I don't quite get it. How exactly do you export?
phpmyadmin -> export

Re: Database Export Errors

Posted: Fri May 01, 2020 1:00 pm
by kev1n
You might want to try/install a (more recent) instance of phpMyAdmin and not the one that comes with nuBuilder.

Re: Database Export Errors

Posted: Fri May 01, 2020 1:10 pm
by kknm
Yes, you are right, there are no errors using the native local phpmyadmin (v.5.01).
How to update nubuilder-phpmyadmin?

Re: Database Export Errors

Posted: Fri May 01, 2020 4:00 pm
by kev1n
kknm wrote:How to update nubuilder-phpmyadmin?
I did the following and it worked for me:

1. Backup the original folder \nudb by renaming it to \nudb_old

2. Create a new folder \nudb

1. Get latest version of phpMyAdmin and unzip it to the folder \nudb

I downloaded this file:
https://files.phpmyadmin.net/phpMyAdmin ... nglish.zip
phpMyAdmin 5.0.2
Released 2020-03-21, see release notes for details.
Current version compatible with PHP 7.1 and newer and MySQL 5.5 and newer.
3. Copy the file \nudb_old\config.inc.php to \nudb\config.inc.php

4. Edit index.php and add these lines after declare(strict_types=1);

Code: Select all

if ( $_COOKIE["nupmalogin"] != "good" ) {
        echo "please log into nubuilder";
        die();
}
index.php.jpg

Re: Database Export Errors

Posted: Sun May 03, 2020 3:24 am
by admin
People,

I have updated nuBuilder's phpMyAdmin to 5.0.2

(please test it)


Steven

Re: Database Export Errors

Posted: Mon May 04, 2020 8:04 am
by kev1n
Steven,

I haven't tested it thoroughly but everything seems to work so far.

Re: Database Export Errors

Posted: Mon May 04, 2020 11:56 pm
by admin
Thanks