ReflectionException Class Mint\Service\Repositories\InitRepository does not exist - laravel

I get the exception
ReflectionException Class Mint\Service\Repositories\InitRepository does not exist
How is this possible?
I already did
composer dump-autoload
What can I do?

Your vendor has a user defined codes
you should download this .rar file and extract in your laravel vendor and replace it
then your code will work find
You can download it from this link
http://www.sharways.info/mint.rar

Related

Laravel - black-bits/laravel-cognito-auth causing issues in default route

I've installed a laravel package black-bits/laravel-cognito-auth .
When i run php artisan route:list on command line, i've the following error:
Target class [App\Http\Controllers\Auth\ResetPasswordController] does not exist.
I'm not using ResetPasswordController in that specified path.
My ResetPassword controller's path is here: \app\Http\Controllers\Api\V1\Account\ResetPasswordController.php.
I'm mainly using this project for apis.
when i search for this path in vendor folder, i can see this.
.
Since, these routes are in vendor folder, what can i do to fix this issue?

Cannot locate class of installed package

I'm writing a laravel package which contains spatie/laravel-sitemap.
I already included several external packages and I didn't encountered any issues, but for some reason I'm not able to integrate this one.
What I did is the usual:
composer require spatie/laravel-sitemap
Then I have created a Console command that have as handle method the following content:
public function handle()
{
SitemapGenerator::create(config('app.url'))
->configureCrawler(function (Crawler $crawler) {
$crawler->ignoreRobots();
})
->writeToFile(public_path('sitemap.xml'));
$this->line('<info>Sitemap generated');
}
when I execute the command registered as:
php artisan myapp:sitemap
I get:
Class "Spatie\Sitemap\SitemapGenerator" not found
The reference imported are:
use Spatie\Crawler\Crawler;
use Spatie\Sitemap\SitemapGenerator;
I also tried composer update and composer dump-autoload, same problem.
Any help?
register package class in providers array in config/app.php
Spatie\Sitemap\SitemapServiceProvider;
in the bottom of app.php file
i hope it was useful.
you can publish package using this.
php artisan vendor:publish --provider="Spatie\Sitemap\SitemapServiceProvider" --tag=sitemap-config
then
composer dump-autoload
for more details please check the document https://github.com/spatie/laravel-sitemap under Configuration

Fatal Error Zend_Uri Magento

Suddenly our Magento store has a fatal error:
PHP Fatal error: Class 'Zend_Uri' not found in /.../public_html/app/code/core/Mage/Core/Model/Store.php on line 726
No new plugins or modules have been added recently.
Compiler is not active, var/cache and var/session are empty.
Permissions are resetted for all magento folders / files.
No other errors or more information is provided, but i have a blank page - on frontend and backend.
Magento version 1.7.0.2. Any help appreciated.
Line 726 of the Store.php file looks like this
#File: app/code/core/Mage/Core/Model/Store.php
$uri = Zend_Uri::factory($secureBaseUrl);
That is, Magento's making a call to the static method factory on the Zend_Uri class. Your error
PHP Fatal error: Class 'Zend_Uri' not found
Indicates that PHP can't find the Zend_Uri class. This could be because
The class definition file is no longer there,
Someone has changed the class definition file so it's no longer valid
A local code pool override file exists and someone has edited the class override file so it's no longer valid
Someone has edited the lib/Varien/Autoload.php so it can't load the Zend_Uri class file
A local code pool override file exists for Varien/Autoload.php and someone has edited it so it can't load the Zend_Uri class file
Someone has changed the php include path (normally defined in app/Mage.php) so it doesn't include the lib folder, or the code pool where a local code pool override might exist
I'd start by looking for the Zend_Uri class in lib/Zend/Uri.php, and then work your way down the list until you figure out why PHP isn't autoloading this class file.

Laravel migrations messed up

I meesed up my Laravel migrations and I get PHP Fatal error: Cannot redeclare Class when running
php artisan migrate --path="workbench/fefe/feeds2go/src/migrations"
I have been deleting the migration file and dropping manually the table and recreated with php artisan migrate:make but still the same.
How can I fix migratons?
You need to check all of your migration class files and check for duplicate class names.
"Cannot redeclare class" happens when the class name appears at least
2 times.
The easiest way to do it is to run either composer install or composer.phar dump-autoload. It will generate warning information for you to identify which class is duplicated. Then, simply remove the class that declared twice.
Here is the error I got after I ran php artisan migrate
[Symfony\Component\Debug\Exception\FatalErrorException]
Cannot redeclare class CreateKidTimeslotTable
Therefore, I use composer.phar dump-autoload to identify the error.
Warning: Ambiguous class resolution, "CreateKidTimeslotTable" was found in both "laravel/database/migrations/2016_05_23_024341_create_kid_timeslot_table.php" and "laravel/database/migrations/2016_08_24_022635_create_kid_time_slot_table.php", the first will be used.
Remove the duplicated table that you don't need anymore.
You need to delete that migration file manually from the migration directory of your project and also, delete it's entry from the migration table in the database or you can run the php artisan migrate:refresh but it will drop your all table data so also add the your step with php artisan migrate:refresh --step=n
This is a late answer, but probably this would solve your issue.
Go to app/storage/migrations.
Delete the migration file that causes the error (You can also delete everything stored there).
Done.

Magento Error: Class_Magestore_Magenotification_Helper_Data not found

Using Magento in admin, when I click the configuration tab, I get the following error:
"Fatal error: Class 'Magestore_Magenotification_Helper_Data' not found in."
Does anyone know why this would happen and how to fix it?
Normally this error occurs only if your Helper data is missing. Check your Data.php file at your_code_pool/Magestore/Magenotification/Helper. If that file does not exist, check your downloaded module or contact #Magestore if you install this module by Magento connect or create Data.php file with following code: (This may fix the above error only)
<?php
class Magestore_Magenotification_Helper_Data extends Mage_Core_Helper_Abstract
{
}
You need to disable the module. Go to app/etc/modules in your codebase and open file Magestore_Magenotification.xml and change the <active> node to false. Clear magento cache and reload the page.
Please check the config.xml of the module and also verify the namespace of the module which must match with the module name space under app/etc/modulename_namespace.xml.
I had this error because I was on PHP 7.1 and not 5.6

Resources