Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Database Export Errors

Questions related to using nuBuilder Forte.
Post Reply
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Database Export Errors

Unread post 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,
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Database Export Errors

Unread post by kev1n »

I don't quite get it. How exactly do you export?
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Database Export Errors

Unread post by kknm »

kev1n wrote:I don't quite get it. How exactly do you export?
phpmyadmin -> export
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Database Export Errors

Unread post by kev1n »

You might want to try/install a (more recent) instance of phpMyAdmin and not the one that comes with nuBuilder.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Database Export Errors

Unread post by kknm »

Yes, you are right, there are no errors using the native local phpmyadmin (v.5.01).
How to update nubuilder-phpmyadmin?
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Database Export Errors

Unread post 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
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Database Export Errors

Unread post by admin »

People,

I have updated nuBuilder's phpMyAdmin to 5.0.2

(please test it)


Steven
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Database Export Errors

Unread post by kev1n »

Steven,

I haven't tested it thoroughly but everything seems to work so far.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Database Export Errors

Unread post by admin »

Thanks
Post Reply