Initial Setup - Fatal error: Uncaught Error: Class 'Monolog\Logger'

728 views
Skip to first unread message

Ryan Cameron

unread,
Nov 27, 2016, 11:08:26 PM11/27/16
to PHRETS
Hi,

I'm new to phrets and I am just trying to get the initial setup going. I ran composer with no problems. I added the example to my index.php file and then I got this error:

Fatal error: Uncaught Error: Class 'Monolog\Logger' not found in /Applications/MAMP/htdocs/mls-map/index.php:10 Stack trace: #0 {main} thrown in /Applications/MAMP/htdocs/mls-map/index.php on line 10

I was reading the other articles and noticed that there could be issues with getting this to work locally, I am using mamp.

Any help would be appreciated.

Thanks

Ryan Cameron

unread,
Dec 2, 2016, 10:57:35 PM12/2/16
to PHRETS
SOLVED

the composer.json file needs the second line of this code, which was not included in the documentation:

{
    "require": {
        "troydavisson/phrets": "2.*",
        "monolog/monolog": ">=1.10"
    }
}


Then run "composer update"
Reply all
Reply to author
Forward
0 new messages