Giter VIP home page Giter VIP logo

Comments (7)

Tobi823 avatar Tobi823 commented on July 20, 2024

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.

darishante avatar darishante commented on July 20, 2024

@Tobi823:

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.

Tobi823 avatar Tobi823 commented on July 20, 2024

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.

darishante avatar darishante commented on July 20, 2024

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.

Tobi823 avatar Tobi823 commented on July 20, 2024

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.

darishante avatar darishante commented on July 20, 2024

After doing the replacement, instead of an all-white screen, I get a mostly white screen stating "NULL".

from active-directory-integration2.

darishante avatar darishante commented on July 20, 2024

(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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.