Hi,
I’m trying to export some data, invoice and task for Settings/Import-Export but I get an error message each time :
“Whoops, looks like something went wrong”.
I’m running the 3.6.1 self hosted release.
Any idea what can it be ?
Thanks,
Davy
Hi,
I’m trying to export some data, invoice and task for Settings/Import-Export but I get an error message each time :
“Whoops, looks like something went wrong”.
I’m running the 3.6.1 self hosted release.
Any idea what can it be ?
Thanks,
Davy
Can you check storage/logs/laravel-error.log for details about the error.
Here is what I have in the log :
[2017-08-24 09:28:51] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError [0] : /var/www/ininja/vendor/maatwebsite/excel/src/Maatwebsite/Excel/Readers/HtmlReader.php [Line 165] => Class 'DOMDocument' not found {"context":"PHP","user_id":1,"account_id":1,"user_name":"Davy Morel","method":"POST","url":"https://invoice.morelconsulting.ch/export","previous":"https://invoice.morelconsulting.ch/settings/import_export","user_agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0","ip":"212.74.184.174","count":5,"is_console":"no","is_api":"no","db_server":"mysql"} []
Davy
How did you install the app, GitHub or self host zip?
If GitHub you need to run composer install
to download the 3rd party libs.
Selfhosted zip…
I unpacked and replaced the old release and then it did a database update…
It may help to load /update (or /public/update) in your browser.
I did it, it went successfully.
Did it help?
Nop, still fails…
[2017-08-24 09:49:38] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError [0] : /var/www/ininja/vendor/maatwebsite/excel/src/Maatwebsite/Excel/Readers/HtmlReader.php [Line 165] => Class 'DOMDocument' not found {"context":"PHP","user_id":1,"account_id":1,"user_name":"Davy Morel","method":"POST","url":"https://invoice.morelconsulting.ch/export","previous":"https://invoice.morelconsulting.ch/settings/import_export","user_agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0","ip":"212.74.184.174","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
If you have command line access try running:
php artisan optimize
composer install
Hi,
Here is the result of composer install command :
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for codeception/codeception 2.3.3 -> satisfiable by codeception/codeception[2.3.3].
- codeception/codeception 2.3.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for phpunit/phpunit 4.8.36 -> satisfiable by phpunit/phpunit[4.8.36].
- phpunit/phpunit 4.8.36 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 3
- laravel/framework v5.2.45 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- laravel/framework v5.2.45 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- Installation request for laravel/framework v5.2.45 -> satisfiable by laravel/framework[v5.2.45].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.ini
- /etc/php/7.0/cli/conf.d/20-curl.ini
- /etc/php/7.0/cli/conf.d/20-exif.ini
- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
- /etc/php/7.0/cli/conf.d/20-ftp.ini
- /etc/php/7.0/cli/conf.d/20-gd.ini
- /etc/php/7.0/cli/conf.d/20-gettext.ini
- /etc/php/7.0/cli/conf.d/20-gmp.ini
- /etc/php/7.0/cli/conf.d/20-iconv.ini
- /etc/php/7.0/cli/conf.d/20-json.ini
- /etc/php/7.0/cli/conf.d/20-mcrypt.ini
- /etc/php/7.0/cli/conf.d/20-mysqli.ini
- /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.0/cli/conf.d/20-phar.ini
- /etc/php/7.0/cli/conf.d/20-posix.ini
- /etc/php/7.0/cli/conf.d/20-readline.ini
- /etc/php/7.0/cli/conf.d/20-shmop.ini
- /etc/php/7.0/cli/conf.d/20-sockets.ini
- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
You can also run <code>php --ini</code> inside terminal to see which files are used by PHP in CLI mode.
Thanks, it looks like you need to enable the mbstring PHP extension.
It works !!! !
I had to solve the 3 problems listed by “composer install”
I installed
php7.0-xml
php7.0-zip
php7.0-mbstring
Then “composer install” did a bunch of stuff and now exporting is working perfectly !
Thanks for your help
Great to hear, thanks for letting us know!