Unclear WP install + Call to undefined function ray
-
Hello,
Ray looks like a very promising tool, however the install instructions are not clear at all.
Here is what I did :
– installed Ray desktop app for Mac OSX
– use “Local” app (localwp.com) to install a wordpress locally
– installed the Ray plugin
– created a dummy plugin to generate some calls to ray and see if it works…Basically this plugin only contains the line (+ plugin header lines of course) .
ray()->showQueries();
Now I get some queries displayed in the Ray desktop app… but the site doesn’t load anymore and it displays :
( ! ) Fatal error: Uncaught Error: Call to undefined function ray() in /Users/BenMacBook/Local Sites/ray/app/public/wp-content/plugins/aaa-plugin/aaa-plugin.php on line 30
( ! ) Error: Call to undefined function ray() in /Users/BenMacBook/Local Sites/ray/app/public/wp-content/plugins/aaa-plugin/aaa-plugin.php on line 30I really don’t know what I did wrong…
I didn’t create any ray.php configuration file as described here : https://spatie.be/docs/ray/v1/configuration/wordpress because I had no clue where I should put this file in my wordpress install + I already had the plugin installed and thought it would probably also generate the configuration (but maybe I’m wrong).
Any idea ?
Thanks a lot,
- The topic ‘Unclear WP install + Call to undefined function ray’ is closed to new replies.