500 Error on Subscription View 09 Sep Laraship Questions › Category: Technical › 500 Error on Subscription View 0 Vote Up Vote Down Vishal Verma asked 4 years ago I am getting 500 Error when clicking on subscription reference. This happens only after creating a invoice. I am using a COD module for payment. Attachmentslaravel.txt laraship Staff replied 4 years ago Hello Vishal, can you send us a screenshot on where the issue is happening Vishal Verma replied 4 years ago Done. Please check the scresnshot. laraship Staff replied 4 years ago Hello Vishal, Can you attach the view /var/www/html/dialplug.com/storage/framework/views/aa743b94dc400b00961caf86de490c9f35c13be3.php because this is a compiled script and we won’t be able to tell the location of the error. Vishal Verma replied 4 years ago I am not able to attach it as attachment. So pasting the file content into comment box. Please find below the file content. startSection(‘content_header’);?> startComponent(‘components.content_header’);?> slot(‘page_title’);?> endSlot();?> slot(‘breadcrumb’);?> endSlot();?> renderComponent(); ?> stopSection();?> startSection(‘actions’);?> hasPermissionTo(‘Payment::invoices.update’)): ?> hashed_id . ‘/create-invoice’), ‘Subscriptions::labels.subscription.create_invoice_label’, [‘class’ => ‘btn btn-primary’]); ?> ##parent-placeholder-326b426f9ac7a96ed6baf62f8838565416d27df8## stopSection();?> startSection(‘content’);?> startComponent(‘components.box’);?> slot(‘box_title’);?> get(‘Subscriptions::labels.subscription.subscription_details’); ?> endSlot();?> get(‘Subscriptions::attributes.subscription.subscription_reference’); ?> get(‘Subscriptions::attributes.subscription.product_id’); ?> get(‘Subscriptions::attributes.subscription.plan_id’); ?> get(‘Subscriptions::attributes.subscription.gateway’); ?> get(‘Subscriptions::attributes.subscription.user_id’); ?> get(‘Corals::attributes.status’); ?> presenter()[‘subscription_reference’]; ?> presenter()[‘product_id’]; ?> presenter()[‘plan_id’]; ?> presenter()[‘gateway’]; ?> presenter()[‘user_id’]; ?> presenter()[‘status’]; ?> renderComponent(); ?> startComponent(‘components.box’);?> slot(‘box_title’);?> get(‘Subscriptions::labels.subscription.invoices’); ?> endSlot();?> get(‘Payment::attributes.invoice.invoice_code’); ?> get(‘Payment::attributes.invoice.due_date’); ?> get(‘Payment::attributes.invoice.total’); ?> get(‘Corals::attributes.status’); ?> get(‘Corals::labels.action’); ?> invoices; $__env->addLoop($__currentLoopData);foreach ($__currentLoopData as $invoice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop();?> <tr id="tr_index); ?>” data-index=”index); ?>”> present(‘code’); ?> presenter(‘due_date’); ?> presenter(‘total’); ?> presenter(‘status’); ?> presenter(‘action’); ?> popLoop(); $loop = $__env->getLastLoop();?> renderComponent(); ?> startComponent(‘components.box’);?> slot(‘box_title’);?> get(‘Corals::labels.address_label.bill_address’); ?> endSlot();?> billing_address)): ?> get(‘Corals::labels.address_label.address_one’); ?> billing_address[‘address_1’]); ?> get(‘Corals::labels.address_label.address_two’); ?> billing_address[‘address_2’] ?? ‘-‘); ?> get(‘Corals::labels.address_label.city’); ?> billing_address[‘city’]); ?> get(‘Corals::labels.address_label.state’); ?> billing_address[‘state’]); ?> get(‘Corals::labels.address_label.zip’); ?> billing_address[‘zip’]); ?> get(‘Corals::labels.address_label.country’); ?> billing_address[‘country’]); ?> renderComponent(); ?> shipping_address): ?> startComponent(‘components.box’);?> slot(‘box_title’);?> get(‘Corals::labels.address_label.shipping_title’); ?> endSlot();?> get(‘Corals::labels.address_label.address_one’); ?> shipping_address[‘address_1’]); ?> get(‘Corals::labels.address_label.address_two’); ?> shipping_address[‘address_2’] ?? ‘-‘); ?> get(‘Corals::labels.address_label.city’); ?> shipping_address[‘city’]); ?> get(‘Corals::labels.address_label.state’); ?> shipping_address[‘state’]); ?> get(‘Corals::labels.address_label.zip’); ?> shipping_address[‘zip’]); ?> get(‘Corals::labels.address_label.country’); ?> shipping_address[‘country’]); ?> renderComponent(); ?> stopSection();?> startSection(‘js’);?> $(document).ready(function () { $(‘#invoices-table’).DataTable({}); }); stopSection();?> make(‘layouts.crud.show’, \Illuminate\Support\Arr::except(get_defined_vars(), [‘__data’, ‘__path’]))->render(); ?> laraship Staff replied 4 years ago Thanks, will send to the dev team to check it Vishal Verma replied 4 years ago Hello, I changed {!! $invoice->presenter(‘due_date’) !!} to {!! $invoice->present(‘due_date’) !!} in show.blade.php and now ITS WORKING. laraship Staff replied 4 years ago Awesome, glad you fixed it, we will push this into our core Please login or Register to submit your answer Username or Email Address Password Remember Me
Hello Vishal, can you send us a screenshot on where the issue is happening
Done. Please check the scresnshot.
Hello Vishal,
Can you attach the view /var/www/html/dialplug.com/storage/framework/views/aa743b94dc400b00961caf86de490c9f35c13be3.php
because this is a compiled script and we won’t be able to tell the location of the error.
I am not able to attach it as attachment. So pasting the file content into comment box. Please find below the file content.
startSection(‘content_header’);?>
startComponent(‘components.content_header’);?>
slot(‘page_title’);?>
endSlot();?>
slot(‘breadcrumb’);?>
endSlot();?>
renderComponent(); ?>
stopSection();?>
startSection(‘actions’);?>
hasPermissionTo(‘Payment::invoices.update’)): ?>
hashed_id . ‘/create-invoice’), ‘Subscriptions::labels.subscription.create_invoice_label’, [‘class’ => ‘btn btn-primary’]); ?>
##parent-placeholder-326b426f9ac7a96ed6baf62f8838565416d27df8##
stopSection();?>
startSection(‘content’);?>
startComponent(‘components.box’);?>
slot(‘box_title’);?>
get(‘Subscriptions::labels.subscription.subscription_details’); ?>
endSlot();?>
get(‘Subscriptions::attributes.subscription.subscription_reference’); ?>
get(‘Subscriptions::attributes.subscription.product_id’); ?>
get(‘Subscriptions::attributes.subscription.plan_id’); ?>
get(‘Subscriptions::attributes.subscription.gateway’); ?>
get(‘Subscriptions::attributes.subscription.user_id’); ?>
get(‘Corals::attributes.status’); ?>
presenter()[‘subscription_reference’]; ?>
presenter()[‘product_id’]; ?>
presenter()[‘plan_id’]; ?>
presenter()[‘gateway’]; ?>
presenter()[‘user_id’]; ?>
presenter()[‘status’]; ?>
renderComponent(); ?>
startComponent(‘components.box’);?>
slot(‘box_title’);?>
get(‘Subscriptions::labels.subscription.invoices’); ?>
endSlot();?>
get(‘Payment::attributes.invoice.invoice_code’); ?>
get(‘Payment::attributes.invoice.due_date’); ?>
get(‘Payment::attributes.invoice.total’); ?>
get(‘Corals::attributes.status’); ?>
get(‘Corals::labels.action’); ?>
invoices;
$__env->addLoop($__currentLoopData);foreach ($__currentLoopData as $invoice): $__env->incrementLoopIndices();
$loop = $__env->getLastLoop();?>
<tr id="tr_index); ?>” data-index=”index); ?>”>
present(‘code’); ?>
presenter(‘due_date’); ?>
presenter(‘total’); ?>
presenter(‘status’); ?>
presenter(‘action’); ?>
popLoop();
$loop = $__env->getLastLoop();?>
renderComponent(); ?>
startComponent(‘components.box’);?>
slot(‘box_title’);?>
get(‘Corals::labels.address_label.bill_address’); ?>
endSlot();?>
billing_address)): ?>
get(‘Corals::labels.address_label.address_one’); ?>
billing_address[‘address_1’]); ?>
get(‘Corals::labels.address_label.address_two’); ?>
billing_address[‘address_2’] ?? ‘-‘); ?>
get(‘Corals::labels.address_label.city’); ?>
billing_address[‘city’]); ?>
get(‘Corals::labels.address_label.state’); ?>
billing_address[‘state’]); ?>
get(‘Corals::labels.address_label.zip’); ?>
billing_address[‘zip’]); ?>
get(‘Corals::labels.address_label.country’); ?>
billing_address[‘country’]); ?>
renderComponent(); ?>
shipping_address): ?>
startComponent(‘components.box’);?>
slot(‘box_title’);?>
get(‘Corals::labels.address_label.shipping_title’); ?>
endSlot();?>
get(‘Corals::labels.address_label.address_one’); ?>
shipping_address[‘address_1’]); ?>
get(‘Corals::labels.address_label.address_two’); ?>
shipping_address[‘address_2’] ?? ‘-‘); ?>
get(‘Corals::labels.address_label.city’); ?>
shipping_address[‘city’]); ?>
get(‘Corals::labels.address_label.state’); ?>
shipping_address[‘state’]); ?>
get(‘Corals::labels.address_label.zip’); ?>
shipping_address[‘zip’]); ?>
get(‘Corals::labels.address_label.country’); ?>
shipping_address[‘country’]); ?>
renderComponent(); ?>
stopSection();?>
startSection(‘js’);?>
$(document).ready(function () {
$(‘#invoices-table’).DataTable({});
});
stopSection();?>
make(‘layouts.crud.show’, \Illuminate\Support\Arr::except(get_defined_vars(), [‘__data’, ‘__path’]))->render(); ?>
Thanks, will send to the dev team to check it
Hello,
I changed {!! $invoice->presenter(‘due_date’) !!} to {!! $invoice->present(‘due_date’) !!} in show.blade.php and now ITS WORKING.
Awesome, glad you fixed it, we will push this into our core