Class does not exist antonioribeiro/tracker - laravel-5.6

Hello guys I am using antonioribeiro/tracker from github and followed all the instructions everything went smooth but when I tried to access the stats panel it returns an error that
class admin does not exists.
In the tracker.php, I found the error is from this line 'authentication_ioc_binding' => ['auth','admin']

I tried creating admin class but it did not fix the issue. I was confused with the documentation of the package. The code that I followed is for multiple authentication driver. So I used the default setting authentication_ioc_binding => ['auth'] this solves the issue.

Related

Did I solve my "Target class [mail.manager] does not exist." issue?

Just upgraded from Laravel 6 to 7, and had the error response above when submitting a contact form. I eventually found a solution that seems to work and I am submitting here to help out the next guy.
In the terminal run:
composer require illuminate/mail
Add the following to the top of the controller file (app/Http/Controllers/Main.php in my case):
use \Illuminate\Support\Facades\Mail;
Add this to bootstrap/app.php:
$app->register(Illuminate\Mail\MailServiceProvider::class);
Save and test, and it worked localhost.
If the above does not work for you, there are some other possible issues and solutions available at this link, where I must give credit to vipindasks.
https://laracasts.com/discuss/channels/lumen/lumen-52-mail-not-working
Since I am suppose to ask a question:
Do you see any problems with this solution even though the site and mailer is working now?
You are simply missing a backslash. This tells the autoloader that the file you are looking for is not in the namespace your controller resides in :
$app->register(\Illuminate\Mail\MailServiceProvider::class);
Run composer update hope this will help you

Error: Class 'Request' not found in Laravel config\azure-oath

I am using Laravel-5.8 for a web application. In order to integrate Azure AD SSO, I installed this package in my application:
composer require metrogistics/laravel-azure-ad-oauth
When, I wanted to relaunch my application I got this error:
Class 'Request' not found
The error is found here:
config\azure-oath.php
How do I resolve this error?
Thank you
The issue has been solved by the link in #Sunil kumawat 's comment, just add it as an answer to make it easier for others to find here.
https://github.com/metrogistics/laravel-azure-ad-oauth/issues/1
I deleted that part of the code, now the code is like this: 'redirect' => '/ login / microsoft / callback', and it works for me.

Showing Error Class 'Aitoc_Aitsys_Model_Mysql4_Setup' not found in magento?

I am unable to open my site showing error
Class 'Aitoc_Aitsys_Model_Mysql4_Setup' not found in /home1/griar/public_html/includes/src/Mage_Core_Model_Resource_Setup.php on line 234
I am unable to find the fault
if anyone knows this, please help me out.
Thanks!
In admin, also showing the same error
Class 'Aitoc_Aitsys_Model_Mysql4_Setup' not found in /home1/griar/public_html/includes/src/Mage_Core_Model_Resource_Setup.php on line 234
Looks like you are using an extension from Aitoc.
Either disable the extension if you don't need it, or contact them for support.
If you just installed the extension, clear the cache and disable the compilation.

Laravel 4, Composer and hybridauth - How to load additional providers

I'm using Laravel 4 and have loaded hybridauth via composer and got it working just fine with Facebook and Twitter. Now i'm trying to get it working with Steam, which is listed as an additional provider, however I keep getting the following error:
require_once(vendor/hybridauth/hybridauth/hybridauth/Hybrid/Providers/Steam.php) [function.require-once]: failed to open stream: No such file or directory
Clearly it's looking in the wrong place, the actual class resides in this location:
vendor/hybridauth/hybridauth/additional-providers/hybridauth-steam/Providers/Steam.php
There's very little documentation that I can find on this, my only guess is that the author of hybridauth only offered these additional providers as optional extras and expects you to move the location of the class to the proper place, however with composer this isn't the way to do things and will cause problems anytime I run composer update.
I can't find anyone having a similar problem via Google, which seems strange so i'm worried i'm missing obvious. Is there a way to use the additional providers, to have them autoload, while using hybridauth with Composer?
The only solution I can think to do is to manually include the correct file before it tries to autoload. I don't mind doing that, but i'm assuming there must be a proper way to do this otherwise using Composer with Hybridauth is fairly useless.
I had this problem with Instagram and was able to use the wrapper syntax, which is documented here http://hybridauth.sourceforge.net/userguide/tuts/specific-provider-wrapper.html
The code below got the Instagram adapter working for me.
"Instagram" => array (
"enabled" => true,
"keys" => array (
"id" => xxxx,
"secret" => xxxx,
),
"wrapper" => array(
'class'=>'Hybrid_Providers_Instagram',
'path' => $_SERVER['DOCUMENT_ROOT'].'/../vendor/hybridauth/hybridauth/additional-providers/hybridauth-instagram/Providers/Instagram.php'
)
),
If you read the source at hybridauth/Hybrid/Provider_Adapter.php line 69, you'll see it checks for this before doing require_once with the standard path.
I searched and searched for this as well. All I can think of is that it was made for use without frameworks, then was ported to be used with Composer, however the "additional providers" folder isn't loaded, or something. It kinda sucks.
I just copied the file into the other directory, and everything works now.
This maybe handy for you...
http://blog.elliothesp.co.uk/coding/laravel-4-and-hybrid-auth/
Part regarding this:
Copy the Steam.php file, located at:
laravel/vendor/hybridauth/hybridauth/additional-providers/hybridauth-steam/Providers/Steam.php
Over to:
laravel/vendor/hybridauth/hybridauth/hybridauth/Hybrid/Providers/
I've no idea why the library has them separated, doesn't make any sense to me.

Symfony2 - Doctrine:generate:crud - Routing error

I'm using Symfony2 RC3 and I have a NewsBundle that has an Article entity.
I generated crud for it using the command: $ php app/console doctrine:generate:crud (with 'write' set to yes).
Now, every page on my site throws this error:
Fatal error: Label 'not_admin_article_create' already defined in /usr/local/zend/apache2/htdocs/AIEF/app/cache/prod/appprodUrlMatcher.php on line 260
If i get rid of
requirements: { _method: post }
for admin_article_create, admin_article_update and admin_article_delete in the generated routing yml file, everything works fine. Any idea why ?
I came across a similar issue recently, Google search wasn't much help but give me ideas of where to look, anyways enough blah blah.
The error I was getting was as follows:
enter code here`Fatal error: Label 'not _ offering management' already defined in /...
Whats I noticed was that there was a duplicate entry in routing_dev.yml and routing.yml, so basically the issue pops up when you happen to have multiple configurations. I think Symfony2 bundle generation adds mapping, but user probably accidental re-configures mapping else where.

Resources