ProBlog

A powerful October CMS Blog plugin. Boost your SEO with robust blogging tools by Radiantweb.

Back to ProBlog Support

hai1533
hai1533

I installed proBlog, and everything works except when I visit an individual blog post. I get an error of "Class 'Auth' not found" in this file "/Users/user/Work/test/october_project/october/plugins/radiantweb/problog/components/Post.php line 53".

Any help greatly appreciated. Thanks!

ChadStrat
ChadStrat

please use the support thread on the product page.

ChadStrat

Matt Weaver
Matt Weaver

So... any progress on this? This is still not working.

Matt Weaver
Matt Weaver

Well, looks like this has something to do with October not using Auth anymore, and ProBlog thinking that it does. Or something. The quick fix I did:

create a class in app/src/App.php:

<?php 

class Auth {
    public static function check()
    {
        return false;
    }
}

Then in composer.json, in the autoloads section add your file so the class is loaded.

"autoload": {
        "classmap": [
            "tests/TestCase.php",
            "app/src/Auth.php"
        ]
},

and run composer dump-autoload. Now, Problog can run "Auth::check()" and your dummy auth class will return false every time, and it'll work. It's a hack, but whatever.

ChadStrat
ChadStrat

adding change and pushing. Author image fix incoming as well.

ChadStrat
ChadStrat

please update to v1.1.1 That user auth is not even needed.

1-6 of 6