PHP Startup: Unable to load dynamic library

Hello , I got this error when try to generate my PHPMaker 2025 project . I have a ready disabled the Hashing password in advanced setting

PHP 8.2.4 (cli) (built: Mar 14 2023 17:54:25) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.4, Copyright (c) Zend Technologies
Hashing password...
PHP Warning:  PHP Startup: Unable to load dynamic library 'oci8_12c' (tried: C:\xampp4\php\ext\oci8_12c (The specified module could not be found), C:\xampp4\php\ext\php_oci8_12c.dll (The specified module could not be found)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'oci8_19' (tried: C:\xampp4\php\ext\oci8_19 (The specified module could not be found), C:\xampp4\php\ext\php_oci8_19.dll (The specified module could not be found)) in Unknown on line 0
PHP Warning:  Module "ftp" is already loaded in Unknown on line 0
C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\@phpmaker\core\phpmaker.js:8
"use strict";var require$$0$1=require("fs-extra"),require$$1=require("path"),require$$0=require("fs"),require$$3=require("events"),require$$4=require("child_process"),require$$5=require("process"),require$$6=require("crypto"),require$$7=require("change-case-commonjs"),require$$8=require("tmp"),require$$9=require("sass"),require$$1
Error: Failed to hash PasswordHash$TestString: 
Warning: PHP Startup: Unable to load dynamic library 'oci8_12c' (tried: C:\xampp4\php\ext\oci8_12c (The specified module could not be found), C:\xampp4\php\ext\php_oci8_12c.dll (The specified module could not be found)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'oci8_19' (tried: C:\xampp4\php\ext\oci8_19 (The specified module could not be found), C:\xampp4\php\ext\php_oci8_19.dll (The specified module could not be found)) in Unknown on line 0

Warning: Module "ftp" is already loaded in Unknown on line 0
$2y$15$vVKqjw17yf29tEaTBl1ylePmbJO7BB1LcgPpBvUaN4lHkP8KOMxVS
    at global.CreateError (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\@phpmaker\core\phpmaker.js:8:193921)
    at global.PasswordHash (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\@phpmaker\core\phpmaker.js:8:278350)
    at global.CheckPasswordHash (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\@phpmaker\core\phpmaker.js:8:279518)
    at main (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\@phpmaker\core\phpmaker.js:8:288877)
    at Object.<anonymous> (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\@phpmaker\core\phpmaker.js:8:290024)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
Node.js v18.17.1
Error: Generation completed with error(s), please scroll up (if necessary) to check error(s).

If you don’t use Oracle, do not enable the PHP extensions for Oracle (oci8_*), you may refer to Composer and set up your php.ini.

good works ,but i got new error now
Error: Failed to generate adminlte.css node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */); ^ sass.Exception [Error]: Can't find stylesheet to import. , 2 | @import "variables"; // Bootstrap + AdminLTE variables in temp folder | ^^^^^^^^^^^ ' themes\adminlte.scss 2:9 root stylesheet at Object.wrapException (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\sass\sass.dart.js:2161:43) at _EvaluateVisitor1._evaluate0$_loadStylesheet$4$baseUrl$forImport (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\sass\sass.dart.js:94989:19) at _EvaluateVisitor1._evaluate0$_loadStylesheet$3$forImport (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\sass\sass.dart.js:95018:19) at _EvaluateVisitor__visitDynamicImport_closure1.call$0 (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\sass\sass.dart.js:97332:17) at _EvaluateVisitor1._evaluate0$_withStackFrame$1$3 (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\sass\sass.dart.js:96465:25) at _EvaluateVisitor1._evaluate0$_withStackFrame$3 (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\sass\sass.dart.js:96471:19) at _EvaluateVisitor1._evaluate0$_visitDynamicImport$1 (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\sass\sass.dart.js:94935:19) at _EvaluateVisitor1.visitImportRule$1 (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\sass\sass.dart.js:94909:17) at ImportRule0.accept$1$1 (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\sass\sass.dart.js:100909:22) at ImportRule0.accept$1 (C:\Users\lilri\AppData\Roaming\PHPMaker2025\node_modules\sass\sass.dart.js:100912:19) Node.js v18.17.1 Error: Generation completed with error(s), please scroll up (if necessary) to check error(s).
I try to update templete but still got same errror , any idia thanx …

Make sure you have granted write permission to the temp folder (C:\Users\<user>\AppData\Local\Temp). The CSS variables .scss file is outputted there.

how should i granted write permission to the temp folder ?
knowing that i run PHPMaker as administrator
Thanx…

Double check your Windows environment User variables for TEMP and TMP, make sure they are C:\Users\<user>\AppData\Local\Temp (where you have write permission), not C:\Windows\Temp (where you have not).

i have check the path of TEMP and it’s a ready on the current direction where i have write permission at C:\Users<user>\AppData\Local\Temp as this screenshot i also changed the System variables to same dir C:\Users<user>\AppData\Local\Temp and restart my PC, but still got same error

Did you try use non-alphanumerical characters for CSS? For example, font name. (You can replace the font name with standard font names and test.)

If you add your own styles, did you use any non-alphanumerical characters or some incorrect CSS syntax? (You can remove your CSS styles and test.)

You can also go to HTML → Theme, re-select a theme and try again, in case you have some invalid or missing CSS settings. You can also start a new project to test.

i have a ready start a new project and i have not import any custom own style , And i try change the theme in case something missing make sure all options are stander selected nothing change in style options but still got same error .

Ok ,problem now solved after i try to update template again this evening and with unexpected result i got generated successful for the project.

But i got a new error that when i check on “Composer update” before start generate that project …

All files generated (17.982 seconds)
Running composer update -n --no-audit --ansi...
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
    Failed to download firebase/php-jwt from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp4\php\php.ini
    Now trying to download from source
  - Syncing firebase/php-jwt (v6.10.2) into cache
  - Installing firebase/php-jwt (v6.10.2): Cloning 30c19ed0f3 from cache
    30c19ed0f3264cb660ea496895cfb6ef7ee3653b is gone (history was rewritten?)
    Install of firebase/php-jwt failed
In GitDownloader.php line 500:
                                                                                                                       
  Failed to execute git checkout 30c19ed0f3264cb660ea496895cfb6ef7ee3653b -- && git reset --hard 30c19ed0f3264cb660ea  
  496895cfb6ef7ee3653b --                                                                                              
                                                                                                                       
  fatal: unable to read tree (30c19ed0f3264cb660ea496895cfb6ef7ee3653b)                                                
                                                                                                                       
  It looks like the commit hash is not available in the repository, maybe the tag was recreated? Run "composer update  
   firebase/php-jwt" to resolve this.                                                                                  

As the error said, you need to install PHP zip extension.

1 Like

all error now solved
Thanx.