Error on Generate

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mw4
User
Posts: 57

Error on Generate

Post by mw4 »

I'm getting this error on Generate, any ideas here?

I took out reference to HTTP because I couldn't get it to post otherwise

Checking PHP CLI...
Running composer update -n...
Loading composer repositories with package information
The "://repo.packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known.
failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known.
://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1

  • Installation request for phpoffice/phpspreadsheet 1.6.0 -> satisfiable by phpoffice/phpspreadsheet[1.6.0].
  • phpoffice/phpspreadsheet 1.6.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    To enable extensions, verify that they are enabled in your .ini files:
  • C:\PHP7\php.ini
    You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
    (node:19944) UnhandledPromiseRejectionWarning: Error: Command failed: composer update -n
    at checkExecSyncError (child_process.js:611:11)
    at execSync (child_process.js:648:13)
    at Exec (C:\Program Files (x86)\PHPMaker 2019\node\node_modules\phpmaker\phpmaker.js:7:3930)
    at RunComposerUpdate (C:\Program Files (x86)\PHPMaker 2019\node\node_modules\phpmaker\phpmaker.js:7:3759)
    at GenerateAllFiles.Promise.all.then (C:\Program Files (x86)\PHPMaker 2019\node\node_modules\phpmaker\phpmaker.js:7:5667)
    (node:19944) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
    (node:19944) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    Compiling project22.css...
    Compressing project22.css...
    Compiling adminlte.css...
    Compressing adminlte.css...
    Compressing ewp15.js...
    Compressing typeahead.jquery.js...
    Compressing adminlte.js...
    Compressing ewscrolltable.js...
    Generation completed, please scroll up (if necessary) to check error(s) highlighted in red.

arbei
User
Posts: 9396

Post by arbei »

mw4 wrote:

  • phpoffice/phpspreadsheet 1.6.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    To enable extensions, verify that they are enabled in your .ini files:
  • C:\PHP7\php.ini

See https://www.php.net/manual/en/fileinfo.installation.php:
Windows users must include the bundled php_fileinfo.dll DLL file in php.ini to enable this extension.


Post Reply