Most likely a permissions issue, there will be more information in storage/logs/laravel.log
This is what I get
[2022-03-03 14:07:10] production.ERROR: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 {“exception”:"[object] (ErrorException(code: 0): file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 at /home/*****/public_html/facturacion/app/Models/Presenters/CompanyPresenter.php:73)
I also get this other error (when I changed php confit because of error above)
[2022-03-03 14:12:53] production.ERROR: File not found at path: NC3ZxkYYll7mH97bz2aFhTECkfNxIMwG/4y52wphVClxmp5GqdYNBxWqucZUY697sMk6QzhF7/vUVpzzzW55OXXaUDbpvqmLTAAcDCiXlNobyi0g9m/invoices/2022-0005.pdf {“exception”:"[object] (Illuminate\Contracts\Filesystem\FileNotFoundException(code: 0): File not found at path: NC3ZxkYYll7mH97bz2aFhTECkfNxIMwG/4y52wphVClxmp5GqdYNBxWqucZUY697sMk6QzhF7/vUVpzzzW55OXXaUDbpvqmLTAAcDCiXlNobyi0g9m/invoices/2022-0005.pdf at /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php:171)
You can check your permissions and ownerships with
find /path/to/invoiceninja/ \( ! -user www-data -o ! -perm -644 \) -ls
(The backslashes in front of the parentheses may or may not be necessary, depending on the shell you use.)
I’m getting this error (generating a 500 server error):
production.ERROR: Trait 'Awobaz\Compoships\Compoships' not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait 'Awobaz\\Compoships\\Compoships' not found at /home/xxxx/public_html/facturacion/app/Models/Company.php:29)
[stacktrace]
#0 {main}
"}
What can I do?
This is my company.php
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Models;
use App\Models\Language;
use App\Models\Presenters\CompanyPresenter;
use App\Models\User;
use App\Services\Notification\NotificationService;
use App\Utils\Ninja;
use App\Utils\Traits\AppSetup;
use App\Utils\Traits\CompanySettingsSaver;
use App\Utils\Traits\MakesHash;
use App\Utils\Traits\ThrottlesEmail;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Notifications\Notification;
use Illuminate\Support\Facades\Cache;
use Laracasts\Presenter\PresentableTrait;
class Company extends BaseModel
{
use PresentableTrait;
use MakesHash;
use CompanySettingsSaver;
use ThrottlesEmail;
use AppSetup;
use \Awobaz\Compoships\Compoships;
const ENTITY_RECURRING_INVOICE = 'recurring_invoice';
const ENTITY_CREDIT = 'credit';
const ENTITY_QUOTE = 'quote';
const ENTITY_TASK = 'task';
const ENTITY_EXPENSE = 'expense';
const ENTITY_PROJECT = 'project';
const ENTITY_VENDOR = 'vendor';
const ENTITY_TICKET = 'ticket';
const ENTITY_PROPOSAL = 'proposal';
const ENTITY_RECURRING_EXPENSE = 'recurring_expense';
const ENTITY_RECURRING_TASK = 'task';
const ENTITY_RECURRING_QUOTE = 'recurring_quote';
protected $presenter = CompanyPresenter::class;
protected $fillable = [
'markdown_enabled',
'calculate_expense_tax_by_amount',
'invoice_expense_documents',
'invoice_task_documents',
'show_tasks_table',
'mark_expenses_invoiceable',
'mark_expenses_paid',
'enabled_item_tax_rates',
'fill_products',
'industry_id',
'subdomain',
'size_id',
'custom_fields',
'enable_product_cost',
'enable_product_quantity',
'enabled_modules',
'default_quantity',
'enabled_tax_rates',
'portal_mode',
'portal_domain',
'convert_products',
'update_products',
'custom_surcharge_taxes1',
'custom_surcharge_taxes2',
'custom_surcharge_taxes3',
'custom_surcharge_taxes4',
'show_product_details',
'first_day_of_week',
'first_month_of_year',
'slack_webhook_url',
'google_analytics_key',
'client_can_register',
'enable_shop_api',
'invoice_task_timelog',
'auto_start_tasks',
'is_disabled',
'default_task_is_date_based',
'enable_product_discount',
'expense_inclusive_taxes',
'session_timeout',
'oauth_password_required',
'invoice_task_datelog',
'default_password_timeout',
'show_task_end_date',
'use_comma_as_decimal_place',
'report_include_drafts',
'client_registration_fields',
'convert_rate_to_client',
];
protected $hidden = [
'id',
'db',
'ip',
];
protected $casts = [
'country_id' => 'string',
'custom_fields' => 'object',
'settings' => 'object',
'updated_at' => 'timestamp',
'created_at' => 'timestamp',
'deleted_at' => 'timestamp',
'client_registration_fields' => 'array',
];
protected $with = [
// 'tokens'
];
public static $modules = [
self::ENTITY_RECURRING_INVOICE => 1,
self::ENTITY_CREDIT => 2,
self::ENTITY_QUOTE => 4,
self::ENTITY_TASK => 8,
self::ENTITY_EXPENSE => 16,
self::ENTITY_PROJECT => 32,
self::ENTITY_VENDOR => 64,
self::ENTITY_TICKET => 128,
self::ENTITY_PROPOSAL => 256,
self::ENTITY_RECURRING_EXPENSE => 512,
self::ENTITY_RECURRING_TASK => 1024,
self::ENTITY_RECURRING_QUOTE => 2048,
];
public function documents()
{
return $this->morphMany(Document::class, 'documentable');
}
public function all_documents()
{
return $this->hasMany(Document::class);
}
public function getEntityType()
{
return self::class;
}
public function ledger()
{
return $this->hasMany(CompanyLedger::class);
}
public function getCompanyIdAttribute()
{
return $this->encodePrimaryKey($this->id);
}
public function account()
{
return $this->belongsTo(Account::class);
}
public function client_contacts()
{
return $this->hasMany(ClientContact::class)->withTrashed();
}
public function users()
{
return $this->hasManyThrough(User::class, CompanyUser::class, 'company_id', 'id', 'id', 'user_id')->withTrashed();
}
public function expense_categories()
{
return $this->hasMany(ExpenseCategory::class)->withTrashed();
}
public function subscriptions()
{
return $this->hasMany(Subscription::class)->withTrashed();
}
public function task_statuses()
{
return $this->hasMany(TaskStatus::class)->withTrashed();
}
public function clients()
{
return $this->hasMany(Client::class)->withTrashed();
}
/**
* @return HasMany
*/
public function tasks()
{
return $this->hasMany(Task::class)->withTrashed();
}
public function webhooks()
{
return $this->hasMany(Webhook::class);
}
/**
* @return HasMany
*/
public function projects()
{
return $this->hasMany(Project::class)->withTrashed();
}
/**
* @return HasMany
*/
public function vendors()
{
return $this->hasMany(Vendor::class)->withTrashed();
}
public function all_activities()
{
return $this->hasMany(Activity::class);
}
public function activities()
{
return $this->hasMany(Activity::class)->orderBy('id', 'DESC')->take(50);
}
/**
* @return HasMany
*/
public function contacts()
{
return $this->hasMany(ClientContact::class);
}
public function groups()
{
return $this->hasMany(GroupSetting::class);
}
/**
* @return HasMany
*/
public function invoices()
{
return $this->hasMany(Invoice::class)->withTrashed();
}
/**
* @return HasMany
*/
public function recurring_invoices()
{
return $this->hasMany(RecurringInvoice::class)->withTrashed();
}
/**
* @return HasMany
*/
public function recurring_expenses()
{
return $this->hasMany(RecurringExpense::class)->withTrashed();
}
/**
* @return HasMany
*/
public function quotes()
{
return $this->hasMany(Quote::class)->withTrashed();
}
/**
* @return HasMany
*/
public function credits()
{
return $this->hasMany(Credit::class)->withTrashed();
}
/**
* @return HasMany
*/
public function company_gateways()
{
return $this->hasMany(CompanyGateway::class)->withTrashed();
}
/**
* @return HasMany
*/
public function tax_rates()
{
return $this->hasMany(TaxRate::class)->withTrashed();
}
/**
* @return HasMany
*/
public function products()
{
return $this->hasMany(Product::class)->withTrashed();
}
/**
* @return BelongsTo
*/
public function country()
{
// return $this->belongsTo(Country::class);
return Country::find($this->settings->country_id);
}
public function group_settings()
{
return $this->hasMany(GroupSetting::class)->withTrashed();
}
public function timezone()
{
$timezones = Cache::get('timezones');
if(!$timezones)
$this->buildCache(true);
return $timezones->filter(function ($item) {
return $item->id == $this->settings->timezone_id;
})->first();
// return Timezone::find($this->settings->timezone_id);
}
public function designs()
{
return $this->hasMany(Design::class)->whereCompanyId($this->id)->orWhere('company_id', null);
}
public function user_designs()
{
return $this->hasMany(Design::class);
}
public function payment_terms()
{
return $this->hasMany(PaymentTerm::class)->whereCompanyId($this->id)->orWhere('company_id', null);
}
public function user_payment_terms()
{
return $this->hasMany(PaymentTerm::class);
}
/**
* @return BelongsTo
*/
public function language()
{
$languages = Cache::get('languages');
if(!$languages)
$this->buildCache(true);
return $languages->filter(function ($item) {
return $item->id == $this->settings->language_id;
})->first();
// return Language::find($this->settings->language_id);
}
public function getLocale()
{
return isset($this->settings->language_id) && $this->language() ? $this->language()->locale : config('ninja.i18n.locale');
}
public function getLogo() :?string
{
return $this->settings->company_logo ?: null;
}
public function locale()
{
return $this->getLocale();
}
public function getSetting($setting)
{
if (property_exists($this->settings, $setting) != false) {
return $this->settings->{$setting};
}
return null;
}
public function currency()
{
$currencies = Cache::get('currencies');
return $currencies->filter(function ($item) {
return $item->id == $this->settings->currency_id;
})->first();
}
/**
* @return BelongsTo
*/
public function industry()
{
return $this->belongsTo(Industry::class);
}
/**
* @return BelongsTo
*/
public function payment_type()
{
return $this->belongsTo(PaymentType::class);
}
/**
* @return mixed
*/
public function expenses()
{
return $this->hasMany(Expense::class)->withTrashed();
}
/**
* @return mixed
*/
public function payments()
{
return $this->hasMany(Payment::class)->withTrashed();
}
public function tokens()
{
return $this->hasMany(CompanyToken::class);
}
public function client_gateway_tokens()
{
return $this->hasMany(ClientGatewayToken::class);
}
public function system_logs()
{
return $this->hasMany(SystemLog::class)->orderBy('id', 'DESC')->take(100);
}
public function system_log_relation()
{
return $this->hasMany(SystemLog::class)->orderBy('id', 'DESC');
}
public function tokens_hashed()
{
return $this->hasMany(CompanyToken::class);
}
public function company_users()
{
return $this->hasMany(CompanyUser::class)->withTrashed();
}
public function owner()
{
return $this->company_users()->withTrashed()->where('is_owner', true)->first()->user;
//return $this->company_users->where('is_owner', true)->first()->user;
}
public function resolveRouteBinding($value, $field = null)
{
return $this->where('id', $this->decodePrimaryKey($value))->firstOrFail();
}
public function domain()
{
if (Ninja::isHosted()) {
if($this->portal_mode == 'domain' && strlen($this->portal_domain) > 3)
return $this->portal_domain;
return "https://{$this->subdomain}." . config('ninja.app_domain');
}
return config('ninja.app_url');
}
public function notification(Notification $notification)
{
return new NotificationService($this, $notification);
}
public function routeNotificationForSlack($notification)
{
return $this->slack_webhook_url;
}
public function file_path()
{
return $this->company_key.'/';
}
public function rBits()
{
$user = $this->owner();
$data = [];
$data[] = $this->createRBit('business_name', 'user', ['business_name' => $this->present()->name()]);
$data[] = $this->createRBit('industry_code', 'user', ['industry_detail' => $this->industry ? $this->industry->name : '']);
$data[] = $this->createRBit('comment', 'partner_database', ['comment_text' => 'Logo image not present']);
$data[] = $this->createRBit('business_description', 'user', ['business_description' => $this->present()->size()]);
$data[] = $this->createRBit('person', 'user', ['name' => $user->present()->getFullName()]);
$data[] = $this->createRBit('email', 'user', ['email' => $user->email]);
$data[] = $this->createRBit('phone', 'user', ['phone' => $user->phone]);
$data[] = $this->createRBit('website_uri', 'user', ['uri' => $this->settings->website]);
$data[] = $this->createRBit('external_account', 'partner_database', ['is_partner_account' => 'yes', 'account_type' => 'Invoice Ninja', 'create_time' => time()]);
return $data;
}
private function createRBit($type, $source, $properties)
{
$data = new \stdClass;
$data->receive_time = time();
$data->type = $type;
$data->source = $source;
$data->properties = new \stdClass;
foreach ($properties as $key => $val) {
$data->properties->$key = $val;
}
return $data;
}
}
Please see this thread for more info:
https://forum2.invoiceninja.com/t/got-error-500-when-upgrading-from-v5-3-66-w77-to-v5-3-7x/10185/21
Deleted files from /boostrap/caches but same 500 error and same error message on logs…
It may help to copy over the latest selfhost zip
https://github.com/invoiceninja/invoiceninja/releases/download/v5.3.76/invoiceninja.zip
I just have to replace all files?
When replacing files I get on logs:
[2022-03-29 12:01:02] production.ERROR: Class 'Codedge\Updater\UpdaterServiceProvider' not found {"exception":"[object] (Error(code: 0): Class 'Codedge\\Updater\\UpdaterServiceProvider' not found at /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:745)
[stacktrace]
#0 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(679): Illuminate\\Foundation\\Application->resolveProvider('Codedge\\\\Updater...')
#1 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(75): Illuminate\\Foundation\\Application->register('Codedge\\\\Updater...')
#2 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(659): Illuminate\\Foundation\\ProviderRepository->load(Array)
#3 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\\Foundation\\Application->registerConfiguredProviders()
#4 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(237): Illuminate\\Foundation\\Bootstrap\\RegisterProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#5 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(153): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#6 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(137): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#7 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#8 /home/carlosmendiola/public_html/facturacion/public/index.php(57): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#9 {main}
"}
[2022-03-29 12:01:02] production.ERROR: Target class [translator] does not exist. (View: /home/carlosmendiola/public_html/facturacion/resources/views/errors/500.blade.php) {"exception":"[object] (Illuminate\\View\\ViewException(code: 0): Target class [translator] does not exist. (View: /home/carlosmendiola/public_html/facturacion/resources/views/errors/500.blade.php) at /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php:879)
[stacktrace]
#0 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(60): Illuminate\\View\\Engines\\CompilerEngine->handleViewException(Object(Illuminate\\Contracts\\Container\\BindingResolutionException), 1)
#1 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(61): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('/home/carlosmen...', Array)
#2 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/View.php(139): Illuminate\\View\\Engines\\CompilerEngine->get('/home/carlosmen...', Array)
#3 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/View.php(122): Illuminate\\View\\View->getContents()
#4 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/View.php(91): Illuminate\\View\\View->renderContents()
#5 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\\View\\View->render()
#6 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Object(Illuminate\\View\\View))
#7 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(55): Illuminate\\Http\\Response->__construct(Object(Illuminate\\View\\View), 500, Array)
#8 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(85): Illuminate\\Routing\\ResponseFactory->make(Object(Illuminate\\View\\View), 500, Array)
#9 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(585): Illuminate\\Routing\\ResponseFactory->view('errors::500', Array, 500, Array)
#10 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(490): Illuminate\\Foundation\\Exceptions\\Handler->renderHttpException(Object(Symfony\\Component\\HttpKernel\\Exception\\HttpException))
#11 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(356): Illuminate\\Foundation\\Exceptions\\Handler->prepareResponse(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\HttpException))
#12 /home/carlosmendiola/public_html/facturacion/app/Exceptions/Handler.php(207): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Error))
#13 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(427): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Error))
#14 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\\Foundation\\Http\\Kernel->renderException(Object(Illuminate\\Http\\Request), Object(Error))
#15 /home/carlosmendiola/public_html/facturacion/public/index.php(57): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#16 {main}
[previous exception] [object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Target class [translator] does not exist. at /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php:879)
[stacktrace]
#0 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php(758): Illuminate\\Container\\Container->build('translator')
#1 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(851): Illuminate\\Container\\Container->resolve('translator', Array, true)
#2 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php(694): Illuminate\\Foundation\\Application->resolve('translator', Array)
#3 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(836): Illuminate\\Container\\Container->make('translator', Array)
#4 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(119): Illuminate\\Foundation\\Application->make('translator', Array)
#5 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(835): app('translator')
#6 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(870): trans('Server Error', Array, NULL)
#7 /home/carlosmendiola/public_html/facturacion/storage/framework/views/7972fc35c34c342be6e51c48b6ccc04a0f0fc3a8.php(1): __('Server Error')
#8 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(107): require('/home/carlosmen...')
#9 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(108): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#10 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire('/home/carlosmen...', Array)
#11 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(61): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('/home/carlosmen...', Array)
#12 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/View.php(139): Illuminate\\View\\Engines\\CompilerEngine->get('/home/carlosmen...', Array)
#13 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/View.php(122): Illuminate\\View\\View->getContents()
#14 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/View.php(91): Illuminate\\View\\View->renderContents()
#15 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\\View\\View->render()
#16 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Object(Illuminate\\View\\View))
#17 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(55): Illuminate\\Http\\Response->__construct(Object(Illuminate\\View\\View), 500, Array)
#18 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(85): Illuminate\\Routing\\ResponseFactory->make(Object(Illuminate\\View\\View), 500, Array)
#19 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(585): Illuminate\\Routing\\ResponseFactory->view('errors::500', Array, 500, Array)
#20 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(490): Illuminate\\Foundation\\Exceptions\\Handler->renderHttpException(Object(Symfony\\Component\\HttpKernel\\Exception\\HttpException))
#21 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(356): Illuminate\\Foundation\\Exceptions\\Handler->prepareResponse(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\HttpException))
#22 /home/carlosmendiola/public_html/facturacion/app/Exceptions/Handler.php(207): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Error))
#23 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(427): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Error))
#24 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\\Foundation\\Http\\Kernel->renderException(Object(Illuminate\\Http\\Request), Object(Error))
#25 /home/carlosmendiola/public_html/facturacion/public/index.php(57): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#26 {main}
[previous exception] [object] (ReflectionException(code: -1): Class translator does not exist at /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php:877)
[stacktrace]
#0 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php(877): ReflectionClass->__construct('translator')
#1 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php(758): Illuminate\\Container\\Container->build('translator')
#2 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(851): Illuminate\\Container\\Container->resolve('translator', Array, true)
#3 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php(694): Illuminate\\Foundation\\Application->resolve('translator', Array)
#4 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(836): Illuminate\\Container\\Container->make('translator', Array)
#5 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(119): Illuminate\\Foundation\\Application->make('translator', Array)
#6 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(835): app('translator')
#7 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(870): trans('Server Error', Array, NULL)
#8 /home/carlosmendiola/public_html/facturacion/storage/framework/views/7972fc35c34c342be6e51c48b6ccc04a0f0fc3a8.php(1): __('Server Error')
#9 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(107): require('/home/carlosmen...')
#10 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(108): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#11 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire('/home/carlosmen...', Array)
#12 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(61): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('/home/carlosmen...', Array)
#13 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/View.php(139): Illuminate\\View\\Engines\\CompilerEngine->get('/home/carlosmen...', Array)
#14 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/View.php(122): Illuminate\\View\\View->getContents()
#15 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/View/View.php(91): Illuminate\\View\\View->renderContents()
#16 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\\View\\View->render()
#17 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Object(Illuminate\\View\\View))
#18 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(55): Illuminate\\Http\\Response->__construct(Object(Illuminate\\View\\View), 500, Array)
#19 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(85): Illuminate\\Routing\\ResponseFactory->make(Object(Illuminate\\View\\View), 500, Array)
#20 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(585): Illuminate\\Routing\\ResponseFactory->view('errors::500', Array, 500, Array)
#21 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(490): Illuminate\\Foundation\\Exceptions\\Handler->renderHttpException(Object(Symfony\\Component\\HttpKernel\\Exception\\HttpException))
#22 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(356): Illuminate\\Foundation\\Exceptions\\Handler->prepareResponse(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\HttpException))
#23 /home/carlosmendiola/public_html/facturacion/app/Exceptions/Handler.php(207): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Error))
#24 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(427): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Error))
#25 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\\Foundation\\Http\\Kernel->renderException(Object(Illuminate\\Http\\Request), Object(Error))
#26 /home/carlosmendiola/public_html/facturacion/public/index.php(57): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#27 {main}
"}
[2022-03-29 12:01:02] production.ERROR: Uncaught ReflectionException: Class translator does not exist in /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php:877
Stack trace:
#0 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php(877): ReflectionClass->__construct('translator')
#1 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php(758): Illuminate\Container\Container->build('translator')
#2 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(851): Illuminate\Container\Container->resolve('translator', Array, true)
#3 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php(694): Illuminate\Foundation\Application->resolve('translator', Array)
#4 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(836): Illuminate\ {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Uncaught ReflectionException: Class translator does not exist in /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php:877
Stack trace:
#0 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php(877): ReflectionClass->__construct('translator')
#1 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php(758): Illuminate\\Container\\Container->build('translator')
#2 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(851): Illuminate\\Container\\Container->resolve('translator', Array, true)
#3 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php(694): Illuminate\\Foundation\\Application->resolve('translator', Array)
#4 /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(836): Illuminate\\ at /home/carlosmendiola/public_html/facturacion/vendor/laravel/framework/src/Illuminate/Container/Container.php:879)
[stacktrace]
#0 {main}
"}
It may help to delete the bootstrap/cache folder