ReactPHP 'React\EventLoop\Factory' not found

September 14, 2018 186 views
PHP Ubuntu

I'm completely new to ReactPHP and am trying to build a tool which will pull data in from a ReactJS site. Ignoring what I actually want the code to do, I can't get ReactPHP to work on my droplet despite following the example to the letter.

Could this be as simple as needing to upgrade Ubuntu? I have installed everything I have been told to via Compser.

1 Answer

Hey friend!

I've been hoping someone with ReactPHP experience would answer this, but it seems that there may not be any lurking around. I have no experience with React in particular, but plenty with PHP based stacks on Linux systems. I'd be happy to try to see if I can offer any insight. Are you receiving any errors along the way? At what point in the process do you expect one result and receive another? How does the reality differ from the expectation?

Perhaps that would get me to the point where I better understand.

Jarland

  • Hey Jarland, thanks for your input.

    The only error I'm getting is:

    "Fatal error: Class 'React\EventLoop\Factory' not found in /xxxxxxxx/laptimes.test.php on line 11"

    From the research & digging I've done so far the suggested problem is not calling the "autoload" file correctly however I have verified that I am doing this.

    My thoughts are turning to out of date Ubuntu/PHP but reactPHP has been around for long enough that I wouldn't have thought this would be the problem. Will upgrade and update with progress.

    Thanks

Have another answer? Share your knowledge.