Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Error while creating my first Invoice

Chandru   ( User )

Commented 2 years ago

I have installed Akaunting 2.1.16 in Debian 10 and trying to create my first Invoice but unable to create iam getting error called "500 Internal Server Error". I tried applying "chmod -R 755 /var/www/akaunting and chown www-data:www-data /var/www/akaunting -R " but unable solve the issue.

Leonardo Gomes   ( User )

Commented 2 years ago

Hello Chandru.

If you are on a development mode, enable APP_DEBUG=true
Then the error will popup on the screen.

Can you share a printscreen with the described error?

If you are on the production, take a look at the logs and share it here too.


Chandru   ( User )

Commented 2 years ago

Hai Leonardo,

Thank you for your reply.
After changing APP_DEBUG=true iam getting below error.



Error:
--------

ErrorException
ViewException
ViewException
ViewException
ViewException
HTTP 500 Internal Server Error
Trying to get property 'id' of non-object (View: /var/www/akaunting/resources/views/partials/form/file_group.blade.php) (View: /var/www/akaunting/resources/views/partials/form/file_group.blade.php) (View: /var/www/akaunting/resources/views/partials/form/file_group.blade.php) (View: /var/www/akaunting/resources/views/partials/form/file_group.blade.php)

Exceptions 5 Stack Traces 5

Illuminate\View\ ViewException
in /var/www/akaunting/storage/framework/views/cda6b380a09bf68df042968f719f73c12c1f57ef.php (line 80)


$attachment = \Plank\Mediable\Media::find($value);
$attachments[] = [
'id' => $attachment->id,
'name' => $attachment->filename . '.' . $attachment->extension,
'path' => route('uploads.get', $attachment->id),
'type' => $attachment->mime_type,
'size' => $attachment->size,
'downloadPath' => false,

Leonardo Gomes   ( User )

Commented 2 years ago

There is something wrong with the Uploads file fields.
Can you try to Open Purchases > Bills and try to create one to see if the same error happens?

Chandru   ( User )

Commented 2 years ago

I am able to create purchase bills without errors.

Abdul Jabbar   ( User )

Commented 2 years ago

Creating Purchase Invoices works good but when we try to create Sales invoice, it gives 500 Internal Error. Here is what I tried

1) I tried downloading and hosting on my own system but gives same error.
2) I created an account on akaunting.com website and tried to create new Sales Invoice, gives same error

As far as I have found the issue occurs when there is a new user created it gives error to our new user.

You can try, Create Sales invoice from Admin, it works good but when you try to create some new user and log in with that then it gives 500 Internal Error for Sales Invoice

Ameer Hussain Abdul   ( User )

Commented 2 years ago

Issue not resolved
same error
Trying to get property 'id' of non-object (View: /home4/nfaintl0/public_html/akaunting/resources/views/partials/form/file_group.blade.php) (View: /home4/nfaintl0/public_html/akaunting/resources/views/partials/form/file_group.blade.php) (View: /home4/nfaintl0/public_html/akaunting/resources/views/partials/form/file_group.blade.php) (View: /home4/nfaintl0/public_html/akaunting/resources/views/partials/form/file_group.blade.php)

Dubbug   ( User )

Commented 2 years ago

I also get the same error & unable to resolve.
This is a new installation - am I missing a file?

Dubbug   ( User )

Commented 2 years ago

I may have a solution - try adding a logo in the companies setting.

Once I did that, the invoice could be created.

Please login or register to leave a response.

Showing 1 to 9 of 9 discussions