Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Fortune plugin get error

first-time plugins

Started by Hellen 6 years ago · 0 replies · 736 views
6 years ago

hi there.
i'm using fortune plugin in order to display random quote into page. I install, set configuration, create quotes file and put {{fortune}} globen variable on my page, but i get an error. Whatever page i open, i get this error.
Debug infos:
\grav-admin\user\plugins\fortune\vendor\fortune.php
on this line
return $this->getRandomQuote($dir .$files[$i]);
saying: "Undefined variable: quotes"
Anyone can helpme? what is missing?

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by jeremycherfas, 19 hours ago
1 43 15 hours ago
Installation & Hosting · by motorambler, 2 weeks ago
8 359 6 days ago
Installation & Hosting · by antoinep, 3 months ago
8 937 3 months ago
Installation & Hosting · by Jürgen Dietrich, 9 months ago
0 601 9 months ago
Installation & Hosting · by rappluk, 11 months ago
0 646 11 months ago