Comments (7)
Hi @darishante
I think this issue is caused by PHP 5.6 code (http://stackoverflow.com/a/8735314).
Can you replace in classes/Core/Migration/Service.php Line 103:
$migration = new $migrationClazz($this->dependencyContainer);
with:
$reflection = new ReflectionClass($migrationClazz);
$migration = $reflection->newInstanceArgs($this->dependencyContainer);
from active-directory-integration2.
Thanks for the quick reply. Applied the fix, still white screen and a new error in PHP logs:
[27-Sep-2016 14:40:04] PHP Catchable fatal error: Argument 1 passed to ReflectionClass::newInstanceArgs() must be an array, object given, called in D:...\wp-content\plugins\next-active-directory-integration\classes\Core\Migration\Service.php on line 70 and defined in D:...\wp-content\plugins\next-active-directory-integration\classes\Core\Migration\Service.php on line 104
from active-directory-integration2.
I forgot to use an array when creating the new object instance.
Can you replace in classes/Core/Migration/Service.php Line 103:
$migration = new $migrationClazz($this->dependencyContainer);
with this: ?
$reflection = new ReflectionClass($migrationClazz);
$params = array($this->dependencyContainer);
$migration = $reflection->newInstanceArgs($params);
from active-directory-integration2.
Applied the fix as follows:
$reflection = new ReflectionClass($migrationClazz);
$params = array($this->dependencyContainer);
$migration = $reflection->newInstanceArgs($params);
# $migration = $reflection->newInstanceArgs($this->dependencyContainer);
Got white screen and the original error message back
[28-Sep-2016 06:27:45] PHP Fatal error: Call to undefined method stdClass::findAll() in D:...\wp-content\plugins\next-active-directory-integration\classes\Core\Migration\Configuration\Abstract.php on line 69
from active-directory-integration2.
I could not reproduce this bug on my Windows 10 machine with PHP 5.3.26 / Apache 2.4.18.
Can you replace in classes/Core/Migration/Service.php Line 103:
$migration = new $migrationClazz($this->dependencyContainer);
with:
var_dump($this->profileRepository);
?
Maybe var_dump prints some helpful information.
I still dont understand, why WordPress tries to access stdClass::findAll() and not NextADInt_Multisite_Configuration_Persistence_ProfileRepository::findAll().
It is possible, that PHP can not access NextADInt_Multisite_Configuration_Persistence_ProfileRepository?
from active-directory-integration2.
After doing the replacement, instead of an all-white screen, I get a mostly white screen stating "NULL".
from active-directory-integration2.
(Never mind this; I decided that IIS = the devil, and moved the whole thing on Apache, where it works as it should.)
from active-directory-integration2.
Related Issues (20)
- Include PHP 8.2 into test suite
- "Dreitier\Nadi\Authentication\SingleSignOn\Ui\ShowSingleSignOnLink" not found when using SSO in NADI 3.0
- 'Uncaught Error: Class "Logger" not found...' for older versions of Premium Extensions with NADI 3.x
- Class Dreitier\Util\Logger\LogFacade not found with NADI 3.0.x HOT 1
- Websites crash on update HOT 2
- Updated NADI today. Critical website error HOT 3
- Conflict with The Events Calendar HOT 3
- Active directory attribute HOT 1
- WP_MS_Sites_List_Table not found when running in Multisite
- Error if timestamped LDAP attributes are empty or contain a string
- Twig functions in default namespace conflict with other WordPress plug-ins HOT 1
- `Dreitier\Ldap\Connection::filterDomainMembers` throws fatal error when invalid SID is returned
- Duplicate search for user by sAMAccountName during login
- Do not map local WordPress users if their meta value next_ad_int.objectGuid does not match with AD's objectGuid
- Drop PHP 8.0 support from CI
- Compatibility for system with samaccountname different from UPN HOT 2
- Sync to WordPress fails if AD user must be disabled but account does not exist in WordPress
- no next_ad_int_ database entries when authenticating HOT 1
- option "User > Automatic user creation" not to be found HOT 1
- random error Authentication for user 'xxx' failed [AD: Can't contact LDAP server] [AD error code: -1] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from active-directory-integration2.